pug-php/js-phpize

View on GitHub
src/JsPhpize/JsPhpizeOptions.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

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

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

Assigning null to property but \JsPhpize\JsPhpizeOptions->patternsCache is array
Open

        $this->patternsCache = null;
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

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

        return isset($this->options[$key]) ? $this->options[$key] : $default;
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

Reference to undeclared property \JsPhpize\JsPhpizeOptions->options (Did you mean $options)
Open

        $this->options = is_array($options) || $options instanceof ArrayAccess ? $options : [];
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

Reference to undeclared property \JsPhpize\JsPhpizeOptions->options (Did you mean $options)
Open

                new Pattern(130, 'constant', 'null|undefined|Infinity|NaN|true|false|Math\.[A-Z][A-Z0-9_]*' . (isset($this->options['disableConstants']) && $this->options['disableConstants']
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

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

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

Reference to undeclared property \JsPhpize\JsPhpizeOptions->options (Did you mean $options)
Open

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

Reference to undeclared property \JsPhpize\JsPhpizeOptions->options (Did you mean $options)
Open

        if (!isset($this->options['patterns'])) {
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

Line exceeds 120 characters; contains 485 characters
Open

                new Pattern(120, 'keyword', ['as', 'async', 'await', 'break', 'case', 'catch', 'class', 'clone', 'const', 'continue', 'debugger', 'default', 'do', 'else', 'enum', 'export', 'extends', 'finally', 'for', 'from', 'function', 'get', 'if', 'implements', 'import', 'in', 'instanceof', 'interface', 'let', 'new', 'of', 'package', 'private', 'protected', 'public', 'return', 'set', 'static', 'super', 'switch', 'throw', 'try', 'var', 'while', 'with', 'yield', 'yield*'], true),

Line exceeds 120 characters; contains 190 characters
Open

                new Pattern(130, 'constant', 'null|undefined|Infinity|NaN|true|false|Math\.[A-Z][A-Z0-9_]*' . (isset($this->options['disableConstants']) && $this->options['disableConstants']

Line exceeds 120 characters; contains 138 characters
Open

                    : '|[A-Z][A-Z0-9\\\\_\\x7f-\\xff]*|[\\\\\\x7f-\\xff_][A-Z0-9\\\\_\\x7f-\\xff]*[A-Z][A-Z0-9\\\\_\\x7f-\\xff]*'), true),

There are no issues that match your filters.

Category
Status