| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | 2 | public function checkCondition($subject, \ArrayAccess $context) |
|
| 61 | { |
||
| 62 | // clone date to not change original object |
||
| 63 | 2 | $date = clone $this->getLastStateHasChangedDate($subject, $context); |
|
| 64 | 2 | $date->add($this->getDateInterval()); |
|
| 65 | |||
| 66 | 2 | return ($date <= new \DateTime()); |
|
| 67 | } |
||
| 68 | } |
||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.