| Conditions | 7 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 7 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 112 | protected function negotiateReify(mixed $value): bool |
|
| 27 | { |
||
| 28 | 112 | if (is_string($value)) { |
|
| 29 | 91 | if (!class_exists($value)) { |
|
| 30 | 91 | return false; |
|
| 31 | } |
||
| 32 | 112 | } elseif ($value instanceof Closure) { |
|
| 33 | 25 | return true; |
|
| 34 | } else { |
||
| 35 | 112 | if (is_scalar($value) || is_array($value) || is_object($value)) { |
|
| 36 | 112 | return false; |
|
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | 90 | return true; |
|
| 41 | } |
||
| 98 |