Passed
Push — master ( ac3204...58d207 )
by Paul
11:34 queued 06:49
created
src/Guards/TokenGuard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         if ($token = $this->request->bearerToken()) {
20 20
             $accessToken = AccessToken::findToken($token);
21 21
 
22
-            if (! $accessToken) {
22
+            if (!$accessToken) {
23 23
                 return;
24 24
             }
25 25
 
Please login to merge, or discard this patch.
src/Policies/UserPolicy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function updateOwn(User $user, User $userModel): bool
54 54
     {
55
-        if (! $user->hasPermissionTo('user:update')) {
55
+        if (!$user->hasPermissionTo('user:update')) {
56 56
             return false;
57 57
         }
58 58
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function changeEmail(User $user): bool
67 67
     {
68
-        if (! $user->hasPermissionTo('user:change_email')) {
68
+        if (!$user->hasPermissionTo('user:change_email')) {
69 69
             return false;
70 70
         }
71 71
 
Please login to merge, or discard this patch.
src/TinreServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
 
144 144
     protected function registerTokenGuard()
145 145
     {
146
-        Auth::resolved(function ($auth) {
147
-            $auth->extend('token', function ($app, $name, array $config) {
148
-                return tap($this->makeTokenGuard(), function ($guard) {
146
+        Auth::resolved(function($auth) {
147
+            $auth->extend('token', function($app, $name, array $config) {
148
+                return tap($this->makeTokenGuard(), function($guard) {
149 149
                     $this->app->refresh('request', $guard, 'setRequest');
150 150
                 });
151 151
             });
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
     protected function makeTokenGuard()
156 156
     {
157
-        return new RequestGuard(function ($request) {
157
+        return new RequestGuard(function($request) {
158 158
             return (new TokenGuard(
159 159
                 $request
160 160
             ))->user();
Please login to merge, or discard this patch.
src/Traits/HasPermissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         $tokenPermissions = $accessToken->permissions;
36 36
 
37
-        if (! is_array($tokenPermissions)) {
37
+        if (!is_array($tokenPermissions)) {
38 38
             return [];
39 39
         }
40 40
 
Please login to merge, or discard this patch.
src/Http/Controllers/Web/StatsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             abort(401);
31 31
         }
32 32
 
33
-        if (! $user->hasPermissionTo('stats:view')) {
33
+        if (!$user->hasPermissionTo('stats:view')) {
34 34
             abort(401);
35 35
         }
36 36
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             abort(401);
54 54
         }
55 55
 
56
-        if (! $user->hasPermissionTo('stats:view')) {
56
+        if (!$user->hasPermissionTo('stats:view')) {
57 57
             abort(401);
58 58
         }
59 59
 
Please login to merge, or discard this patch.
routes/api/v1.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Support\Facades\Route;
4 4
 
5
-Route::middleware(['auth:api'])->group(function () {
5
+Route::middleware(['auth:api'])->group(function() {
6 6
 });
Please login to merge, or discard this patch.