Test Failed
Pull Request — master (#33)
by Mostafa
04:22
created
src/Storage/Image.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -61,25 +61,20 @@  discard block
 block discarded – undo
61 61
 
62 62
         if ($style->mode === LaruploadMediaStyle::SCALE_HEIGHT and $style->width) {
63 63
             $this->resizeLandscape($style->width);
64
-        }
65
-        else if ($style->mode == LaruploadMediaStyle::SCALE_WIDTH and $style->height) {
64
+        } else if ($style->mode == LaruploadMediaStyle::SCALE_WIDTH and $style->height) {
66 65
             $this->resizePortrait($style->height);
67
-        }
68
-        else if ($style->mode == LaruploadMediaStyle::CROP and $style->height and $style->width) {
66
+        } else if ($style->mode == LaruploadMediaStyle::CROP and $style->height and $style->width) {
69 67
             $this->resizeCrop($style->width, $style->height);
70
-        }
71
-        else if ($style->mode == LaruploadMediaStyle::FIT and $style->height and $style->width) {
68
+        } else if ($style->mode == LaruploadMediaStyle::FIT and $style->height and $style->width) {
72 69
             $this->resizeExact($style->width, $style->height);
73
-        }
74
-        else {
70
+        } else {
75 71
             $this->resizeAuto($style->width, $style->height);
76 72
         }
77 73
 
78 74
 
79 75
         if ($this->driverIsLocal) {
80 76
             $this->save($saveTo);
81
-        }
82
-        else {
77
+        } else {
83 78
             list($path, $name) = split_larupload_path($saveTo);
84 79
 
85 80
             $tempDir = larupload_temp_dir();
@@ -110,8 +105,7 @@  discard block
 block discarded – undo
110 105
 
111 106
             if ($file instanceof UploadedFile) {
112 107
                 $path = $file->getRealPath();
113
-            }
114
-            else if (file_exists($file)) {
108
+            } else if (file_exists($file)) {
115 109
                 $path = $file;
116 110
             }
117 111
 
Please login to merge, or discard this patch.
src/Jobs/ProcessFFMpeg.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
                     isLastOne: $this->availableQueues() === 1,
56 56
                     standalone: true
57 57
                 );
58
-            }
59
-            else {
58
+            } else {
60 59
                 /** @var Model $class */
61 60
                 $class = class_exists($this->model) ? $this->model : Relation::getMorphedModel($this->model);
62 61
                 $modelNotSaved = true;
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
             }
76 75
 
77 76
             $this->updateStatus(true, false);
78
-        }
79
-        catch (FileNotFoundException | Exception $e) {
77
+        } catch (FileNotFoundException | Exception $e) {
80 78
             $this->updateStatus(false, false, $e->getMessage());
81 79
 
82 80
             throw new Exception($e->getMessage());
Please login to merge, or discard this patch.