| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | protected function invokeDecorators($decorator, array $properties, EntityInterface $entity) |
||
| 37 | { |
||
| 38 | $decorator = new $decorator; |
||
| 39 | |||
| 40 | if (! $decorator instanceof DecoratorInterface) { |
||
| 41 | throw new InvalidArgumentException( |
||
| 42 | sprintf('(%s) must be an instance of (Percy\Decorator\DecoratorInterface)', get_class($decorator)) |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 46 | $decorator($entity, $properties); |
||
| 47 | } |
||
| 48 | |||
| 61 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.