Loop up a target (ip/domain) on whois

@param string $target The target domain/ip.

@throws WhoisException if the given target doesn't validate as an IP or domain.

@return Result The response from the whois server
340518
public function lookup($target)
    {
        // Check if IP
        if (filter_var($target, FILTER_VALIDATE_IP)) {
            return $this->lookupIP($target);
        }

        // Check if domain
        if ($this->verifyDomainName($target)) {
            return $this->lookupDomain($target);
        }

        // Throw an error if both are false
        throw new WhoisException('The target supplied does not appear to be a valid IP or domain name.');
    }
399035
public function targetSerialize($target = self::SER_DEFAULT, $params = null)
    {
        return $this->format($this->format);
    }
141643
public function extract($target)
		{
			if (true === $this->_enabled && !empty($target)) {
				return $this->_zip->extractTo($target);
			}

			return false;
		}
752632
public static function expandTargetDir(array $options, string $target): string
    {
        $found = \preg_match('{%(.+?)%}', $target, $matches);

        if ($found !== 1) {
            return $target;
        }

        $option = \str_replace('_', '-', \strtolower($matches[1]));

        if (! isset($options[$option])) {
            return $matches[0];
        }

        return \str_replace($matches[0], \rtrim($options[$option], '/'), $target);
    }
172935
public function addTarget(Target $target, string $name = null)
    {
        if ($name === null) {
            $this->_targets[] = $target;
        } else {
            $this->_targets[$name] = $target;
        }
    }
680426
public function setTarget($target)
    {
        //Add to route group if any
        if (!$target instanceof \Closure) {
            $groupNamespace = implode('\\', Router::$groupsProps['namespace']);
            $target = $groupNamespace ? "$groupNamespace\\$target" : $target;
        }

        if (!$target instanceof Closure &&
                !preg_match(Router::TARGET_REGEX, $target)) {
            throw new Exception("Invalid target string $target");
        }
        $this->target = $target;

        return $this;
    }
1276950
protected function merge($target, $source)
    {
        if ($source === null) {
            return $target;
        }

        return call_user_func($this->merge, $target, $source);
    }
921324
public function isValid($target)
    {
        if (mb_strlen($target, $this->charset) < $this->length) {
            $this->violate(sprintf($this->message, $this->length));
            return false;
        } else {
            return true;
        }
    }
747314
protected function addOriginToTargetUrl($target)
    {
        $origin = $this->request->getFullRoute();
        $additionalQuery = '_origin=' . base64_encode($origin);
        
        $parts = parse_url($target);
        
        if ($parts === false) {
            return $target;
        }
        
        if (!isset($parts['query'])) {
            $parts['query'] = '';
        } else if ($parts['query'] !== '') {
            $parts['query'] .= '&';
        }
        
        $parts['query'] .= $additionalQuery;
        return $this->buildUrl($parts);
    }
1078085
public function hasTarget(Target $target): bool
    {
        foreach ($this->_allOfType($target->type()) as $t) {
            if ($target->equals($t)) {
                return true;
            }
        }
        return false;
    }
530206
protected function performGetRequest($target, $parameters)
	{
		$response = $this->doGetRequest($target, $parameters);
		$result = $this->parseResponse($response);
		return $result;
	}
365409
public function updateTarget(Target $target): void
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->update('ngbm_rule_target')
            ->set('rule_id', ':rule_id')
            ->set('type', ':type')
            ->set('value', ':value')
            ->where(
                $query->expr()->eq('id', ':id')
            )
            ->setParameter('id', $target->id, Type::INTEGER)
            ->setParameter('rule_id', $target->ruleId, Type::INTEGER)
            ->setParameter('type', $target->type, Type::STRING)
            ->setParameter('value', $target->value, is_array($target->value) ? Type::JSON_ARRAY : Type::STRING);

        $this->applyStatusCondition($query, $target->status);

        $query->execute();
    }
447955
final public function assignTo(
        IAssignable $target,
        callable $onDataInvalid = null
    ): IAssignable {
        $shell = $this->validated ? $this->shell : $this->validate($onDataInvalid);

        if ($shell->_isValid && is_array($shell->_safeVar)) {
            $target->assign($shell->_safeVar);
        }
        return $target;
    }
702807
public function setTarget($target = self::ODMENUTARGET_SELF)
    {
        $targets    = $this->getTargetConstants();
        $target     = (string) $target;
        if (!in_array($target, $targets)) { $target = self::ODMENUTARGET_SELF; }

        $this->target = $target;

        return $this;
    }
704124
protected function getTarget($target, array $segments)
    {
        foreach ($segments as $segment) {
            if (!$target) {
                return;
            }

            $target = $target->{$segment};
        }

        return $target;
    }
691373
public function ignoreMember(MembershipInterface $target): PodiumResponse
    {
        return $this->getPodium()->member->ignore($this->ensureMembership(), $target);
    }
204950
public function equals( $target ) {
		if ( $target === $this ) {
			return true;
		}

		if ( !( $target instanceof self ) ) {
			return false;
		}

		return $this->isAssociative === $target->isAssociative
			&& $this->getArrayCopy() == $target->getArrayCopy();
	}