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