Dhii/expression-abstract

View on GitHub

Showing 38 of 38 total issues

The method _removeValue is not named in camelCase.
Open

    protected function _removeValue($key)
    {
        unset($this->value[$key]);

        return $this;

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

    protected function _getValue()
    {
        return $this->value;
    }
Severity: Minor
Found in src/Context/AbstractContext.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 _evaluate is not named in camelCase.
Open

    protected function _evaluate(ValueAwareInterface $ctx = null)
    {
        return $this->_eval($ctx);
    }

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

    protected function _setValue($key, $value = null)
    {
        $this->value[$key] = $value;

        return $this;

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

    protected function _setValue($value)
    {
        $this->value = $value;

        return $this;
Severity: Minor
Found in src/Context/AbstractContext.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 _evaluateTerm is not named in camelCase.
Open

    protected function _evaluateTerm(EvaluableInterface $term, ValueAwareInterface $ctx = null)
    {
        return $term->evaluate($ctx);
    }

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

    protected function _removeTerm($index)
    {
        array_splice($this->terms, $index, 1, array());

        return $this;
Severity: Minor
Found in src/Expression/AbstractExpression.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 _clearValues is not named in camelCase.
Open

    protected function _clearValues()
    {
        $this->value = array();

        return $this;

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

    protected function _getValues()
    {
        return $this->value;
    }

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

    protected function _getOrderedTerms(ValueAwareInterface $ctx = null)
    {
        return $this->_getTerms();
    }

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

    protected function _eval(ValueAwareInterface $ctx = null)
    {
        $terms    = $this->_getOrderedTerms($ctx);
        $numTerms = count($terms);

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

    protected function _updateBuffer($buffer, $next, ValueAwareInterface $ctx = null)
    {
        return $this->_operator($next, $buffer, $ctx);
    }

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

    abstract protected function _createEvaluationException($message, $code = 1, \Exception $previous = null);
Severity: Minor
Found in src/Term/AbstractValueTerm.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 _hasValue is not named in camelCase.
Open

    protected function _hasValue($key)
    {
        return isset($this->value[$key]);
    }

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

    protected function _getTerms()
    {
        return $this->terms;
    }
Severity: Minor
Found in src/Expression/AbstractExpression.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 _updateBuffer is not named in camelCase.
Open

    protected function _updateBuffer($buffer, $next, ValueAwareInterface $ctx = null)
    {
        return $this->_operator($buffer, $next, $ctx);
    }

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

    abstract protected function _operator($left, $right, ValueAwareInterface $ctx = null);

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

    abstract protected function _evaluate(ValueAwareInterface $ctx = null);
Severity: Minor
Found in src/Term/AbstractValueTerm.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