Completed
Push — master ( 20f323...6ae55b )
by Jan
05:32
created
app/Http/Controllers/Admin/AdminModuleController.php 2 patches
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,8 +151,6 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * Save transaction
153 153
      *
154
-     * @param int $typeId
155
-     * @param string $text
156 154
      * @param $userId
157 155
      * @param $amount
158 156
      */
@@ -242,7 +240,7 @@  discard block
 block discarded – undo
242 240
      * Change ar result if necessary
243 241
      *
244 242
      * @param $arResult
245
-     * @return mixed
243
+     * @return string|null
246 244
      */
247 245
     public function changeEditResultField($arResult){
248 246
         return $arResult;
@@ -319,7 +317,7 @@  discard block
 block discarded – undo
319 317
      * Store a newly created resource in storage.
320 318
      *
321 319
      * @param  Request  $request
322
-     * @return Response
320
+     * @return \Illuminate\Http\RedirectResponse
323 321
      */
324 322
     public function store(Request $request) {
325 323
 
@@ -459,7 +457,7 @@  discard block
 block discarded – undo
459 457
      *
460 458
      * @param  Request  $request
461 459
      * @param  int  $id
462
-     * @return Response
460
+     * @return \Illuminate\Http\RedirectResponse
463 461
      */
464 462
     public function update(Request $request, $id) {
465 463
 
@@ -591,7 +589,7 @@  discard block
 block discarded – undo
591 589
      * Remove the specified resource from storage.
592 590
      *
593 591
      * @param  int  $id
594
-     * @return Response
592
+     * @return \Illuminate\Http\RedirectResponse
595 593
      */
596 594
 
597 595
     public function destroy($id) {
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/FrontendController.php 2 patches
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,6 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     /**
69 69
      * Reset all session fields
70
+     * @param \Illuminate\Http\Request $request
70 71
      */
71 72
     protected function _resetSessionFields($request){
72 73
 
@@ -130,6 +131,9 @@  discard block
 block discarded – undo
130 131
         return Page::findOrFail($id);
131 132
     }
132 133
 
134
+    /**
135
+     * @param integer $id
136
+     */
133 137
     protected function _getSettings($id){
134 138
 
135 139
         $settings = Settings::find($id);
@@ -145,8 +149,6 @@  discard block
 block discarded – undo
145 149
     /**
146 150
      * Save transaction
147 151
      *
148
-     * @param int $typeId
149
-     * @param string $text
150 152
      * @param $userId
151 153
      * @param $amount
152 154
      */
Please login to merge, or discard this 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/Providers/AuthServiceProvider.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
     /**
20 20
      * Register any application authentication / authorization services.
21 21
      *
22
-     * @param  \Illuminate\Contracts\Auth\Access\Gate  $gate
23 22
      * @return void
24 23
      */
25 24
     public function boot()
Please login to merge, or discard this patch.
app/Providers/EventServiceProvider.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
     /**
22 22
      * Register any other events for your application.
23 23
      *
24
-     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
25 24
      * @return void
26 25
      */
27 26
     public function boot()
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
     /**
20 20
      * Define your route model bindings, pattern filters, etc.
21 21
      *
22
-     * @param  \Illuminate\Routing\Router  $router
23 22
      * @return void
24 23
      */
25 24
     public function boot()
Please login to merge, or discard this patch.