Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
38 | 12 | protected function failureDescription($other) |
|
39 | { |
||
40 | 12 | if ($other instanceof EquatableMap) { |
|
41 | 3 | return 'an equatable map ' . $this->toString(); |
|
42 | } |
||
43 | |||
44 | 9 | if ($other instanceof EquatableVector) { |
|
45 | 3 | return 'an equatable vector ' . $this->toString(); |
|
46 | } |
||
47 | |||
48 | 6 | return parent::failureDescription($other); |
|
49 | } |
||
50 | |||
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.