brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Variable $clauses was undeclared, but array fields are being added to it.
Open

                $clauses['`pivotjoin`.`' . $clauseColumn . '`' . $prefix] = $clauseValue;

Call with 2 arg(s) to \natsort() which only takes 1 arg(s)
Open

                            $result = natsort($b[$sort], $a[$sort]);
Severity: Info
Found in src/DataLayer/Fake/DataAccess.php by phan

Invalid operator: left operand of * is null (expected number)
Open

            $time = number_format($query->debug[$count]['time'] * 1000, 2);
Severity: Minor
Found in src/Database/Query.php by phan

Saw a dynamic usage of an instance property with a name of type callable but expected the name to be a string
Open

                return strnatcasecmp($a->{$key}, $b->{$key});
Severity: Minor
Found in src/Orm/Collection.php by phan

Variable $this is undeclared
Open

            $data = $data_access->bindTo($this->_data, $this->_data);
Severity: Minor
Found in src/Orm/Dump.php by phan

Found a return statement with a value in the implementation of the magic method \Automatorm\Orm\Model::__wakeup, expected void return type
Open

    public function __wakeup()
Severity: Info
Found in src/Orm/Model.php by phan

Possibly zero references to use statement for classlike/namespace LoggerInterface (\Psr\Log\LoggerInterface)
Open

use Psr\Log\LoggerInterface;
Severity: Minor
Found in src/DataLayer/Fake/Connection.php by phan

Call to undeclared method \Automatorm\Interfaces\Connection::getDataStore
Open

                            $this->connection->getDataStore()->getData($key['schema'])->addCrossSchemaForeignKey($refTableName, 'one-to-many', $propertyName, $value);
Severity: Critical
Found in src/DataLayer/Fake/SchemaGenerator.php by phan

Possibly zero references to use statement for classlike/namespace Expression (\Automatorm\Database\QueryBuilder\Expression)
Open

    Table, SubQuery, Column, CountColumn, Join, Expression, Data, Where
Severity: Minor
Found in src/Database/QueryBuilder.php by phan

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

use Automatorm\Exception;
Severity: Minor
Found in src/Generator/Model.php by phan

Found a return statement with a value in the implementation of the magic method \Automatorm\Orm\Data::__set, expected void return type
Open

    public function __set($var, $value)
Severity: Info
Found in src/Orm/Data.php by phan

Variable $this is undeclared
Open

                        $value = $this->$method();
Severity: Minor
Found in src/Orm/Dump.php by phan

Checking instanceof against undeclared class \Automatorm\Orm\DateTimeInterface (Did you mean interface \DateTimeInterface)
Open

            case $value instanceof DateTimeInterface:
Severity: Critical
Found in src/Orm/Dump.php by phan

Call to method format on non-class type null
Open

                $display3 = $value->format('Y-m-d H:i:s');
Severity: Critical
Found in src/Orm/Dump.php by phan

Reference to undeclared property \Automatorm\Orm\Traits\ClosureTree->id
Open

        $query->sql(QueryBuilder::insert($this->closureTable, ['parent_id' => $this->id, 'child_id' => $this->id, 'depth' => 0]));
Severity: Minor
Found in src/Orm/Traits/ClosureTree.php by phan

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

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

Reference to undeclared property \Automatorm\Interfaces\Connection->data
Open

        $data = $this->connection->data;
Severity: Minor
Found in src/DataLayer/Fake/SchemaGenerator.php by phan

Assigning array<int></int> to property but \Automatorm\Database\Query->debug is array<int></int>
Open

                $this->debug[$count]['time'] = microtime(true) - $time;
Severity: Minor
Found in src/Database/Query.php by phan

Possibly zero references to use statement for classlike/namespace Renderable (\Automatorm\Database\Interfaces\Renderable)
Open

use Automatorm\Database\Interfaces\Renderable;
Severity: Minor
Found in src/Database/QueryBuilder/Data.php by phan

Reference to undeclared property \Automatorm\Database\QueryBuilder->currentJoin
Open

        $this->currentJoin = end($this->joins);
Severity: Minor
Found in src/Database/QueryBuilder.php by phan
Severity
Category
Status
Source
Language