| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 6 | public static function create($exceptions) |
|
| 34 | { |
||
| 35 | 6 | $message = 'Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors'; |
|
| 36 | 6 | foreach ($exceptions as $e) { |
|
| 37 | 6 | $message .= "\n - ".$e->getMessage(); |
|
| 38 | } |
||
| 39 | 6 | $message .= "\n\n"; |
|
| 40 | |||
| 41 | 6 | return new self($message, $exceptions); |
|
| 42 | } |
||
| 43 | |||
| 52 |