Completed
Push — master ( 5dea4b...85942f )
by Jan
04:54
created
app/Http/Controllers/Media/ImageController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 
17 17
 use App\Helpers;
18 18
 use Illuminate\Http\Request;
19
-
20 19
 use App\Http\Controllers\Controller;
21 20
 use App\Image;
22 21
 use Illuminate\Support\Facades\Response;
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminModuleController.php 1 patch
Braces   +7 added lines, -16 removed lines patch added patch discarded remove patch
@@ -215,8 +215,7 @@  discard block
 block discarded – undo
215 215
          */
216 216
         if(empty($this->customView['index']) == TRUE){
217 217
             $view = $this->moduleBasicTemplatePath . '.index';
218
-        }
219
-        else{
218
+        } else{
220 219
             $view = $this->customView;
221 220
         } 
222 221
         
@@ -238,8 +237,7 @@  discard block
 block discarded – undo
238 237
          */
239 238
         if(empty($this->customView['index']) == TRUE){
240 239
             $view = $this->moduleBasicTemplatePath . '.create_edit';
241
-        }
242
-        else{
240
+        } else{
243 241
             $view = $this->customView;
244 242
         }
245 243
         
@@ -345,8 +343,7 @@  discard block
 block discarded – undo
345 343
          */
346 344
         if(empty($this->customView['index']) == TRUE){
347 345
             $view = $this->moduleBasicTemplatePath . '.create_edit';
348
-        }
349
-        else{
346
+        } else{
350 347
             $view = $this->customView;
351 348
         }
352 349
     
@@ -427,17 +424,14 @@  discard block
 block discarded – undo
427 424
                  * if($request->has($name)){
428 425
                     $this->arValidationArray[$name] = $value . ',' . $id;
429 426
                 }**/
430
-            }
431
-            else{
427
+            } else{
432 428
                 
433 429
                /**
434 430
                 * Empty exception
435 431
                 */
436 432
                if (empty($request->input($name)) == FALSE) {
437 433
                    $arResults->$name = $request->input($name);
438
-               }
439
-               
440
-               else{
434
+               } else{
441 435
                    
442 436
                    /**
443 437
                     * Numeric zero ?
@@ -445,9 +439,7 @@  discard block
 block discarded – undo
445 439
                    if(@is_numeric($request->input($name)) == TRUE){
446 440
                        
447 441
                       $arResults->$name = $request->input($name);
448
-                   }
449
-                   
450
-                   else{
442
+                   } else{
451 443
                     $arResults->$name = NULL;
452 444
                    }
453 445
                }
@@ -471,8 +463,7 @@  discard block
 block discarded – undo
471 463
                 
472 464
                 if (empty($request->$value) == FALSE) {
473 465
                    $arResults->$value = $request->$value;
474
-                }
475
-                else{
466
+                } else{
476 467
                     $arResults->$value = NULL;
477 468
                 }
478 469
             }
Please login to merge, or discard this patch.
app/AdminModelTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){
74 74
             return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) );
75
-        }
76
-        else{
75
+        } else{
77 76
             return $query;
78 77
         }
79 78
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ImageSelectController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){
74 74
             return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) );
75
-        }
76
-        else{
75
+        } else{
77 76
             return $query;
78 77
         }
79 78
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/CommentController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){
74 74
             return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) );
75
-        }
76
-        else{
75
+        } else{
77 76
             return $query;
78 77
         }
79 78
     }
Please login to merge, or discard this patch.
app/Http/Middleware/AddPublishedAt.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){
74 74
             return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) );
75
-        }
76
-        else{
75
+        } else{
77 76
             return $query;
78 77
         }
79 78
     }
Please login to merge, or discard this patch.