Rating | Name | Duplication | Size | Complexity | CRAP | Changes | Bugs | Features |
---|---|---|---|---|---|---|---|---|
A | CouponService::performBasicChecksOn() | 0 | 12 | 5 | 5 | 0 | 0 | 0 |
A | Models\Coupon::isAllowedToRedeemBy() | 0 | 5 | 5 | 5 | 1 | 0 | 0 |
A | Commands\MakeCouponCommand::handle() | 0 | 12 | 1 | 1 | 1 | 0 | 1 |
A | Concerns\CalculatesCosts::calc() | 0 | 12 | 2 | 2 | 2 | 0 | 0 |
A | Services\CouponService::applyCoupon() | 0 | 9 | 2 | 2 | 5 | 0 | 1 |
A | CouponService::performRedeemerChecksOn() | 0 | 9 | 4 | 4 | 0 | 0 | 0 |
A | Traits\HasCoupons::verifyCoupon() | 0 | 1 | 1 | 1 | 0 | 0 | 0 |
A | Couponables\Models\Coupon::isExpired() | 0 | 2 | 2 | 2 | 2 | 0 | 0 |
A | Traits\DefinesPivotRelations::coupon() | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
A | DefinesColumns::getLimitColumn() | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
A | HasCoupons::initializeHasCoupons() | 0 | 2 | 2 | 2 | 3 | 0 | 0 |
A | Couponables\Models\Coupon::for() | 0 | 7 | 1 | 1 | 0 | 0 | 0 |
A | DefinesPivotColumns::getRedeemedIdColumn() | 0 | 1 | 1 | 1 | 1 | 0 | 1 |
A | Events\CouponRedeemed::__construct() | 0 | 0 | 1 | 1 | 1 | 0 | 0 |
A | Events\CouponDisabled::__construct() | 0 | 0 | 1 | 1 | 1 | 0 | 0 |