Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function __construct($message, array $tried, $code = 404, \Exception $exception = null) |
||
39 | { |
||
40 | $this->tried = $tried; |
||
41 | |||
42 | if ($tried) |
||
43 | { |
||
44 | $tried = implode("\n", array_map(function ($v) { return "- $v"; }, $tried)); |
||
45 | $message .= " The following files were tried:\n\n" . $tried; |
||
46 | } |
||
47 | else |
||
48 | { |
||
49 | $message .= " Also, no possible files were specified."; |
||
50 | } |
||
51 | |||
52 | parent::__construct($message, $code, $exception); |
||
53 | } |
||
54 | } |
||
55 |