pug-php/js-phpize

View on GitHub

Showing 179 of 179 total issues

Line exceeds 120 characters; contains 149 characters
Open

            throw new Exception('Variables cannot start with ' . $varPrefix . ', this prefix is reserved for JsPhpize' . $this->exceptionInfos(), 4);

Line exceeds 120 characters; contains 157 characters
Open

        return $this->isAssignation() || $this->isComparison() || $this->isArithmetic() || $this->isBinary() || $this->isLogical() || $this->isVarOperator();
Severity: Minor
Found in src/JsPhpize/Lexer/Token.php by phpcodesniffer

Line exceeds 120 characters; contains 127 characters
Open

            throw new Exception("':' expected but " . ($next->value ?: $next->type) . ' given ' . $this->exceptionInfos(), 15);

Expected 0 spaces after opening bracket; newline found
Open

                    while (

Expected 0 spaces after opening bracket; newline found
Open

        if (

Call to undeclared method \JsPhpize\Lexer\Scanner::valueToken
Open

        return $this->valueToken('number', $matches);
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan

Call to undeclared method \JsPhpize\Nodes\Assignable::getReadVariables
Open

            method_exists($this->leftHand, 'getReadVariables') ? $this->leftHand->getReadVariables() : [],
Severity: Critical
Found in src/JsPhpize/Nodes/Assignation.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\BracketsArray->data defined at /code/src/JsPhpize/Nodes/ArrayBase.php:8
Open

        $this->data[] = [$key, $value];
Severity: Minor
Found in src/JsPhpize/Nodes/BracketsArray.php by phan

Call to undeclared method \JsPhpize\Parser\TokenExtractor::parseBracketsArray
Open

            return $this->parseBracketsArray();
Severity: Critical
Found in src/JsPhpize/Parser/TokenExtractor.php by phan

Call to undeclared method \JsPhpize\Compiler\InterpolationTrait::visitInstruction
Open

                yield rtrim($this->visitInstruction($parser->parse()->instructions[0], ''), ";\t\n\r\0\x0B ");

Only variables can be passed by reference at argument 1 of \extract()
Open

        extract(array_merge($this->sharedVariables, $variables));
Severity: Minor
Found in src/JsPhpize/JsPhpize.php by phan

Call to undeclared method \JsPhpize\Lexer\Scanner::valueToken
Open

        return $this->valueToken('newline', $matches);
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan

Call to undeclared method \JsPhpize\Lexer\Scanner::exceptionInfos
Open

            throw new Exception('Constants cannot start with ' . $constPrefix . ', this prefix is reserved for JsPhpize' . $this->exceptionInfos(), 1);
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan

Call to undeclared method \JsPhpize\Parser\TokenExtractor::parseTernary
Open

                $value = $this->parseTernary($value);
Severity: Critical
Found in src/JsPhpize/Parser/TokenExtractor.php by phan

TODO found
Open

                // @TODO handle let scope here
Severity: Minor
Found in src/JsPhpize/Parser/Parser.php by fixme

Reference to undeclared property \JsPhpize\Nodes\Assignable->value
Open

                var_export(strval($assignation->leftHand->value), true) . ', ' .
Severity: Minor
Found in src/JsPhpize/Compiler/Compiler.php by phan

Reference to undeclared property \JsPhpize\JsPhpizeOptions->options
Open

        $this->options['patterns'][] = $pattern;
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

Argument 1 (node) is \JsPhpize\Nodes\Assignable but \JsPhpize\Compiler\Compiler::visitNode() takes \JsPhpize\Nodes\Node defined at /code/src/JsPhpize/Compiler/Compiler.php:306
Open

                    $this->visitNode($assignation->leftHand, $indent),
Severity: Minor
Found in src/JsPhpize/Compiler/Compiler.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Block->inInstruction defined at /code/src/JsPhpize/Nodes/Block.php:11
Open

                $this->inInstruction = true;
Severity: Minor
Found in src/JsPhpize/Nodes/Block.php by phan

Call to undeclared method \JsPhpize\Lexer\Scanner::valueToken
Open

        throw $this->unexpected($this->valueToken('token', $matches));
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan
Severity
Category
Status
Source
Language