Completed
Push — master ( a91b57...4fcfbd )
by Jan
06:59
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/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/Admin/AdminModuleController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
 use Illuminate\Support\Facades\View;
21 21
 use App\Http\Controllers\Controller;
22 22
 use Illuminate\Database\Eloquent\Builder;
23
-use Illuminate\Support\Facades\DB;
24
-use Carbon\Carbon;
25 23
 use App\Transaction;
26 24
 use App\User;
27 25
 
Please login to merge, or discard this 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.
app/Http/Controllers/Frontend/PageController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 namespace App\Http\Controllers\Frontend;
16 16
 
17 17
 
18
-use App\Application;
19 18
 use App\Campaign;
20 19
 use App\Payment;
21 20
 use App\Transaction;
Please login to merge, or discard this 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/Providers/AuthServiceProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Providers;
4 4
 
5
-use Illuminate\Contracts\Auth\Access\Gate as GateContract;
6 5
 use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7 6
 
8 7
 class AuthServiceProvider extends ServiceProvider
Please login to merge, or discard this patch.