moip/moip-sdk-php

View on GitHub
src/Resource/Account.php

Summary

Maintainability
D
2 days
Test Coverage

Account has 55 functions (exceeds 20 allowed). Consider refactoring.
Open

class Account extends MoipResource
{
    /**
     * Path accounts API.
     *
Severity: Major
Found in src/Resource/Account.php - About 7 hrs to fix

    File Account.php has 366 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace Moip\Resource;
    
    use Moip\Exceptions\ValidationException;
    Severity: Minor
    Found in src/Resource/Account.php - About 4 hrs to fix

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

          protected function populate(stdClass $response)
          {
              $account = clone $this;
              $account->data->email = new stdClass();
      
      
      Severity: Minor
      Found in src/Resource/Account.php - About 1 hr to fix

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

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

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

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

            There are no issues that match your filters.

            Category
            Status