Test Failed
Pull Request — master (#35)
by
unknown
03:58
created
src/DTOs/Style/VideoStyle.php 1 patch
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -50,20 +50,15 @@  discard block
 block discarded – undo
50 50
     {
51 51
         if ($this->format instanceof WebM) {
52 52
             return 'webm';
53
-        }
54
-        else if ($this->format instanceof Ogg) {
53
+        } else if ($this->format instanceof Ogg) {
55 54
             return 'ogg';
56
-        }
57
-        else if ($this->format instanceof Mp3) {
55
+        } else if ($this->format instanceof Mp3) {
58 56
             return 'mp3';
59
-        }
60
-        else if ($this->format instanceof Aac) {
57
+        } else if ($this->format instanceof Aac) {
61 58
             return 'aac';
62
-        }
63
-        else if ($this->format instanceof Wav) {
59
+        } else if ($this->format instanceof Wav) {
64 60
             return 'wav';
65
-        }
66
-        else if ($this->format instanceof Flac) {
61
+        } else if ($this->format instanceof Flac) {
67 62
             return 'flac';
68 63
         }
69 64
 
@@ -82,22 +77,19 @@  discard block
 block discarded – undo
82 77
                     'Width is required when you are in SCALE_HEIGHT mode'
83 78
                 );
84 79
             }
85
-        }
86
-        else if ($this->mode === LaruploadMediaStyle::SCALE_WIDTH) {
80
+        } else if ($this->mode === LaruploadMediaStyle::SCALE_WIDTH) {
87 81
             if ($this->height === null or $this->height === 0) {
88 82
                 throw new Exception(
89 83
                     'Height is required when you are in SCALE_WIDTH mode'
90 84
                 );
91 85
             }
92
-        }
93
-        else if (in_array($this->mode, [LaruploadMediaStyle::CROP, LaruploadMediaStyle::FIT])) {
86
+        } else if (in_array($this->mode, [LaruploadMediaStyle::CROP, LaruploadMediaStyle::FIT])) {
94 87
             if (!$this->width or !$this->height) {
95 88
                 throw new Exception(
96 89
                     'Width and Height are required when you are in CROP/FIT mode'
97 90
                 );
98 91
             }
99
-        }
100
-        else if ($this->mode === LaruploadMediaStyle::AUTO) {
92
+        } else if ($this->mode === LaruploadMediaStyle::AUTO) {
101 93
             if (!$this->width and !$this->height) {
102 94
                 throw new Exception(
103 95
                     'Width and height are required when you are in auto mode'
Please login to merge, or discard this patch.