| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | View Code Duplication | public static function status($status) { |
|
| 29 | if (!$status) { |
||
| 30 | throw new \Exception("Couldn't find ".get_called_class()." without an status."); |
||
| 31 | } |
||
| 32 | $response = self::sendRequest('GET', 'bank_billets/status', ['query' => ['q' => $status]]); |
||
| 33 | $collection = []; |
||
| 34 | foreach ($response->json() as $attributes) { |
||
| 35 | $collection[] = new BankBillet($attributes); |
||
| 36 | } |
||
| 37 | return $collection; |
||
| 38 | } |
||
| 39 | |||
| 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.