| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | 5 | public function __invoke($object) |
|
| 42 | { |
||
| 43 | 5 | $value = $this->invoke($object); |
|
| 44 | |||
| 45 | 5 | if ($this->isOneOfTheValues) { |
|
| 46 | 1 | return in_array($value, $this->value, $this->isStrict); |
|
| 47 | } |
||
| 48 | |||
| 49 | 4 | if ($this->isStrict) { |
|
| 50 | 3 | return $value === $this->value; |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | return $value == $this->value; |
|
| 54 | } |
||
| 55 | |||
| 63 |