phplrt/phplrt

View on GitHub

Showing 408 of 408 total issues

Line exceeds 120 characters; contains 128 characters
Open

    public static function fromUnrecognizedToken(ReadableInterface $src, TokenInterface $tok, \Throwable $previous = null): self

Arguments with default values must be at the end of the argument list
Open

        private readonly int $expectedRecursionDepth = self::DEFAULT_EXPECTED_RECURSION_DEPTH,

Arguments with default values must be at the end of the argument list
Open

        private readonly array $selectors = [

Arguments with default values must be at the end of the argument list
Open

        int|float $to = \INF,

Arguments with default values must be at the end of the argument list
Open

        private readonly string $prefix = 'A',

Arguments with default values must be at the end of the argument list
Open

        private readonly array $options = [],
Severity: Minor
Found in libs/parser/src/Parser.php by phpcodesniffer

Arguments with default values must be at the end of the argument list
Open

        private readonly string $name = self::UNKNOWN_NAME,

Arguments with default values must be at the end of the argument list
Open

        private readonly string $eoi = self::DEFAULT_END_OF_INPUT,

Arguments with default values must be at the end of the argument list
Open

        private readonly SourceFactoryInterface $sources = new SourceFactory(),

Arguments with default values must be at the end of the argument list
Open

        ChannelInterface $channel = Channel::DEFAULT,

Line exceeds 120 characters; contains 129 characters
Open

    private function composite(int|string $name, array $payload, int $offset, ChannelInterface $channel): CompositeTokenInterface

Arguments with default values must be at the end of the argument list
Open

        private readonly string $delimiter = self::DEFAULT_DELIMITER,

Arguments with default values must be at the end of the argument list
Open

        private readonly string $name = self::EOI_NAME,

Arguments with default values must be at the end of the argument list
Open

        public bool $keep = true,

Line exceeds 120 characters; contains 125 characters
Open

        return \sprintf('<fg=gray>token <fg=white>%s</> is <fg=yellow>%s</></>', $context->token->getName(), $lexeme->token);

Arguments with default values must be at the end of the argument list
Open

        private readonly PrinterInterface $printer = new PhpPrinter(),

Arguments with default values must be at the end of the argument list
Open

        private readonly string $depthChars = "\t ",

Arguments with default values must be at the end of the argument list
Open

        private readonly GeneratorInterface $aliases = new OrderedGenerator(),

Arguments with default values must be at the end of the argument list
Open

        private readonly ChannelInterface $channel = Channel::DEFAULT,

Line exceeds 120 characters; contains 131 characters
Open

    public function __construct(string $name, public LanguageInjection $delegate, public Statement $body, public bool $keep = true)
Severity
Category
Status
Source
Language