Cloudstek/mollie-php-api

View on GitHub
src/Resource/PaymentResource.php

Summary

Maintainability
A
35 mins
Test Coverage

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

    public function create($amount, $description, $redirectUrl, $metadata = null, array $opts = array())
Severity: Minor
Found in src/Resource/PaymentResource.php - About 35 mins to fix

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

                throw new \BadMethodCallException("No payment ID was given");
    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

    There are no issues that match your filters.

    Category
    Status