Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
48 | protected function getLastStateHasChangedDate($subject, \ArrayAccess $context) |
||
|
|||
49 | { |
||
50 | if ($subject instanceof LastStateHasChangedDateInterface) { |
||
51 | 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.