| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function resolveClass(SplFileInfo $fileInfo, Closure $callback = null) |
||
| 17 | { |
||
| 18 | /** @noinspection PhpIncludeInspection */ |
||
| 19 | require_once $fileInfo->getPathname(); |
||
| 20 | |||
| 21 | $instance = app()->make($this->getModuleClassName($fileInfo)); |
||
|
|
|||
| 22 | |||
| 23 | if (\is_callable($callback)) { |
||
| 24 | $callback($instance); |
||
| 25 | } |
||
| 48 |