Percentage | Lines | ||
---|---|---|---|
Subscription |
|
96 % | 495 |
SubscriptionActivated |
|
96 % | 63 |
WebhookController |
|
100 % | 107 |
Invoice |
|
100 % | 43 |
Base |
|
100 % | 24 |
Fastspring |
|
100 % | 31 |
SubscriptionDeactivated |
|
100 % | 37 |
SubscriptionPeriod |
|
100 % | 27 |
CashierServiceProvider |
|
100 % | 39 |
SubscriptionStateChanged |
|
100 % | 35 |
CRAP Score | Lines | ||
---|---|---|---|
Subscription::createPeriodLocally() | 9 | 57 | |
WebhookController::handleWebhook() | 8 | 96 | |
SubscriptionActivated::handle() | 6 | 44 | |
Subscription::swap() | 5 | 41 | |
ApiClient::__construct() | 5 | 8 | |
SubscriptionBuilder::getFastspringIdOfCustomer() | 5 | 27 | |
Billable::onTrial() | 5 | 10 | |
Billable::subscribedToPlan() | 5 | 15 | |
ApiClient::apiRequest() | 4 | 33 | |
Fastspring::__callStatic() | 4 | 10 | |