@param int $target

@return int
434522
protected function options($target)
    {
        $options = JSON_ERROR_NONE;

        if (isset($this->options[$target]))
        {
            foreach ($this->options[$target] as $option)
            {
                $options |= $option;
            }
        }

        return $options;
    }
371490
public function reduce( $target )
    {
        $kill = count($this) - $target;
        while ( $kill-- > 0 ) {
            $idx = 1;
            $minArea = $this->areaOfTriangle(
                $this->points[0],
                $this->points[1],
                $this->points[2]
            );
            foreach (range(2, $this->lastKey(-2)) as $segment) {
                $area = $this->areaOfTriangle(
                    $this->points[$segment - 1],
                    $this->points[$segment],
                    $this->points[$segment + 1]
                );
                if ( $area < $minArea ) {
                    $minArea = $area;
                    $idx = $segment;
                }
            }
            array_splice($this->points, $idx, 1);
        }
        return $this->points;
    }
652370
public function getInt($key)
    {
        try {
            $result = $this->get(self::INT, $key);
            if (!settype($result, 'integer')) {
                return 0;
            }
        } catch (\Exception $e) {
            return 0;
        }
        return $result;
    }
456520
public function prependTo($target)
    {
        $target_result = $this->getTargetResult($target);

        $target_result->prepend($this);
        $this->remove();

        return $target_result;
    }
1192716
private function getTargetResult($target, $context=null)
    {
        if ($context===null && \is_string($target) && strpos($target, '<') === false) {
            $context = $this->document;
        }

        return $context === null ? self::create($target) : self::create($target, $context);
    }
841143
public function setTarget($target = null)
        {
            if (null !== $target && !is_string($target)) {
                throw new Exception(
                        'Invalid argument: $target must be a string or null');
            }

            $this->_target = $target;

            return $this;
        }
513978
public function getBaseStylesheet($target){
        $base = $this->getResolvedBase($target);
        if(is_string($base)){
            return $base;
        }else if(is_array($base) && isset($base['css'])){
            return $base['css'];
        }
        return null;
    }
1190648
public function setTarget($target)
    {
        $this->removeTarget();

        if ($target = (string) $target) {
            $mark = mb_substr($target, 0, 1);
            $to = mb_substr($target, 1);

            if ($mark === '@') {
                $this->setUser($to);
            } elseif ($mark === '#') {
                $this->setChannel($to);
            } else {
                $this->setChannel($target);
            }
        }

        return $this;
    }
642858
public function moveTo(string $target): ?string
    {
        $ret = $this->handle->rpoplpush($this->name, $target);
        return (false === $ret) ? null : $ret;
    }
1273415
public function setTarget($target)
    {
        if (!is_string($target) || $target == '') {
            throw new \InvalidArgumentException('No valid URL given.');
        }

        $this->target = $target;

        // Set meta refresh content if header location is ignored
        $this->setContent(
            sprintf('<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0; url=%1$s" />
    </head>
    <body>
        <p>Redirecting to <a href="%1$s">%1$s</a>.
    </body>
</html>', htmlspecialchars($target, ENT_QUOTES, 'UTF-8')));

        // Set header location
        $this->setHeader('Location', $target);

        return $this;
    }
842104
public function setTarget($target)
    {
        if (Format::isIdentifier($target)) {
            $this->target = $target;
        } else {
            $msg = "'${target}' is not a valid QTI identifier.";
            throw new InvalidArgumentException($msg);
        }
    }
860784
public function setTarget($target)
    {
        if (!file_exists(dirname($target))) {
            throw new Exception\InvalidArgumentException("The directory '$target' does not exist");
        }

        $target = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, (string) $target);
        $this->options['target'] = $target;
        return $this;
    }
8500
public function get($target = null)
    {
        $options = ['key' => $this->apiKey];

        if (null !== $target) {
            $this->url = sprintf('%s&target={target}', $this->url);

            $options['target'] = $target;
        }

        return $this->process($options);
    }
687282
public function getNumber($command, $target = null, $value = null)
    {
        $string = $this->getString($command, $target, $value);

        return (int) $string;
    }
57817
public function getBit(int $offset): int
    {
        return intval($this->handle->getBit($this->name, $offset));
    }
1039062
public function setTarget( $target ) {
		$this->target = is_string( $target ) ? $target : null;

		if ( $this->target !== null ) {
			$this->button->setAttributes( [ 'target' => $target ] );
		} else {
			$this->button->removeAttributes( [ 'target' ] );
		}

		return $this;
	}
577939
private function getRenderer(int $target): RendererInterface
    {
        if ($target == self::OUTPUT && System::isCLI()) {
            if (System::isColorsSupported(STDOUT)) {
                $target = self::OUTPUT_CLI_COLORS;
            } else {
                $target = self::OUTPUT_CLI;
            }
        }

        if (!isset($this->targets[$target])) {
            throw new DumperException(sprintf("Undefined dump target %d", $target));
        }

        if (is_string($this->targets[$target])) {
            $this->targets[$target] = new $this->targets[$target]();
        }

        return $this->targets[$target];
    }