| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 6 | public static function provide() : string |
|
| 21 | { |
||
| 22 | 6 | if (self::$vendorDir) { |
|
| 23 | 5 | return self::$vendorDir; |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | $classLoaderReflection = new ReflectionClass(ClassLoader::class); |
|
| 27 | 1 | self::$vendorDir = dirname(dirname($classLoaderReflection->getFileName())); |
|
| 28 | |||
| 29 | 1 | return self::$vendorDir; |
|
| 30 | } |
||
| 31 | } |
||
| 32 |