AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

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

    public static function dropTable($table, $check_existence = true, $sequence_table = 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

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

    public function parsePearCol($info, $strip_name = 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 saveObject has a boolean flag argument $stripChar, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function saveObject($object, $stripChar = false, $autodetect_id = 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

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

    public function loadObject($object, $require_where = 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

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

    public function saveObject($object, $stripChar = false, $autodetect_id = 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

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

    public function joinResult($source_column, $join_table, $join_column, $content_column, $new_name=null, $searchable=false)
Severity: Minor
Found in class/SubselectPager.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 '60', column '27').
Open

                throw new \Exception ($result->toString());
Severity: Minor
Found in class/SubselectPager.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 '223', column '23').
Open

            throw new \Exception($count->toString());
Severity: Minor
Found in class/SubselectPager.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 '82', column '23').
Open

            throw new \Exception($rows);
Severity: Minor
Found in class/SubselectPager.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 get has a boolean flag argument $return_blank_results, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function get($return_blank_results=true)
Severity: Minor
Found in class/SubselectPager.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 initialize has a boolean flag argument $load_rows, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function initialize($load_rows=true)
Severity: Minor
Found in class/SubselectPager.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 setOrder has a boolean flag argument $only_if_empty, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function setOrder($column, $direction='asc', $only_if_empty=false)
Severity: Minor
Found in class/SubselectPager.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 '1226', column '21').
Open

        $form = new \PHPWS_Form($id);
Severity: Minor
Found in class/SubselectPager.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 cacheQueries has a boolean flag argument $cache, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function cacheQueries($cache=true)
Severity: Minor
Found in class/SubselectPager.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 '1305', column '19').
Open

        $dl = new \HTTP_Download;
Severity: Minor
Found in class/SubselectPager.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 '53', column '21').
Open

        $form = new \PHPWS_Form('edit_affil');
Severity: Minor
Found in class/UI/EditAgreementUI.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 '49', column '23').
Open

            $db = new \PHPWS_DB('intern_internship');
Severity: Minor
Found in class/UI/InternMenu.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('Supervisor ID is required.');
Severity: Minor
Found in class/SupervisorFactory.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 '43', column '27').
Open

                throw new \InvalidArgumentException('Invalid transition source state.');
Severity: Minor
Found in class/WorkflowController.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 '46', column '23').
Open

            throw new \InvalidArgumentException('Invalid transition source state.');
Severity: Minor
Found in class/WorkflowController.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