| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 4 | public function __invoke(string $className) : bool |
|
| 42 | { |
||
| 43 | 4 | if (class_exists($className, false) || ! $this->classNameInflector->isProxyClassName($className)) { |
|
| 44 | 2 | return false; |
|
| 45 | } |
||
| 46 | |||
| 47 | 2 | $file = $this->fileLocator->getProxyFileName($className); |
|
| 48 | |||
| 49 | 2 | if (! file_exists($file)) { |
|
| 50 | 1 | return false; |
|
| 51 | } |
||
| 52 | |||
| 53 | /* @noinspection PhpIncludeInspection */ |
||
| 54 | /* @noinspection UsingInclusionOnceReturnValueInspection */ |
||
| 55 | 1 | return (bool) require_once $file; |
|
| 56 | } |
||
| 57 | } |
||
| 58 |