Code

Rating   Name Duplication Size Complexity Changes Bugs Features
B EstimateExtension::updateCMSFields() 0 28 11 5 0 0
B PercentageDiscount::calculateAmount() 0 20 7 4 1 1
B FixedRateDiscount::calculateAmount() 0 18 7 1 0 0
B FreePostageDiscount::calculateAmount() 0 19 7 1 0 0
A DiscountCodeForm::doAddDiscount() 0 16 6 3 0 1
A Discounts\DiscountFactory::getByIdent() 0 15 5 1 0 1
A Discounts\Model\Discount::canDelete() 0 9 5 1 0 0
A Discounts\Model\Discount::canEdit() 0 9 5 1 0 0
A Discounts\Model\Discount::canCreate() 0 9 5 1 0 0
A Forms\DiscountCodeForm::__construct() 0 18 1 1 0 0
A Discounts\DiscountFactory::getValid() 0 17 1 1 0 0
A DiscountFactoryTest::testgetByIdent() 0 17 1 1 0 1
A SiteConfigExtension::updateCMSFields() 0 16 1 1 0 0
A Model\Discount::providePermissions() 0 16 1 1 0 0
A Discounts\Model\Discount::getCMSFields() 0 12 2 4 0 1