brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

        } else if ($table instanceof QueryBuilder) {

Whitespace found at end of line
Open

     * 

Whitespace found at end of line
Open

        }        

Whitespace found at end of line
Open

        $this->dataAccess = new DataAccess($this);        

Opening brace must be the last content on the line
Open

            return Data::groupJoin($this->map(function ($a) { return $a->getModel(); }), $parameter);
Severity: Minor
Found in src/Orm/Collection.php by phpcodesniffer

Whitespace found at end of line
Open

                break; 
Severity: Minor
Found in src/OperatorParser.php by phpcodesniffer

Whitespace found at end of line
Open

        }        

Closing brace must be on a line by itself
Open

            return Data::groupJoin($this->map(function ($a) { return $a->getModel(); }), $parameter);
Severity: Minor
Found in src/Orm/Collection.php by phpcodesniffer

Whitespace found at end of line
Open

        }        

Expected 1 space after FOREACH keyword; 0 found
Open

        foreach(preg_split('~[\r\n]+~', $data) as $line) {

Expected 1 space after SWITCH keyword; 0 found
Open

                        switch(trim($value)) {

Whitespace found at end of line
Open

        // Find all the ancestors of the root node above - i.e. find all nodes in this graph 

The variable $previous_exception is not named in camelCase.
Open

    public function __construct(Q $query, \Exception $previous_exception = null)
    {
        parent::__construct('Query error: '.$query->error, $query, $previous_exception);
    }
Severity: Minor
Found in src/Exception/Query.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 $data_access is not named in camelCase.
Open

    public static function dumpModel(Model $model)
    {
        $data_access = function ($var) {
            return $this->$var;
        };
Severity: Minor
Found in src/Orm/Dump.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 $data_access is not named in camelCase.
Open

    public static function dumpModel(Model $model)
    {
        $data_access = function ($var) {
            return $this->$var;
        };
Severity: Minor
Found in src/Orm/Dump.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 _init is not named in camelCase.
Open

    protected function _init()
    {
    }
Severity: Minor
Found in src/Orm/Model.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

Possibly zero references to use statement for classlike/namespace OperatorParser (\Automatorm\OperatorParser)
Open

use Automatorm\OperatorParser;
Severity: Minor
Found in src/DataLayer/Fake/Data.php by phan

Argument 2 (cmp_function) is Closure(mixed,mixed):bool but \usort() takes callable(mixed,mixed):int
Open

                usort($returnData, function ($a, $b) use ($sort) {
Severity: Minor
Found in src/DataLayer/Fake/DataAccess.php by phan

Variable $options is undeclared
Open

                    foreach ((array) $options['sort'] as $sortby) {
Severity: Minor
Found in src/DataLayer/Fake/DataAccess.php by phan

Parameter $logger has undeclared type ?\Psr\Log\LoggerInterface
Open

    protected function __construct($details, array $options = [], LoggerInterface $logger = null)
Severity: Minor
Found in src/DataLayer/Database/Connection.php by phan
Severity
Category
Status
Source
Language