| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | 15 | public function redeemCoupon(string $code): CouponContract |
|
| 38 | { |
||
| 39 | 15 | $service = call(CouponServiceContract::class); |
|
| 40 | 15 | $proxy = call($service->verifyCoupon($code, $this)); |
|
| 41 | |||
| 42 | 12 | $coupon = $proxy->getInternal(Call::INSTANCE); |
|
| 43 | |||
| 44 | 12 | return $service->applyCoupon($coupon, $this); |
|
| 45 | } |
||
| 76 |