NeroReflex/Gishiki

View on GitHub

Showing 176 of 176 total issues

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

            throw new \InvalidArgumentException('the field name must be a string');

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

Avoid too many return statements within this method.
Open

            return new self($nativeSerialization);
Severity: Major
Found in src/Algorithms/Collections/SerializableCollection.php - About 30 mins to fix

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

                throw new \InvalidArgumentException('The digital signature of the message must be a non-empty string');

    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 '70', column '23').
    Open

                throw new \InvalidArgumentException('The key length must be given as an integer number which is a power of two');

    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 '132', column '23').
    Open

                throw new \InvalidArgumentException('The encrypted message to be decrypted must be given as a non-empty string');

    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 '152', column '23').
    Open

                throw new \InvalidArgumentException('The message to be hashed must be given as a valid non-empty string');
    Severity: Minor
    Found in src/Security/Hashing/Algorithm.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 '309', column '23').
    Open

                throw new \InvalidArgumentException('The resulting key length for the PBKDF2 function must be a positive non-zero integer', 2);
    Severity: Minor
    Found in src/Security/Hashing/Algorithm.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 '88', column '23').
    Open

                throw new \InvalidArgumentException('the base64 of a string is represented as another string');
    Severity: Minor
    Found in src/Algorithms/Base64.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 '78', column '33').
    Open

            $reflectedAdapter = new \ReflectionClass(self::ADAPTERS_MAP[$adapter]);
    Severity: Minor
    Found in src/Database/DatabaseManager.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 '23').
    Open

                throw new \InvalidArgumentException('the field data cannot be a php object or an extension native resource');

    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 '74', column '23').
    Open

                throw new \InvalidArgumentException("The given environment key must be a non-empty valid string");
    Severity: Minor
    Found in src/Core/Environment.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 '255', column '23').
    Open

                throw new \InvalidArgumentException('The message to be hashed must be given as a valid non-empty string');
    Severity: Minor
    Found in src/Security/Hashing/Algorithm.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 '116', column '23').
    Open

                throw new \InvalidArgumentException('The ordering mus be given as ASC or DESC (see FieldOrdering)');

    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 '64', column '23').
    Open

                throw new \InvalidArgumentException('The logger name must be given as a valid non-empty string');
    Severity: Minor
    Found in src/Logging/LoggerManager.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 '89', column '23').
    Open

                throw new \InvalidArgumentException("The given environment key must be a non-empty valid string");
    Severity: Minor
    Found in src/Core/Environment.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 '23').
    Open

                throw new \InvalidArgumentException('The data to be written on the database must be given as a collection');

    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 '213', column '23').
    Open

                throw new \InvalidArgumentException('The name of the table must be given as a non-empty string');

    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 '326', column '29').
    Open

            $exportMethod = new \ReflectionMethod($mod, 'export');

    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 '27').
    Open

                    throw new \InvalidArgumentException('The given connection requires an unknown class');
    Severity: Minor
    Found in src/Logging/LoggerManager.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 '103', column '44').
    Open

                    $reflectedMiddleware = new \ReflectionClass($pluginValue);

    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