| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 3 | public static function isRef(&$left, &$right): bool |
|
| 20 | { |
||
| 21 | 3 | $temp = $left; |
|
| 22 | 3 | if (is_object($left) || is_array($left)) { |
|
| 23 | 3 | $left = 'test'; |
|
| 24 | 3 | $isRef = $right === 'test'; |
|
| 25 | 3 | $left = $temp; |
|
| 26 | } else { |
||
| 27 | 3 | $left = []; |
|
| 28 | 3 | $isRef = $right === []; |
|
| 29 | 3 | $left = $temp; |
|
| 30 | } |
||
| 31 | 3 | return $isRef; |
|
| 32 | } |
||
| 34 |