Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
37 | protected function handleBootstrap(Configuration $configuration) |
||
38 | 4 | { |
|
39 | $filename = $configuration->getBootstrap(); |
||
40 | |||
41 | 4 | if (!empty($filename)) { |
|
42 | 1 | $pathToFile = stream_resolve_include_path($filename); |
|
43 | 4 | if (!$pathToFile || !is_readable($pathToFile)) { |
|
44 | 4 | throw new Exception(sprintf('Cannot open bootstrap file "%s".' . PHP_EOL, $filename)); |
|
45 | } |
||
46 | require $pathToFile; |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |