| Conditions | 7 |
| Paths | 14 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 7 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function check($value): bool |
||
| 25 | { |
||
| 26 | 2 | $this->requireParameters($this->fillableParams); |
|
| 27 | |||
| 28 | if (is_int($value) || is_float($value)) { |
||
| 29 | 2 | $value = (string) $value; |
|
| 30 | } |
||
| 31 | |||
| 32 | if (! is_string($value)) { |
||
| 33 | 2 | return false; |
|
| 34 | } |
||
| 35 | |||
| 36 | if (! is_numeric($compare = $this->parameter('value'))) { |
||
| 37 | 2 | $compare = $this->getAttribute()->getValue($compare); |
|
| 38 | } |
||
| 39 | |||
| 40 | 2 | return is_numeric($value) && is_numeric($compare) && $value > $compare; |
|
| 41 | } |
||
| 43 |