| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | View Code Duplication | public static function cnpj_cpf($cnpj_cpf) { |
|
| 17 | if (!$cnpj_cpf) { |
||
| 18 | throw new \Exception("Couldn't find ".get_called_class()." without an cnpj or cpf."); |
||
| 19 | } |
||
| 20 | $response = self::sendRequest('GET', 'bank_billets/cnpj_cpf', ['query' => ['q' => $cnpj_cpf]]); |
||
| 21 | $collection = []; |
||
| 22 | foreach ($response->json() as $attributes) { |
||
| 23 | $collection[] = new BankBillet($attributes); |
||
| 24 | } |
||
| 25 | return $collection; |
||
| 26 | } |
||
| 27 | |||
| 51 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.