src/Resource/Account.php
Account
has 55 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Account extends MoipResource
{
/**
* Path accounts API.
*
File Account.php
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Moip\Resource;
use Moip\Exceptions\ValidationException;
Method populate
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function populate(stdClass $response)
{
$account = clone $this;
$account->data->email = new stdClass();
Method addAddress
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function addAddress($street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)
Method setCompanyAddress
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function setCompanyAddress($street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)