Percentage | Lines | ||
---|---|---|---|
PngStrategy |
|
100 % | 22 |
JpegStrategy |
|
100 % | 24 |
Image |
|
100 % | 203 |
WebPStrategy |
|
100 % | 22 |
TransparentStrategy |
|
100 % | 15 |
GifStrategy |
|
100 % | 51 |
CRAP Score | Lines | ||
---|---|---|---|
Image::resizeAndCrop() | 3 | 16 | |
Image::output() | 3 | 15 | |
Image::getOffsetX() | 3 | 10 | |
Image::getOffsetY() | 3 | 10 | |
Image::checkFileExists() | 2 | 4 | |
GifStrategy::handleTransparency() | 2 | 8 | |
Image::__construct() | 2 | 5 | |
Image::save() | 2 | 5 | |
Image::setPermissions() | 2 | 4 | |
Image::crop() | 2 | 15 | |