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