Completed
Push — master ( b91b8b...649417 )
by Aleksandar
21:48
created
packages/Page/src/Service/PageService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,8 +115,7 @@
 block discarded – undo
115 115
         // We don't want to force user to re-upload image on edit
116 116
         if (!$data['main_img']) {
117 117
             unset($data['main_img']);
118
-        }
119
-        else {
118
+        } else {
120 119
             $this->upload->deleteFile($page->getMainImg());
121 120
         }
122 121
 
Please login to merge, or discard this patch.
packages/Core/Service/AdminUserService.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -167,15 +167,13 @@
 block discarded – undo
167 167
         // We don't want to force user to re-upload image on edit
168 168
         if(!$data['face_img']) {
169 169
             unset($data['face_img']);
170
-        }
171
-        else{
170
+        } else{
172 171
             $this->upload->deleteFile($user->face_img);
173 172
         }
174 173
 
175 174
         if(!$data['profile_img']) {
176 175
             unset($data['profile_img']);
177
-        }
178
-        else{
176
+        } else{
179 177
             $this->upload->deleteFile($user->profile_img);
180 178
         }
181 179
 
Please login to merge, or discard this patch.
packages/Category/src/Service/CategoryService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@
 block discarded – undo
128 128
         // We don't want to force user to re-upload image on edit
129 129
         if(!$values['main_img']) {
130 130
             unset($values['main_img']);
131
-        }
132
-        else{
131
+        } else{
133 132
             $this->upload->deleteFile($oldCategory->main_img);
134 133
         }
135 134
 
Please login to merge, or discard this patch.
packages/Article/src/Service/EventService.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,15 +139,13 @@
 block discarded – undo
139 139
         // We don't want to force user to re-upload image on edit
140 140
         if (!$event['featured_img']) {
141 141
             unset($event['featured_img']);
142
-        }
143
-        else {
142
+        } else {
144 143
             $this->upload->deleteFile($oldArticle->featured_img);
145 144
         }
146 145
 
147 146
         if (!$event['main_img']) {
148 147
             unset($event['main_img']);
149
-        }
150
-        else {
148
+        } else {
151 149
             $this->upload->deleteFile($oldArticle->main_img);
152 150
         }
153 151
 
Please login to merge, or discard this patch.
packages/Article/src/Service/PostService.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,15 +146,13 @@
 block discarded – undo
146 146
         // We don't want to force user to re-upload image on edit
147 147
         if (!$post['featured_img']) {
148 148
             unset($post['featured_img']);
149
-        }
150
-        else {
149
+        } else {
151 150
             $this->upload->deleteFile($oldArticle->featured_img);
152 151
         }
153 152
 
154 153
         if (!$post['main_img']) {
155 154
             unset($post['main_img']);
156
-        }
157
-        else {
155
+        } else {
158 156
             $this->upload->deleteFile($oldArticle->main_img);
159 157
         }
160 158
 
Please login to merge, or discard this patch.
packages/Article/src/Service/VideoService.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -158,15 +158,13 @@
 block discarded – undo
158 158
         // We don't want to force user to re-upload image on edit
159 159
         if(!$videos['featured_img']) {
160 160
             unset($videos['featured_img']);
161
-        }
162
-        else {
161
+        } else {
163 162
             $this->upload->deleteFile($oldArticle->featured_img);
164 163
         }
165 164
 
166 165
         if(!$videos['main_img']) {
167 166
             unset($videos['main_img']);
168
-        }
169
-        else {
167
+        } else {
170 168
             $this->upload->deleteFile($oldArticle->main_img);
171 169
         }
172 170
 
Please login to merge, or discard this patch.