phplrt/phplrt

View on GitHub
libs/lexer/src/Config/OnUnknownToken.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 43 and the first side effect is on line 12.
Open

<?php

PHP keywords must be lowercase; expected "throw" but found "THROW"
Open

    case THROW;

PHP keywords must be lowercase; expected "return" but found "RETURN"
Open

    case RETURN;

Line indented incorrectly; expected 0 spaces, found 4
Open

    case RETURN;

Space before opening parenthesis of function call prohibited
Open

        return match ($this) {

Line indented incorrectly; expected at least 4 spaces, found 0
Open

}

Line indented incorrectly; expected 8 spaces, found 12
Open

            default => throw UnrecognizedTokenException::fromToken($source, $token)

Line indented incorrectly; expected 0 spaces, found 4
Open

    case THROW;

Line indented incorrectly; expected 0 spaces, found 4
Open

    case SKIP;

There are no issues that match your filters.

Category
Status