Showing 839 of 839 total issues

The method _stmtList is not named in camelCase.
Open

    public function _stmtList()
    {
        $stmt_list = [];
        while ($this->startsStmt()) {
            $stmt_list[] = $this->_stmt();
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 _whileStmt is not named in camelCase.
Open

    public function _whileStmt()
    {
        $this->reader->match(Tag::T_WHILE);
        $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 _qualifiedName is not named in camelCase.
Open

    public function _qualifiedName()
    {
        $names = [];
        do {
            $names[] = $this->_identifier();
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

The method _parameter is not named in camelCase.
Open

    public function _parameter()
    {
        $name = $this->name_parser->_identifier();
        $type = null;
        if ($this->reader->consumeIf('::')) {
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 _blockStmt is not named in camelCase.
Open

    public function _blockStmt()
    {
        $this->reader->match(Tag::T_BEGIN);
        $body = $this->_stmtList();
        $this->reader->match(Tag::T_END);
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 _typeConsStmt is not named in camelCase.
Open

    public function _typeConsStmt()
    {
        $name = $this->name_parser->_typename();
        $values = [];
        if ($this->reader->consumeIf('(')) {
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 _expr is not named in camelCase.
Open

    public function _expr($precedence = 0, $opt = false)
    {
        $token = $this->reader->lookahead;
        $prefix = $this->prefixParseletForToken($token);

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 _identifier is not named in camelCase.
Open

    public function _identifier()
    {
        return $this->reader->match(Tag::T_IDENT);
    }
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

The method _elifList is not named in camelCase.
Open

    public function _elifList()
    {
        $elifs = [];
        while ($this->reader->consumeIf(Tag::T_ELIF)) {
            $condition = $this->expr_parser->_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 _returnStmt is not named in camelCase.
Open

    public function _returnStmt()
    {
        $this->reader->match('^');
        $expression = $this->expr_parser->_optExpr();

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 _optElse is not named in camelCase.
Open

    public function _optElse()
    {
        if ($this->reader->consumeIf(Tag::T_ELSE)) {
            return $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 _typeStmt is not named in camelCase.
Open

    public function _typeStmt()
    {
        $this->reader->match(Tag::T_TYPE);
        $name = $this->name_parser->_typename();
        $this->reader->match(':-');
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 _program is not named in camelCase.
Open

    public function _program()
    {
        $body = [];
        while (!$this->reader->isEOF()) {
            $body[] = $this->_stmt();
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 _foreachStmt is not named in camelCase.
Open

    public function _foreachStmt()
    {
        $key = null;
        $this->reader->match(Tag::T_FOREACH);

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 _breakStmt is not named in camelCase.
Open

    public function _breakStmt()
    {
        $this->reader->match(Tag::T_BREAK);
        $label = $this->_optLabel();
        return new BreakStmt($label);
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 _labelStmt is not named in camelCase.
Open

    public function _labelStmt()
    {
        $this->reader->match('[');
        $label_name = $this->name_parser->_identifier();
        $this->reader->match(']');
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 _optLabel is not named in camelCase.
Open

    public function _optLabel()
    {
        return $this->reader->is(Tag::T_IDENT)
            ? $this->name_parser->_identifier()
            : null;
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 _continueStmt is not named in camelCase.
Open

    public function _continueStmt()
    {
        $this->reader->match(Tag::T_CONTINUE);
        $label = $this->_optLabel();
        return new ContinueStmt($label);
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

TODO found
Open

-- TODO: tell prefix from postfix and infix operators on objects
Severity: Minor
Found in lib/primitives.qk by fixme

TODO found
Open

            // TODO: inject type too?
Severity: Minor
Found in src/ast/stmt/FnSignatureStmt.php by fixme
Severity
Category
Status
Source
Language