Completed
Push — master ( 2b4326...a6d4bf )
by Davide
08:26 queued 04:13
created
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-    Route::group(['namespace' => 'DavideCasiraghi\LaravelCards\Http\Controllers', 'middleware' => 'web'], function () {
3
+    Route::group(['namespace' => 'DavideCasiraghi\LaravelCards\Http\Controllers', 'middleware' => 'web'], function() {
4 4
 
5 5
         /* Cards */
6 6
         Route::resource('laravel-cards', 'CardController');
Please login to merge, or discard this patch.
src/Http/Middleware/Admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         $user = \Auth::user();
19 19
 
20 20
         // If user is not logged
21
-        if (! $user) {
21
+        if (!$user) {
22 22
             return redirect('/')->with('message', 'You have not admin access');
23 23
         }
24 24
 
Please login to merge, or discard this patch.
src/LaravelCardsServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
         $this->loadRoutesFrom(__DIR__.'/../routes/web.php');
22 22
         $this->app['router']->aliasMiddleware('admin', \DavideCasiraghi\LaravelCards\Http\Middleware\Admin::class);
23 23
 
24
-        if (! class_exists('CreateCardsTable')) {
24
+        if (!class_exists('CreateCardsTable')) {
25 25
             $this->publishes([
26 26
                 __DIR__.'/../database/migrations/create_cards_table.php.stub' => database_path('migrations/'.Carbon::now()->format('Y_m_d_Hmsu').'_create_cards_table.php'),
27 27
             ], 'migrations');
28 28
         }
29
-        if (! class_exists('CreateCardTranslationsTable')) {
29
+        if (!class_exists('CreateCardTranslationsTable')) {
30 30
             $this->publishes([
31 31
                 __DIR__.'/../database/migrations/create_card_translations_table.php.stub' => database_path('migrations/'.Carbon::now()->format('Y_m_d_Hmsu').'_create_card_translations_table.php'),
32 32
             ], 'migrations');
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-cards');
71 71
 
72 72
         // Register the main class to use with the facade
73
-        $this->app->singleton('laravel-cards', function () {
73
+        $this->app->singleton('laravel-cards', function() {
74 74
             return new LaravelCards;
75 75
         });
76 76
     }
Please login to merge, or discard this patch.
src/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     // https://stackoverflow.com/questions/51611015/authuser-return-null-5-6
17 17
     public function __construct()
18 18
     {
19
-        $this->middleware(function ($request, $next) {
19
+        $this->middleware(function($request, $next) {
20 20
             $this->user = Auth::user();
21 21
 
22 22
             return $next($request);
Please login to merge, or discard this patch.