moip/moip-sdk-php

View on GitHub
src/Resource/Refund.php

Summary

Maintainability
A
4 hrs
Test Coverage

Method populate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function populate(stdClass $response)
    {
        $refund = clone $this;

        $refund->data->id = $this->getIfSet('id', $response);
Severity: Minor
Found in src/Resource/Refund.php - About 1 hr to fix

    Method bankAccountPartial has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function bankAccountPartial($amount, $type, $bankNumber, $agencyNumber, $agencyCheckNumber, $accountNumber, $accountCheckNumber, Customer $holder)
    Severity: Major
    Found in src/Resource/Refund.php - About 1 hr to fix

      Method bankAccountDataCustomer has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          private function bankAccountDataCustomer($type, $bankNumber, $agencyNumber, $agencyCheckNumber, $accountNumber, $accountCheckNumber, Customer $holder)
      Severity: Major
      Found in src/Resource/Refund.php - About 50 mins to fix

        Method bankAccountFull has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function bankAccountFull($type, $bankNumber, $agencyNumber, $agencyCheckNumber, $accountNumber, $accountCheckNumber, Customer $holder)
        Severity: Major
        Found in src/Resource/Refund.php - About 50 mins to fix

          There are no issues that match your filters.

          Category
          Status