| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 2 | protected function getLastStateHasChangedDate($subject, \ArrayAccess $context) |
|
|
|
|||
| 49 | { |
||
| 50 | 2 | if ($subject instanceof LastStateHasChangedDateInterface) { |
|
| 51 | 2 | return $subject->getLastStateHasChangedDate(); |
|
| 52 | } else { |
||
| 53 | throw new \InvalidArgumentException('Overwrite this method to implement a different type!'); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.