Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Failed
Push — development ( a51bef...1aad8e )
by José
08:14
created
app/Providers/AppServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
         // Extend the Validator class.
20 20
         // To check the user age (minimum: 16)
21 21
         Validator::extend(
22
-            'olderThan', function ($attributes, $value, $parameters) {
23
-                $minAge = ( ! empty($parameters)) ? (int) $parameters[0] : 16;
22
+            'olderThan', function($attributes, $value, $parameters) {
23
+                $minAge = (!empty($parameters)) ? (int) $parameters[ 0 ] : 16;
24 24
                 return \Carbon\Carbon::now()->diff(new \Carbon\Carbon($value))->y >= $minAge;
25 25
             }
26 26
         );
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthenticateController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,8 +94,8 @@
 block discarded – undo
94 94
         $user = JWTAuth::parseToken()->authenticate();
95 95
 
96 96
         // If the token is invalid
97
-        if (! $user) {
98
-            return response()->json(['invalid_user'], 401);
97
+        if (!$user) {
98
+            return response()->json([ 'invalid_user' ], 401);
99 99
         }
100 100
 
101 101
         return response()->json(
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/CommentsController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             );
100 100
         }
101 101
 
102
-         // Notify error in not found
102
+          // Notify error in not found
103 103
         if (!$comment) {
104 104
             return response()->json(
105 105
                 [
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $camp = Campaign::find($campaign);
33 33
         $comment = new Comment();
34 34
         $comment->id = str_random();
35
-        $comment->comment = $request['comment'];
35
+        $comment->comment = $request[ 'comment' ];
36 36
         $comment->user_id = $user->id;
37 37
         $comment->campaign_id = $camp->id;
38 38
         // $comment->created_at = Carbon::now();
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
             );
64 64
         }
65 65
 
66
-        $comment->comment = $request['comment'];
66
+        $comment->comment = $request[ 'comment' ];
67 67
 
68
-        if (! $comment) {
68
+        if (!$comment) {
69 69
             return response()->json(
70 70
                 [
71 71
                     'error_code' => 404,
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/InvitesController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Illuminate\Http\Request;
6 6
 use DoeSangue\Http\Controllers\Controller;
7 7
 use Tymon\JWTAuth\Facades\JWTAuth;
8
-use DoeSangue\Repositories\Invites;
9 8
 use DoeSangue\Models\Invite;
10 9
 use Hash;
11 10
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $user = JWTAuth::parseToken()->authenticate();
23 23
 
24 24
         $invite = new Invite();
25
-        $invite->invite_code = Hash::make($request['invite_code']);
25
+        $invite->invite_code = Hash::make($request[ 'invite_code' ]);
26 26
         $invite->user_id = $user->id;
27 27
         $invite->save();
28 28
 
Please login to merge, or discard this patch.