@@ -113,8 +113,7 @@ |
||
| 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 | |
@@ -86,8 +86,7 @@ |
||
| 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 | } |
@@ -31,8 +31,7 @@ |
||
| 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 | } |
@@ -72,8 +72,7 @@ |
||
| 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 | } |
@@ -126,8 +126,7 @@ |
||
| 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 | } |
@@ -20,8 +20,6 @@ |
||
| 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 | |
@@ -202,8 +202,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -407,8 +401,7 @@ discard block |
||
| 407 | 401 | */ |
| 408 | 402 | if(!empty($request->custom_route)){ |
| 409 | 403 | return redirect($request->custom_route); |
| 410 | - } |
|
| 411 | - else { |
|
| 404 | + } else { |
|
| 412 | 405 | return redirect(route($this->moduleBasicRoute . '.index')); |
| 413 | 406 | } |
| 414 | 407 | } |
@@ -447,8 +440,7 @@ discard block |
||
| 447 | 440 | */ |
| 448 | 441 | if(empty($this->customView['index']) == TRUE){ |
| 449 | 442 | $view = $this->moduleBasicTemplatePath . '.create_edit'; |
| 450 | - } |
|
| 451 | - else{ |
|
| 443 | + } else{ |
|
| 452 | 444 | $view = $this->customView; |
| 453 | 445 | } |
| 454 | 446 | |
@@ -525,8 +517,7 @@ discard block |
||
| 525 | 517 | */ |
| 526 | 518 | if(in_array($name, $this->binaryFields)){ |
| 527 | 519 | |
| 528 | - } |
|
| 529 | - else{ |
|
| 520 | + } else{ |
|
| 530 | 521 | |
| 531 | 522 | /** |
| 532 | 523 | * Empty exception |
@@ -539,13 +530,10 @@ discard block |
||
| 539 | 530 | if(in_array($name, $this->dateTimeLocalFields)){ |
| 540 | 531 | |
| 541 | 532 | $arResults->$name = str_replace('T', ' ', $request->input($name)). ':00'; |
| 542 | - } |
|
| 543 | - else { |
|
| 533 | + } else { |
|
| 544 | 534 | $arResults->$name = $request->input($name); |
| 545 | 535 | } |
| 546 | - } |
|
| 547 | - |
|
| 548 | - else{ |
|
| 536 | + } else{ |
|
| 549 | 537 | |
| 550 | 538 | /** |
| 551 | 539 | * Numeric zero ? |
@@ -553,9 +541,7 @@ discard block |
||
| 553 | 541 | if(isset($request->$name) && is_numeric($request->input($name)) == TRUE){ |
| 554 | 542 | |
| 555 | 543 | $arResults->$name = $request->input($name); |
| 556 | - } |
|
| 557 | - |
|
| 558 | - else{ |
|
| 544 | + } else{ |
|
| 559 | 545 | $arResults->$name = NULL; |
| 560 | 546 | } |
| 561 | 547 | } |
@@ -580,8 +566,7 @@ discard block |
||
| 580 | 566 | |
| 581 | 567 | if (empty($request->$value) == FALSE) { |
| 582 | 568 | $arResults->$value = $request->$value; |
| 583 | - } |
|
| 584 | - else{ |
|
| 569 | + } else{ |
|
| 585 | 570 | $arResults->$value = NULL; |
| 586 | 571 | } |
| 587 | 572 | } |
@@ -602,8 +587,7 @@ discard block |
||
| 602 | 587 | */ |
| 603 | 588 | if(!empty($request->custom_route)){ |
| 604 | 589 | return redirect($request->custom_route); |
| 605 | - } |
|
| 606 | - else { |
|
| 590 | + } else { |
|
| 607 | 591 | return redirect(route($this->moduleBasicRoute . '.index')); |
| 608 | 592 | } |
| 609 | 593 | } |
@@ -15,7 +15,6 @@ |
||
| 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; |
@@ -113,8 +113,7 @@ |
||
| 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' |
@@ -2,7 +2,6 @@ |
||
| 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 |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Providers; |
| 4 | 4 | |
| 5 | -use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
|
| 6 | 5 | use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
| 7 | 6 | |
| 8 | 7 | class EventServiceProvider extends ServiceProvider |