AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

Missing class import via use statement (line '254', column '23').
Open

            throw new \Exception($result->getMessage(), $result->getCode());
Severity: Minor
Found in class/Internship.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 '73', column '26').
Open

        $this->pdf = new \setasign\Fpdi\Fpdi('P', 'mm', 'Letter');
Severity: Minor
Found in class/InternshipContractPdfView.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 '35', column '19').
Open

        $db = new \PHPWS_DB('intern_state');
Severity: Minor
Found in class/State.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 '42', column '23').
Open

            throw new \InvalidArgumentException('Missing new code.');
Severity: Minor
Found in class/LevelFactory.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 '42', column '19').
Open

        $db = new \PHPWS_DB('intern_state');
Severity: Minor
Found in class/State.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 '54', column '19').
Open

        $db = new \PHPWS_DB('intern_state');
Severity: Minor
Found in class/State.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

The method _getJoinOn has a boolean flag argument $ignore_tables, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function _getJoinOn($join_on_1, $join_on_2, $table1, $table2, $ignore_tables = false)
Severity: Minor
Found in class/SubselectDatabase.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '47', column '23').
Open

            throw new \InvalidArgumentException('Host ID is required.');
Severity: Minor
Found in class/SubHostFactory.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 '99', column '23').
Open

            throw new \InvalidArgumentException('Invalid Host ID.');
Severity: Minor
Found in class/SubHostFactory.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

The method getColumnInfo has a boolean flag argument $parsed, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getColumnInfo($col_name, $parsed = false)
Severity: Minor
Found in class/SubselectDatabase.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '95', column '23').
Open

            throw new \InvalidArgumentException('Host ID is required.');
Severity: Minor
Found in class/SubHostFactory.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 '28', column '23').
Open

            throw new \InvalidArgumentException('Host ID is required.');
Severity: Minor
Found in class/SubHostFactory.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

The method addJoin has a boolean flag argument $ignore_tables, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function addJoin($join_type, $join_from, $join_to, $join_on_1 = null, $join_on_2 = null, $ignore_tables = false)
Severity: Minor
Found in class/SubselectDatabase.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method getTableColumns has a boolean flag argument $fullInfo, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getTableColumns($fullInfo = false)
Severity: Minor
Found in class/SubselectDatabase.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '70', column '23').
Open

            throw new \InvalidArgumentException('Invalid Host ID.');
Severity: Minor
Found in class/SubHostFactory.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 '31', column '20').
Open

        return new \PHPWS_DB('intern_subject');
Severity: Minor
Found in class/Subject.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

The method query has a boolean flag argument $prefix, which is a certain sign of a Single Responsibility Principle violation.
Open

    public static function query($sql, $prefix = true)
Severity: Minor
Found in class/SubselectDatabase.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Missing class import via use statement (line '32', column '23').
Open

            throw new \InvalidArgumentException('Invalid Host ID.');
Severity: Minor
Found in class/SubHostFactory.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 '51', column '23').
Open

            throw new \InvalidArgumentException('Invalid Host ID.');
Severity: Minor
Found in class/SubHostFactory.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 '66', column '23').
Open

            throw new \InvalidArgumentException('Host ID is required.');
Severity: Minor
Found in class/SubHostFactory.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

Severity
Category
Status
Source
Language