Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
24 | 3 | public static function proxyResponse(HttpException $exception) |
|
25 | { |
||
26 | 3 | $message = sprintf( |
|
27 | 3 | '%s error response "%s" from caching proxy', |
|
28 | 3 | $exception->getResponse()->getStatusCode(), |
|
29 | 3 | $exception->getResponse()->getReasonPhrase() |
|
30 | ); |
||
31 | |||
32 | 3 | return new self($message, 0, $exception); |
|
33 | } |
||
35 |