Completed
Branch master (dab8e9)
by Nauris
05:22
created
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class HomeController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
app/Providers/AccessServiceProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Providers;
4 4
 
5 5
 use App\Services\Access\Access;
6
-use Illuminate\Support\Facades\Blade;
7 6
 use Illuminate\Support\ServiceProvider;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function registerAccess()
46 46
     {
47
-        $this->app->bind('access', function ($app) {
47
+        $this->app->bind('access', function($app) {
48 48
             return new Access($app);
49 49
         });
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function registerFacade()
58 58
     {
59
-        $this->app->booting(function () {
59
+        $this->app->booting(function() {
60 60
             $loader = \Illuminate\Foundation\AliasLoader::getInstance();
61 61
             $loader->alias('Access', \App\Services\Access\Facades\Access::class);
62 62
         });
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-	    // Set the default string length for Laravel5.4
18
-	    // https://laravel-news.com/laravel-5-4-key-too-long-error
19
-	    Schema::defaultStringLength(191);
17
+        // Set the default string length for Laravel5.4
18
+        // https://laravel-news.com/laravel-5-4-key-too-long-error
19
+        Schema::defaultStringLength(191);
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.
app/helpers.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -4,23 +4,23 @@
 block discarded – undo
4 4
  * Global helpers file with misc functions.
5 5
  */
6 6
 if (! function_exists('app_name')) {
7
-	/**
8
-	 * Helper to grab the application name.
9
-	 *
10
-	 * @return mixed
11
-	 */
12
-	function app_name()
13
-	{
14
-		return config('app.name');
15
-	}
7
+    /**
8
+     * Helper to grab the application name.
9
+     *
10
+     * @return mixed
11
+     */
12
+    function app_name()
13
+    {
14
+        return config('app.name');
15
+    }
16 16
 }
17 17
 
18 18
 if (! function_exists('access')) {
19
-	/**
20
-	 * Access (lol) the Access:: facade as a simple function.
21
-	 */
22
-	function access()
23
-	{
24
-		return app('access');
25
-	}
19
+    /**
20
+     * Access (lol) the Access:: facade as a simple function.
21
+     */
22
+    function access()
23
+    {
24
+        return app('access');
25
+    }
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Global helpers file with misc functions.
5 5
  */
6
-if (! function_exists('app_name')) {
6
+if (!function_exists('app_name')) {
7 7
 	/**
8 8
 	 * Helper to grab the application name.
9 9
 	 *
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	}
16 16
 }
17 17
 
18
-if (! function_exists('access')) {
18
+if (!function_exists('access')) {
19 19
 	/**
20 20
 	 * Access (lol) the Access:: facade as a simple function.
21 21
 	 */
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
     protected function create(array $data)
64 64
     {
65 65
         return User::create([
66
-            'name' => $data['name'],
67
-            'email' => $data['email'],
68
-            'password' => bcrypt($data['password']),
66
+            'name' => $data[ 'name' ],
67
+            'email' => $data[ 'email' ],
68
+            'password' => bcrypt($data[ 'password' ]),
69 69
         ]);
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function unauthenticated($request, AuthenticationException $exception)
58 58
     {
59 59
         if ($request->expectsJson()) {
60
-            return response()->json(['error' => 'Unauthenticated.'], 401);
60
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
61 61
         }
62 62
 
63 63
         return redirect()->guest(route('login'));
Please login to merge, or discard this patch.
app/Services/Access/Access.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
64 64
         return auth()->loginUsingId($id);
65 65
     }
66 66
 
67
-	/**
68
-	 * Return if the current session user is a logged in
69
-	 *
70
-	 * @return mixed
71
-	 */
72
-	public function check()
73
-	{
74
-		return auth()->check();
75
-	}
67
+    /**
68
+     * Return if the current session user is a logged in
69
+     *
70
+     * @return mixed
71
+     */
72
+    public function check()
73
+    {
74
+        return auth()->check();
75
+    }
76 76
 }
Please login to merge, or discard this patch.