| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 14 | 146 | public function evaluate(mixed $leftValue, mixed $rightValue): bool |
|
| 15 | { |
||
| 16 | 146 | if ($leftValue instanceof TokenCollection) { |
|
| 17 | 12 | $leftValue = $leftValue->toArray(); |
|
| 18 | } |
||
| 19 | |||
| 20 | 146 | if ($rightValue instanceof TokenCollection) { |
|
| 21 | 30 | $rightValue = $rightValue->toArray(); |
|
| 22 | } |
||
| 23 | |||
| 24 | 146 | return $leftValue === $rightValue; |
|
| 25 | } |
||
| 27 |