| Conditions | 2 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | final public function execute(ItemInterface $item, PurchaseContext $context) |
||
| 32 | 93 | { |
|
| 33 | try { |
||
| 34 | $this->validate($item, $context); |
||
| 35 | 93 | ||
| 36 | return ProcessResult::success(null, static::class); |
||
| 37 | 86 | } catch (InvalidItemException $e) { |
|
| 38 | 42 | $this->handle($item, $context); |
|
| 39 | 42 | ||
| 40 | 39 | return ProcessResult::warn($e->getMessage(), static::class); |
|
| 41 | } |
||
| 42 | } |
||
| 43 | 42 | ||
| 67 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.