Code

Rating   Name Duplication Size Complexity Changes Bugs Features
B Promocodes\Traits\Rewardable::applyCode() 0 32 7 0 0 0
A Gabievi\Promocodes\Promocodes::apply() 0 26 5 0 0 0
A Gabievi\Promocodes\Promocodes::check() 0 10 6 0 0 0
A Gabievi\Promocodes\Promocodes::create() 0 32 4 0 0 0
A CreatePromocodesTable::up() 0 27 1 0 0 0
A Promocodes\Promocodes::generate() 0 26 3 0 0 0
A Promocodes\Tests\TestCase::seedUsers() 0 20 1 0 0 0
A CheckPromocodeValidationTest::it_returns_false_if_promocode_is_disposable_and_used() 0 20 1 0 0 0
A Promocodes\Promocodes::clearRedundant() 0 9 5 0 0 0
A CheckPromocodeValidationTest::it_returns_false_if_promocode_exceeds_quantity() 0 19 1 0 0 0
A ApplyPromocodeToUserTest::it_attaches_authenticated_user_as_applied_to_promocode() 0 18 1 0 0 0
A CreatePromocodesToDatabaseTest::it_can_set_additional_data_to_promocodes() 0 17 1 0 0 0
A ClearRedundantPromocodesTest::it_removes_expired_or_used_promocodes_and_relations() 0 17 1 0 0 0
A Gabievi\Promocodes\Promocodes::output() 0 16 3 0 0 0
A ApplyPromocodeToUserTest::is_returns_promocode_with_user_if_applied_successfuly() 16 16 1 0 0 0