Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 6 | private function getConfigPath() |
|
32 | { |
||
33 | 6 | $classname = class_basename(get_called_class()); |
|
34 | 6 | $config = strtolower(preg_replace('/driver$/i', null, $classname)); |
|
35 | 6 | $path = sprintf('bugnotifier.%s', $config); |
|
36 | |||
37 | 6 | if (config($path, false) === false) { |
|
38 | throw new DriverConfigPathNotFoundException; |
||
39 | } |
||
40 | |||
41 | 6 | return $path; |
|
42 | } |
||
43 | } |
||
44 |