| Total Complexity | 8 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ShoppingCartTest_TestShoppingCartHooksExtension extends Extension implements TestOnly |
||
| 9 | { |
||
| 10 | public static $stack = []; |
||
| 11 | |||
| 12 | public static function reset() |
||
| 15 | } |
||
| 16 | |||
| 17 | public function onStartOrder() |
||
| 18 | { |
||
| 19 | self::$stack[] = 'onStartOrder'; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function beforeAdd($buyable, $quantity, $filter) |
||
| 23 | { |
||
| 24 | self::$stack[] = 'beforeAdd'; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function afterAdd($item, $buyable, $quantity, $filter) |
||
| 30 | } |
||
| 31 | |||
| 32 | public function beforeRemove($buyable, $quantity, $filter) |
||
| 35 | } |
||
| 36 | |||
| 37 | public function afterRemove($buyable, $quantity, $filter) |
||
| 40 | } |
||
| 41 | |||
| 42 | public function beforeSetQuantity($buyable, $quantity, $filter) |
||
| 43 | { |
||
| 44 | self::$stack[] = 'beforeSetQuantity'; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function afterSetQuantity($item, $buyable, $quantity, $filter) |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.