| Percentage | Lines | ||
|---|---|---|---|
| Violation |
|
0 % | 52 |
| GenericValidator |
|
0 % | 18 |
| GenericStrategy |
|
0 % | 10 |
| FileUnacceptableForCollection |
|
0 % | 19 |
| ViolationsBag |
|
0 % | 15 |
| ImageValidator |
|
0 % | 196 |
| UnexpectedTypeException |
|
0 % | 15 |
| HasMediaPropertiesTrait |
|
0 % | 28 |
| MediaLibraryServiceProvider |
|
0 % | 21 |
| MediaModels |
|
0 % | 51 |
| CRAP Score | Lines | ||
|---|---|---|---|
| ImageValidator::doValidation() | 506 | 114 | |
| ImageValidator::contraintNeedsValidation() | 182 | 15 | |
| ImageValidator::validateOrientation() | 56 | 23 | |
| FileValidator::validateOrientation() | 56 | 23 | |
| HasDefaultMediaTrait::generateDefaultMedia() | 30 | 15 | |
| FileValidator::validateMimeType() | 21 | 18 | |
| ImageValidator::validateCorruptedFile() | 20 | 21 | |
| Database::tryDatabase() | 20 | 17 | |
| MediaRecords::for() | 12 | 17 | |
| MediaOperationsTraits::delete() | 12 | 9 | |