Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 2 | public function __construct($routeName, BadRouteException $exception = null) |
|
16 | { |
||
17 | 2 | if (null === $exception) { |
|
18 | 1 | $message = sprintf( |
|
19 | 1 | 'Invalid options specified for route "%s"', |
|
20 | $routeName |
||
21 | ); |
||
22 | } else { |
||
23 | 1 | $message = sprintf( |
|
24 | 1 | 'Error for route "%s": %s', |
|
25 | $routeName, |
||
26 | 1 | $exception->getMessage() |
|
27 | ); |
||
28 | } |
||
29 | |||
30 | 2 | parent::__construct($message); |
|
31 | 2 | } |
|
32 | } |
||
33 |