| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function facebookRespondedWithAnError(ClientException $exception) |
||
| 18 | { |
||
| 19 | $result = json_decode($exception->getResponse()->getBody()); |
||
| 20 | |||
| 21 | return new static("Facebook responded with an error `{$result->error->code} - {$result->error->type} {$result->error->message}`"); |
||
| 22 | } |
||
| 23 | |||
| 68 |