Passed
Push — master ( d4720a...191cf4 )
by Paul
14:06 queued 09:32
created
src/Http/Controllers/PreviewController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $url = URL::select(['long_url', 'path', 'created_at'])->where(['path' => $path, 'active' => 1])->first();
13 13
         
14
-        if (! $url) {
14
+        if (!$url) {
15 15
             return redirect('/');
16 16
         }
17 17
                 
Please login to merge, or discard this patch.
src/Services/UrlService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         if ($search) {
35
-            $query->where(function (Builder $query) use ($search) {
35
+            $query->where(function(Builder $query) use ($search) {
36 36
                 $query->where('path', 'LIKE', "%{$search}%")
37 37
                     ->orWhere('long_url', 'LIKE', "%{$search}%")
38
-                    ->orWhereHas('user', function ($query) use ($search) {
38
+                    ->orWhereHas('user', function($query) use ($search) {
39 39
                         $query->where('name', 'LIKE', "%{$search}%")
40 40
                             ->orWhere('email', 'LIKE', "%{$search}%");
41 41
                     });
Please login to merge, or discard this patch.
src/Services/StatsService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     public function getData(string $column, int $urlId, array $date): object
34 34
     {
35
-        if (! in_array($column, ['country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'os', 'browser', 'referer', 'referer_host'])) {
35
+        if (!in_array($column, ['country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'os', 'browser', 'referer', 'referer_host'])) {
36 36
             throw ValidationException::withMessages([
37 37
                 'column' => [__('Unsupported column.')],
38 38
             ]);
Please login to merge, or discard this patch.
database/migrations/2020_08_28_114153_create_access_tokens_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('access_tokens', function (Blueprint $table) {
16
+        Schema::create('access_tokens', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->bigInteger('user_id')->unsigned();
19 19
             $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
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.