NeroReflex/Gishiki

View on GitHub
src/Security/Hashing/Algorithm.php

Summary

Maintainability
A
35 mins
Test Coverage

Method pbkdf2 has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public static function pbkdf2($password, $salt, $keyLength, $count, $algorithm = self::SHA256)
Severity: Minor
Found in src/Security/Hashing/Algorithm.php - About 35 mins to fix

    Missing class import via use statement (line '74', 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 '104', column '23').
    Open

                throw new \InvalidArgumentException('The message digest to be checked 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 '131', 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 '260', column '23').
    Open

                throw new \InvalidArgumentException('The message digest to be checked 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 '313', column '23').
    Open

                throw new \InvalidArgumentException('The hashing algorithm for the PBKDF2 function must be a non-empty string', 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 '99', 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 '206', column '23').
    Open

                throw new \InvalidArgumentException('The message digest to be checked 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 '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 '227', 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 '201', 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 '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 '157', column '23').
    Open

                throw new \InvalidArgumentException('The message digest to be checked 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 '180', 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 '305', column '23').
    Open

                throw new \InvalidArgumentException('The iteration number 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

    There are no issues that match your filters.

    Category
    Status