Showing 839 of 839 total issues

The variable $ref_flags is not named in camelCase.
Open

    public function injectScope($parent_scope)
    {
        $this->scope = $parent_scope;
        $flags = Symbol::S_TYPE | Symbol::S_ALIAS;
        $meta = [Meta::M_TYPE => $this->value];
Severity: Minor
Found in src/ast/stmt/TypeStmt.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $next_boundary is not named in camelCase.
Open

    private function handleCtrlRightArrow()
    {
        $boundaries = $this->getBoundaries();
        list ($line, $column) = $this->state('line', 'column');
        $next_boundary = reset(array_filter($boundaries, function ($boundary) use ($column) {
Severity: Minor
Found in src/cli/Repl.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $prompt_color is not named in camelCase.
Open

    private function renderPrompt($color = Console::FG_YELLOW)
    {
        $prompt = $this->state('complete') ? 'Quack> ' : '.....> ';
        $prompt_color = $this->state('complete') ? $color : Console::FG_BOLD_GREEN;
        $this->console->setColor($prompt_color);
Severity: Minor
Found in src/cli/Repl.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $text_size is not named in camelCase.
Open

    public function render()
    {
        $line = implode('', $this->state('line'));
        $column = $this->state('column');

Severity: Minor
Found in src/cli/Repl.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $new_line is not named in camelCase.
Open

    private function space()
    {
        $new_line = array_map('ord', ["\r", "\n", "\r\n", PHP_EOL]);

        do {
Severity: Minor
Found in src/lexer/Tokenizer.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $allowed_modifiers is not named in camelCase.
Open

    private function regex()
    {
        $buffer = [];
        $buffer[] = $this->readChar();
        $buffer[] = $this->readChar();
Severity: Minor
Found in src/lexer/Tokenizer.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $output_path is not named in camelCase.
Open

function bundle($config)
{
    // Configuration
    $bundle = $config['bundle'];
    $resources = $config['resources'];
Severity: Minor
Found in build.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $file_content is not named in camelCase.
Open

    public function readFiles()
    {
        $abstractions = [];
        $classes = [];
        $handle = opendir($this->path);
Severity: Minor
Found in build.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $file_content is not named in camelCase.
Open

    public function readFiles()
    {
        $abstractions = [];
        $classes = [];
        $handle = opendir($this->path);
Severity: Minor
Found in build.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $byte_array is not named in camelCase.
Open

function getCroakBuffer()
{
    $packing_method = 'S';
    $croak = realpath(dirname(__FILE__) . '/resource/quack.wav');
    $handle = fopen($croak, 'rb');
Severity: Minor
Found in build.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The method _exprStmt is not named in camelCase.
Open

    public function _exprStmt()
    {
        $this->reader->match(Tag::T_DO);
        $expr = $this->expr_parser->_expr();
        return new ExprStmt($expr);
Severity: Minor
Found in src/parser/StmtParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _fnSignature is not named in camelCase.
Open

    public function _fnSignature()
    {
        $name = null;
        $parameters = [];
        $type = null;
Severity: Minor
Found in src/parser/DeclParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _fnStmt is not named in camelCase.
Open

    public function _fnStmt()
    {
        $is_short = false;
        $body = null;

Severity: Minor
Found in src/parser/DeclParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _optExpr is not named in camelCase.
Open

    public function _optExpr()
    {
        return $this->_expr(0, true);
    }
Severity: Minor
Found in src/parser/ExprParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _letStmt is not named in camelCase.
Open

    public function _letStmt()
    {
        $this->reader->match(Tag::T_LET);
        $mutable = $this->reader->consumeIf(Tag::T_MUT);
        $name = $this->name_parser->_identifier();
Severity: Minor
Found in src/parser/StmtParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _type is not named in camelCase.
Open

    public function _type($precedence = 0)
    {
        $token = $this->reader->lookahead;
        $prefix = $this->prefixParseletForToken($token);

Severity: Minor
Found in src/parser/TypeParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _dataStmt is not named in camelCase.
Open

    public function _dataStmt()
    {
        $this->reader->match(Tag::T_DATA);
        $name = $this->name_parser->_typename();
        $parameters = [];
Severity: Minor
Found in src/parser/DeclParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _stmt is not named in camelCase.
Open

    public function _stmt()
    {
        $stmt_list = [
            Tag::T_IF       => '_ifStmt',
            Tag::T_LET      => '_letStmt',
Severity: Minor
Found in src/parser/StmtParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _ifStmt is not named in camelCase.
Open

    public function _ifStmt()
    {
        $this->reader->match(Tag::T_IF);
        $condition = $this->expr_parser->_expr();
        $body = $this->_stmtList();
Severity: Minor
Found in src/parser/StmtParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method _typename is not named in camelCase.
Open

    public function _typename()
    {
        return $this->reader->match(Tag::T_TYPENAME);
    }
Severity: Minor
Found in src/parser/NameParser.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language