Total Complexity | 5 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class ImageHandler extends FileHandler |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private static $field_types = [ |
||
|
|||
20 | 'Image' |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private static $defaultImageType = 'png'; |
||
27 | |||
28 | /** |
||
29 | * @param $value |
||
30 | * @param $field |
||
31 | * @param string |DataObject $class |
||
32 | * @return string |
||
33 | * |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | public function handleImageType($value, $field, $class) |
||
54 | } |
||
55 | |||
56 | protected function fixExtension($string) |
||
74 |