Code Duplication    Length = 3-3 lines in 2 locations

lib/Handler/ImageHandler.php 2 locations

@@ 36-38 (lines=3) @@
33
            if($handlers[$ext]) {
34
                echo get_class()." обрабатывает файл: $file\n";
35
                switch ($ext) {
36
                    case 'png':
37
                        exec($handlers[$ext] . ' ' . $this->args[$ext]  . ' ' . escapeshellarg($file));
38
                        break;
39
                    case 'jpg':
40
                    case 'jpeg':
41
                        exec($handlers[$ext]  . ' ' . $this->args[$ext]  . ' ' . escapeshellarg($file) . ' ' . escapeshellarg($file));
@@ 40-42 (lines=3) @@
37
                        exec($handlers[$ext] . ' ' . $this->args[$ext]  . ' ' . escapeshellarg($file));
38
                        break;
39
                    case 'jpg':
40
                    case 'jpeg':
41
                        exec($handlers[$ext]  . ' ' . $this->args[$ext]  . ' ' . escapeshellarg($file) . ' ' . escapeshellarg($file));
42
                        break;
43
                }
44
            } else {
45
                echo "Не найден бинарный обработчик для файла: $file\n";