| Conditions | 2 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.2559 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 14 | private static function isInternalClass(string $type): bool |
|
| 31 | { |
||
| 32 | try { |
||
| 33 | 14 | $rf = new \ReflectionClass($type); |
|
| 34 | 14 | return $rf->isInternal(); |
|
| 35 | } catch (\ReflectionException $exception) { |
||
| 36 | // we do nothing and assume that the class is not checkable |
||
| 37 | } |
||
| 38 | return false; |
||
| 39 | } |
||
| 40 | |||
| 58 | } |