| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | 2 | public static function getProjectRootDirectory(): string |
|
| 23 | { |
||
| 24 | 2 | if (null === self::$projectRootDirectory) { |
|
|
|
|||
| 25 | 1 | $reflection = new \ReflectionClass(ClassLoader::class); |
|
| 26 | 1 | self::$projectRootDirectory = \dirname((string)$reflection->getFileName(), 3); |
|
| 27 | } |
||
| 28 | |||
| 29 | 2 | return self::$projectRootDirectory; |
|
| 30 | } |
||
| 54 |