Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | 27 | protected function matches($other) |
|
|
|||
23 | { |
||
24 | 27 | if ($other instanceof EquatableMap || $other instanceof EquatableVector) { |
|
25 | 15 | return $other->contains($this->value); |
|
26 | } |
||
27 | |||
28 | 12 | if ($this->value instanceof Equatable) { |
|
29 | 6 | return $this->collectionContainsAnEqualEquatableObject($other); |
|
30 | } |
||
31 | |||
32 | 6 | return parent::matches($other); |
|
33 | } |
||
34 | |||
67 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.