Completed
Push — master ( 6ae55b...a91b57 )
by Jan
06:38
created
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.
app/Http/Controllers/Admin/DashboardController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
126 126
         {
127 127
             return round((($thisValue / ($lastValue / 100)) - 100), $round);
128 128
 
129
-        }
130
-        else {
129
+        } else {
131 130
 
132 131
             return 0;
133 132
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Frontend/PageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
126 126
         {
127 127
             return round((($thisValue / ($lastValue / 100)) - 100), $round);
128 128
 
129
-        }
130
-        else {
129
+        } else {
131 130
 
132 131
             return 0;
133 132
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Frontend/FrontendController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         if (view()->exists($strView)) {
48 48
             return view($strView, $this->_arViewData);
49
-        }
50
-        else{
49
+        } else{
51 50
             return abort(404);
52 51
         }
53 52
     }
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
 
137 136
         if(!empty($settings)){
138 137
             return $settings['value'];
139
-        }
140
-        else{
138
+        } else{
141 139
             return NULL;
142 140
         }
143 141
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminModuleController.php 1 patch
Braces   +11 added lines, -24 removed lines patch added patch discarded remove patch
@@ -202,8 +202,7 @@  discard block
 block discarded – undo
202 202
         if ($this->paginateRows == NULL) {
203 203
 
204 204
             return env('ADMIN_PAGINATE', 10);
205
-        }
206
-        else{
205
+        } else{
207 206
 
208 207
             return $this->paginateRows;
209 208
         }
@@ -280,8 +279,7 @@  discard block
 block discarded – undo
280 279
          */
281 280
         if(empty($this->customView['index']) == TRUE){
282 281
             $view = $this->moduleBasicTemplatePath . '.index';
283
-        }
284
-        else{
282
+        } else{
285 283
             $view = $this->customView;
286 284
         }
287 285
 
@@ -304,8 +302,7 @@  discard block
 block discarded – undo
304 302
          */
305 303
         if(empty($this->customView['index']) == TRUE){
306 304
             $view = $this->moduleBasicTemplatePath . '.create_edit';
307
-        }
308
-        else{
305
+        } else{
309 306
             $view = $this->customView;
310 307
         }
311 308
         
@@ -354,16 +351,14 @@  discard block
 block discarded – undo
354 351
             if(in_array($name, $this->dateTimeLocalFields)){
355 352
 
356 353
                 $object->{$name} = str_replace('T', ' ', $request->input($name)). ':00';
357
-            }
358
-            else {
354
+            } else {
359 355
 
360 356
                 /**
361 357
                  * Change to null if needed
362 358
                  */
363 359
                 if(strlen($request->$name) < 1){
364 360
                     $object->{$name} = null;
365
-                }
366
-                else {
361
+                } else {
367 362
                     $object->{$name} = $request->input($name);
368 363
                 }
369 364
             }
@@ -431,8 +426,7 @@  discard block
 block discarded – undo
431 426
          */
432 427
         if(empty($this->customView['index']) == TRUE){
433 428
             $view = $this->moduleBasicTemplatePath . '.create_edit';
434
-        }
435
-        else{
429
+        } else{
436 430
             $view = $this->customView;
437 431
         }
438 432
 
@@ -510,8 +504,7 @@  discard block
 block discarded – undo
510 504
              */
511 505
             if(in_array($name, $this->binaryFields)){
512 506
 
513
-            }
514
-            else{
507
+            } else{
515 508
                 
516 509
                /**
517 510
                 * Empty exception
@@ -524,13 +517,10 @@  discard block
 block discarded – undo
524 517
                    if(in_array($name, $this->dateTimeLocalFields)){
525 518
 
526 519
                        $arResults->$name = str_replace('T', ' ', $request->input($name)). ':00';
527
-                   }
528
-                   else {
520
+                   } else {
529 521
                        $arResults->$name = $request->input($name);
530 522
                    }
531
-               }
532
-               
533
-               else{
523
+               } else{
534 524
                    
535 525
                    /**
536 526
                     * Numeric zero ?
@@ -538,9 +528,7 @@  discard block
 block discarded – undo
538 528
                    if(isset($request->name) && is_numeric($request->input($name)) == TRUE){
539 529
                        
540 530
                       $arResults->$name = $request->input($name);
541
-                   }
542
-                   
543
-                   else{
531
+                   } else{
544 532
                     $arResults->$name = NULL;
545 533
                    }
546 534
                }
@@ -564,8 +552,7 @@  discard block
 block discarded – undo
564 552
                 
565 553
                 if (empty($request->$value) == FALSE) {
566 554
                    $arResults->$value = $request->$value;
567
-                }
568
-                else{
555
+                } else{
569 556
                     $arResults->$value = NULL;
570 557
                 }
571 558
             }
Please login to merge, or discard this patch.