moip/moip-sdk-php

View on GitHub
src/Resource/Customer.php

Summary

Maintainability
B
4 hrs
Test Coverage

Customer has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

class Customer extends MoipResource
{
    /**
     * Path customers API.
     *
Severity: Minor
Found in src/Resource/Customer.php - About 2 hrs to fix

    Method addAddress has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function addAddress($type, $street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)
    Severity: Major
    Found in src/Resource/Customer.php - About 1 hr to fix

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

          public function setCreditCard($expirationMonth, $expirationYear, $number, $cvc, Holder $holder = null)
      Severity: Minor
      Found in src/Resource/Customer.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status