Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
50 | public static function someErrorWhenSendingSms(Response $response) |
||
51 | { |
||
52 | $code = $response->getStatusCode(); |
||
53 | $message = $response->getBody()->getContents(); |
||
54 | |||
55 | return new static( |
||
56 | sprintf('Could not send sms notification to mobily.ws. Status code %s and message: %s', $code, $message) |
||
57 | ); |
||
58 | } |
||
59 | |||
72 |