SergioMadness/pwf

View on GitHub
framework/basic/db/QueryBuilder.php

Summary

Maintainability
A
0 mins
Test Coverage

The class QueryBuilder has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
Open

class QueryBuilder
{
    /**
     * MySQL driver
     */
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

Missing class import via use statement (line '62', column '27').
Open

                throw new \Exception('Wrong query builder driver');
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '80', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\MySQL\InsertBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '86', column '27').
Open

                throw new \Exception('Wrong query builder driver');
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '151', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\SQL\ConditionBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '83', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\PostgreSQL\InsertBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '107', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\PostgreSQL\UpdateBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '131', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\PostgreSQL\DeleteBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '134', column '27').
Open

                throw new \Exception('Wrong query builder driver');
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '104', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\MySQL\UpdateBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '59', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\PostgreSQL\SelectBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '128', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\MySQL\DeleteBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '56', column '31').
Open

                $result = new \pwf\components\querybuilder\adapters\MySQL\SelectBuilder();
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '110', column '27').
Open

                throw new \Exception('Wrong query builder driver');
Severity: Minor
Found in framework/basic/db/QueryBuilder.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Expected 1 newline at end of file; 0 found
Open

}

There are no issues that match your filters.

Category
Status