phplrt/phplrt

View on GitHub
libs/parser/src/Middleware/TraceMiddleware.php

Summary

Maintainability
A
0 mins
Test Coverage

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);

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly string $nesting = ' ',

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly OutputInterface $output = new ConsoleOutput(),

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => $rule::class,

Space before opening parenthesis of function call prohibited
Open

        return match (true) {

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => \get_debug_type($result),

Space before opening parenthesis of function call prohibited
Open

        return \sprintf('<fg=gray> = </><info>%s</info>', match (true) {

There are no issues that match your filters.

Category
Status