| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | View Code Duplication | public static function our_number($our_number) { |
|
| 41 | if (!$our_number) { |
||
| 42 | throw new \Exception("Couldn't find ".get_called_class()." without an our_number."); |
||
| 43 | } |
||
| 44 | $response = self::sendRequest('GET', 'bank_billets/our_number', ['query' => ['q' => $our_number]]); |
||
| 45 | $collection = []; |
||
| 46 | foreach ($response->json() as $attributes) { |
||
| 47 | $collection[] = new BankBillet($attributes); |
||
| 48 | } |
||
| 49 | return $collection; |
||
| 50 | } |
||
| 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.