Percentage | Lines | ||
---|---|---|---|
Product |
|
60 % | 83 |
ProductRepository |
|
67 % | 66 |
CachedProductRepository |
|
70 % | 66 |
Catalog |
|
71 % | 39 |
CatalogException |
|
100 % | 13 |
ContentException |
|
100 % | 13 |
ProductException |
|
100 % | 13 |
SKUException |
|
100 % | 13 |
SlugException |
|
100 % | 13 |
SKU |
|
100 % | 129 |
CRAP Score | Lines | ||
---|---|---|---|
SKU::validateSKU() | 9 | 53 | |
ContentMapper::getContent() | 7 | 38 | |
Slug::validateSlug() | 6 | 31 | |
Content::__construct() | 5 | 31 | |
CatalogMapper::getCatalog() | 5 | 45 | |
ProductMapper::getProduct() | 4 | 29 | |
ProductRepository::getProducts() | 3 | 19 | |
CachedProductRepository::getById() | 2 | 4 | |
CachedProductRepository::add() | 2 | 4 | |
CachedProductRepository::remove() | 2 | 4 | |