Cloudstek/mollie-php-api

View on GitHub

Showing 53 of 53 total issues

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

            throw new \InvalidArgumentException("Model data should be an array, object or traversable object.");
Severity: Minor
Found in src/Model/Base/ModelBase.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 '32').
Open

                    return new \DateTime($value);
Severity: Minor
Found in src/Model/Base/ModelBase.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 '75', column '31').
Open

                    throw new \InvalidArgumentException("Property {$name} is not a valid date/time string: {$value}.");
Severity: Minor
Found in src/Model/Base/ModelBase.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 '183', column '19').
Open

        throw new \Exception('Not implemented.');
Severity: Minor
Found in src/Model/Payment.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 '91', column '46').
Open

                    $opts['startDate'] = new \DateTime($opts['startDate']);

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

            throw new \InvalidArgumentException(sprintf("%s argument must either be a %s object or an ID as string.", ucfirst($name), $type));
Severity: Minor
Found in src/Resource/Base/ResourceBase.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 '178', column '23').
Open

            throw new \BadMethodCallException("No customer ID was given");
Severity: Minor
Found in src/Resource/CustomerResource.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 '100', column '27').
Open

                throw new \InvalidArgumentException("Property {$name} is not an object, array or valid JSON string.");
Severity: Minor
Found in src/Model/Base/ModelBase.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 '27').
Open

                throw new \InvalidArgumentException("Argument signatureDate must be of type DateTime.");

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

            throw new \InvalidArgumentException("Name argument can't be an empty string.");
Severity: Minor
Found in src/Resource/CustomerResource.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 '68', column '23').
Open

            throw new \InvalidArgumentException('Metadata argument must be of type array or object.');
Severity: Minor
Found in src/Resource/PaymentResource.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 '95', column '23').
Open

            throw new \InvalidArgumentException('Metadata argument must be of type array or object.');
Severity: Minor
Found in src/Resource/CustomerResource.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

Avoid too many return statements within this method.
Open

        return $value;
Severity: Major
Found in src/Model/Base/ModelBase.php - About 30 mins to fix

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

                        return new \DateInterval($value);
    Severity: Minor
    Found in src/Model/Base/ModelBase.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 '55', column '23').
    Open

                throw new \InvalidArgumentException('Metadata argument must be of type array or object.');

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

                throw new \InvalidArgumentException("Email argument can't be an empty string.");
    Severity: Minor
    Found in src/Resource/CustomerResource.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 '55', column '23').
    Open

                throw new \InvalidArgumentException("Image size '{$size}' for payment method {$this->id} does not exist.");
    Severity: Minor
    Found in src/Model/Method.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 '148', column '23').
    Open

                throw new \BadMethodCallException("No customer ID was given");
    Severity: Minor
    Found in src/Resource/CustomerResource.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 '192', column '19').
    Open

            throw new \Exception('Not implemented.');
    Severity: Minor
    Found in src/Model/Payment.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 '50', column '23').
    Open

                throw new \InvalidArgumentException(sprintf("Invalid recurring type '%s'. Recurring type must be 'first' or 'recurring'.", $opts['recurringType']));

    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