| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | trait AssertImageFormatTrait |
||
| 27 | { |
||
| 28 | use ValueToStringTrait; |
||
| 29 | use AssertOneOfTrait; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Check value is valid image format extension |
||
| 33 | * |
||
| 34 | * @param string $value |
||
| 35 | * @param string $message |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | * @throws InvalidArgumentException |
||
| 39 | */ |
||
| 40 | 12 | public static function assertImageFormat(string $value, string $message = ''): void |
|
| 49 |