| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function findFile(string $class): ?string |
||
| 26 | { |
||
| 27 | if (null === $this->isFinder) { |
||
| 28 | $refl = new \ReflectionProperty(BaseDebugClassLoader::class, 'isFinder'); |
||
| 29 | $refl->setAccessible(true); |
||
| 30 | |||
| 31 | $this->isFinder = $refl->getValue($this); |
||
| 32 | } |
||
| 33 | |||
| 34 | return $this->isFinder ? $this->getClassLoader()[0]->findFile($class) ?: null : null; |
||
| 35 | } |
||
| 37 |