From 75afd02d544f7468c9ce4d0302f323fd89a902c8 Mon Sep 17 00:00:00 2001 From: Phan An Date: Mon, 26 Sep 2016 15:33:53 +0800 Subject: [PATCH] Applied fixes from StyleCI (#464) --- app/Exceptions/Handler.php | 2 +- app/Http/Kernel.php | 2 +- app/Providers/BroadcastServiceProvider.php | 2 +- app/Providers/EventServiceProvider.php | 1 - app/Providers/RouteServiceProvider.php | 3 +++ 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index d77cfecf..86389886 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -3,8 +3,8 @@ namespace App\Exceptions; use Exception; -use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\Access\AuthorizationException; +use Illuminate\Auth\AuthenticationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Foundation\Validation\ValidationException; diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 2dd6bce6..97923cb9 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -48,6 +48,6 @@ class Kernel extends HttpKernel 'os.auth' => ObjectStorageAuthenticate::class, 'bindings' => SubstituteBindings::class, 'can' => Authorize::class, - 'throttle' => ThrottleRequests::class + 'throttle' => ThrottleRequests::class, ]; } diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php index 1dcf8d28..dc3007b5 100644 --- a/app/Providers/BroadcastServiceProvider.php +++ b/app/Providers/BroadcastServiceProvider.php @@ -2,8 +2,8 @@ namespace App\Providers; -use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Broadcast; +use Illuminate\Support\ServiceProvider; class BroadcastServiceProvider extends ServiceProvider { diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index abf8c44a..eac1a9ac 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -5,7 +5,6 @@ namespace App\Providers; use App\Models\Album; use App\Models\File; use App\Models\Song; -use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; class EventServiceProvider extends ServiceProvider diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index ad53f15c..dab0c099 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -25,6 +25,7 @@ class RouteServiceProvider extends ServiceProvider { parent::boot(); } + /** * Define the routes for the application. * @@ -36,6 +37,7 @@ class RouteServiceProvider extends ServiceProvider $this->mapWebRoutes(); // } + /** * Define the "web" routes for the application. * @@ -52,6 +54,7 @@ class RouteServiceProvider extends ServiceProvider require base_path('routes/web.php'); }); } + /** * Define the "api" routes for the application. *