phplrt/phplrt

View on GitHub

Showing 408 of 408 total issues

Line indented incorrectly; expected 4 spaces, found 8
Open

        protected readonly ?string $alias = null,

Closing brace must be on a line by itself
Open

interface LexerExceptionInterface extends \Throwable {}

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => throw new \InvalidArgumentException(\sprintf(

Line indented incorrectly; expected 0 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 8
Open

        protected readonly string $reference,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public readonly ReadableInterface $source,
Severity: Minor
Found in libs/parser/src/Context.php by phpcodesniffer

Closing brace must be on a line by itself
Open

    ) {}

Closing brace must be on a line by itself
Open

class BadReturnTypeException extends VisitorException {}

Opening brace should be on a new line
Open

    final public function __construct(private array $visitors = []) {}

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        return $this->name;

Closing brace must be on a line by itself
Open

    ) {}
Severity: Minor
Found in libs/lexer/src/Decorator.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly int $length = self::DEFAULT_LENGTH,

Line indented incorrectly; expected 4 spaces, found 8
Open

        public readonly string $indentation = '    ',

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly string $state,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly array $reducers,

Closing brace must be on a line by itself
Open

interface SourceExceptionInterface extends \Throwable {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        protected readonly Style $style = new Style(),

Closing brace must be on a line by itself
Open

    ) {}

Space before opening parenthesis of function call prohibited
Open

        return match (true) {

Space before opening parenthesis of function call prohibited
Open

        return match (true) {
Severity
Category
Status
Source
Language