| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | protected function getModuleClassName(SplFileInfo $fileInfo) |
||
| 34 | { |
||
| 35 | $name = str_replace('.php', '', $fileInfo->getBasename()); |
||
| 36 | |||
| 37 | $path = trim(str_replace( |
||
| 38 | app_path(), |
||
| 39 | '', |
||
| 40 | \dirname($fileInfo->getPathname()) |
||
| 41 | ), \DIRECTORY_SEPARATOR); |
||
| 42 | |||
| 43 | $location = str_replace('/', '\\', $path); |
||
| 44 | |||
| 45 | return app()->getNamespace()."{$location}\\{$name}"; |
||
| 46 | } |
||
| 48 |