Completed
Push — master ( 9f8e0d...f3e3f2 )
by Igor
05:16
created
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/Exceptions/Handler.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@
 block discarded – undo
44 44
      * @param  \Exception  $exception
45 45
      * @return \Illuminate\Http\Response
46 46
      */
47
-     public function render($request, Exception $e)
48
-     {
49
-     	if ($e instanceof Tymon\JWTAuth\Exceptions\TokenExpiredException) {
50
-     		return response()->json(['token_expired'], $e->getStatusCode());
51
-     	} else if ($e instanceof Tymon\JWTAuth\Exceptions\TokenInvalidException) {
52
-     		return response()->json(['token_invalid'], $e->getStatusCode());
53
-     	}
47
+        public function render($request, Exception $e)
48
+        {
49
+            if ($e instanceof Tymon\JWTAuth\Exceptions\TokenExpiredException) {
50
+                return response()->json(['token_expired'], $e->getStatusCode());
51
+            } else if ($e instanceof Tymon\JWTAuth\Exceptions\TokenInvalidException) {
52
+                return response()->json(['token_invalid'], $e->getStatusCode());
53
+            }
54 54
 
55
-     	return parent::render($request, $e);
56
-     }
55
+            return parent::render($request, $e);
56
+        }
57 57
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
      public function render($request, Exception $e)
48 48
      {
49 49
      	if ($e instanceof Tymon\JWTAuth\Exceptions\TokenExpiredException) {
50
-     		return response()->json(['token_expired'], $e->getStatusCode());
50
+     		return response()->json([ 'token_expired' ], $e->getStatusCode());
51 51
      	} else if ($e instanceof Tymon\JWTAuth\Exceptions\TokenInvalidException) {
52
-     		return response()->json(['token_invalid'], $e->getStatusCode());
52
+     		return response()->json([ 'token_invalid' ], $e->getStatusCode());
53 53
      	}
54 54
 
55 55
      	return parent::render($request, $e);
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
@@ -64,9 +64,9 @@
 block discarded – undo
64 64
     protected function create(array $data)
65 65
     {
66 66
         return User::create([
67
-            'name' => $data['name'],
68
-            'email' => $data['email'],
69
-            'password' => Hash::make($data['password']),
67
+            'name' => $data[ 'name' ],
68
+            'email' => $data[ 'email' ],
69
+            'password' => Hash::make($data[ 'password' ]),
70 70
         ]);
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
config/session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     |
110 110
     */
111 111
 
112
-    'lottery' => [2, 100],
112
+    'lottery' => [ 2, 100 ],
113 113
 
114 114
     /*
115 115
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
config/logging.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     'channels' => [
36 36
         'stack' => [
37 37
             'driver' => 'stack',
38
-            'channels' => ['single'],
38
+            'channels' => [ 'single' ],
39 39
         ],
40 40
 
41 41
         'single' => [
Please login to merge, or discard this patch.
config/jwt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
     |
99 99
     */
100 100
 
101
-    'required_claims' => ['iss', 'iat', 'exp', 'nbf', 'sub', 'jti'],
101
+    'required_claims' => [ 'iss', 'iat', 'exp', 'nbf', 'sub', 'jti' ],
102 102
 
103 103
     /*
104 104
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 $uri = urldecode(
11
-    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
11
+    parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH)
12 12
 );
13 13
 
14 14
 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
 */
15 15
 
16 16
 // 'permissions'
17
-Route::middleware(['api'])->group(function () {
17
+Route::middleware([ 'api' ])->group(function() {
18 18
     Route::group([
19 19
             'prefix' => '/v1/backoffice/',
20
-        ], function () {
20
+        ], function() {
21 21
         Route::post('login', 'Auth\AuthController@authenticate');
22 22
 
23
-        Route::middleware(['jwt.auth'])->group(function () {
23
+        Route::middleware([ 'jwt.auth' ])->group(function() {
24 24
             Route::apiResource('employee', 'EmployeeController');
25 25
             Route::post('employee/active/{employee}', 'EmployeeController@active');
26 26
             Route::post('employee/inactive/{employee}', 'EmployeeController@inactive');
Please login to merge, or discard this patch.
routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 |
14 14
 */
15 15
 
16
-Artisan::command('inspire', function () {
16
+Artisan::command('inspire', function() {
17 17
     $this->comment(Inspiring::quote());
18 18
 })->describe('Display an inspiring quote');
Please login to merge, or discard this patch.