Completed
Pull Request — master (#3)
by
unknown
08:16
created
app/Http/Controllers/Admin/ImageSelectController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
         if ($validator->fails()) {
114 114
 
115 115
             $object->imagecategories()->associate(1);
116
-        }
117
-        else{
116
+        } else{
118 117
 
119 118
             $object->imagecategories()->associate($request->input('imagecategory_id'));
120 119
 
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
@@ -86,8 +86,7 @@
 block discarded – undo
86 86
                 $object->commentstatuses()->associate(1);
87 87
             }
88 88
             
89
-        }
90
-        else{
89
+        } else{
91 90
 
92 91
             $object->commentstatuses()->associate($request->input('commentstatus_id'));
93 92
         }
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
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         if($request->has('published')){
32 32
             
33 33
             $request->merge(['published_at' => \Carbon\Carbon::now()]);
34
-        }
35
-        else{
34
+        } else{
36 35
 
37 36
             $request->merge(['published_at' => NULL]);
38 37
         }
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/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/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/Frontend/PageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
                 'email' => 'email|required|max:255',
114 114
                 'g-recaptcha-response' => 'required|recaptcha'
115 115
             ]);
116
-        }
117
-        else {
116
+        } else {
118 117
 
119 118
             $this->validate($request, [
120 119
                 'email' => 'email|required|max:255'
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ImageController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@
 block discarded – undo
110 110
             if(strlen($request->input('url') > 5)){
111 111
                 $object->addMedia($request->file('image'))->toMediaCollection('images')
112 112
                     ->usingName($request->input('url'));
113
-            }
114
-            else{
113
+            } else{
115 114
                 $object->addMedia($request->file('image'))->toMediaCollection('images');
116 115
             }
117 116
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminModuleController.php 1 patch
Braces   +12 added lines, -26 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
         }
@@ -281,8 +280,7 @@  discard block
 block discarded – undo
281 280
          */
282 281
         if(method_exists($arResults, 'getMedia')){
283 282
             $media = $arResults->getMedia();
284
-        }
285
-        else{
283
+        } else{
286 284
             $media = null;
287 285
         }
288 286
         
@@ -292,8 +290,7 @@  discard block
 block discarded – undo
292 290
          */
293 291
         if(empty($this->customView['index']) == TRUE){
294 292
             $view = $this->moduleBasicTemplatePath . '.index';
295
-        }
296
-        else{
293
+        } else{
297 294
             $view = $this->customView;
298 295
         }
299 296
 
@@ -315,8 +312,7 @@  discard block
 block discarded – undo
315 312
          */
316 313
         if(empty($this->customView['index']) == TRUE){
317 314
             $view = $this->moduleBasicTemplatePath . '.create_edit';
318
-        }
319
-        else{
315
+        } else{
320 316
             $view = $this->customView;
321 317
         }
322 318
         
@@ -365,16 +361,14 @@  discard block
 block discarded – undo
365 361
             if(in_array($name, $this->dateTimeLocalFields)){
366 362
 
367 363
                 $object->{$name} = str_replace('T', ' ', $request->input($name)). ':00';
368
-            }
369
-            else {
364
+            } else {
370 365
 
371 366
                 /**
372 367
                  * Change to null if needed
373 368
                  */
374 369
                 if(strlen($request->$name) < 1){
375 370
                     $object->{$name} = null;
376
-                }
377
-                else {
371
+                } else {
378 372
                     $object->{$name} = $request->input($name);
379 373
                 }
380 374
             }
@@ -442,8 +436,7 @@  discard block
 block discarded – undo
442 436
          */
443 437
         if(empty($this->customView['index']) == TRUE){
444 438
             $view = $this->moduleBasicTemplatePath . '.create_edit';
445
-        }
446
-        else{
439
+        } else{
447 440
             $view = $this->customView;
448 441
         }
449 442
 
@@ -520,8 +513,7 @@  discard block
 block discarded – undo
520 513
              */
521 514
             if(in_array($name, $this->binaryFields)){
522 515
 
523
-            }
524
-            else{
516
+            } else{
525 517
                 
526 518
                /**
527 519
                 * Empty exception
@@ -534,13 +526,10 @@  discard block
 block discarded – undo
534 526
                    if(in_array($name, $this->dateTimeLocalFields)){
535 527
 
536 528
                        $arResults->$name = str_replace('T', ' ', $request->input($name)). ':00';
537
-                   }
538
-                   else {
529
+                   } else {
539 530
                        $arResults->$name = $request->input($name);
540 531
                    }
541
-               }
542
-               
543
-               else{
532
+               } else{
544 533
                    
545 534
                    /**
546 535
                     * Numeric zero ?
@@ -548,9 +537,7 @@  discard block
 block discarded – undo
548 537
                    if(isset($request->$name) && is_numeric($request->input($name)) == TRUE){
549 538
                        
550 539
                       $arResults->$name = $request->input($name);
551
-                   }
552
-                   
553
-                   else{
540
+                   } else{
554 541
                     $arResults->$name = NULL;
555 542
                    }
556 543
                }
@@ -575,8 +562,7 @@  discard block
 block discarded – undo
575 562
                 
576 563
                 if (empty($request->$value) == FALSE) {
577 564
                    $arResults->$value = $request->$value;
578
-                }
579
-                else{
565
+                } else{
580 566
                     $arResults->$value = NULL;
581 567
                 }
582 568
             }
Please login to merge, or discard this patch.