| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 2 | public static function getProjectRootDirectory(): string |
|
| 48 | { |
||
| 49 | 2 | if (self::$projectRootDirectory === null) { |
|
|
|
|||
| 50 | 1 | $reflection = new ReflectionClass(ClassLoader::class); |
|
| 51 | 1 | self::$projectRootDirectory = \dirname((string)$reflection->getFileName(), 3); |
|
| 52 | } |
||
| 53 | |||
| 54 | 2 | return self::$projectRootDirectory; |
|
| 55 | } |
||
| 57 |