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
Branch development (3784af)
by José
05:42 queued 02:43
created
app/Http/Controllers/Auth/AuthenticateController.php 2 patches
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         // all good so return the token
33 33
         return response()->json(
34 34
             [
35
-             "data" {
35
+              "data" {
36 36
                 'access_token' => $token,
37 37
                 'token_type' => 'Bearer'
38
-             }
38
+              }
39 39
             ]
40 40
         );
41 41
     }
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.
app/Providers/RouteServiceProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *
40 40
      * These routes all receive session state, CSRF protection, etc.
41 41
      */
42
-     /*
42
+      /*
43 43
     protected function mapWebRoutes()
44 44
     {
45 45
         Route::group(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             [
65 65
             'middleware' => 'api',
66 66
             'namespace' => $this->namespace,
67
-            ], function ($router) {
67
+            ], function($router) {
68 68
                 include base_path('routes/api.php');
69 69
             }
70 70
         );
Please login to merge, or discard this patch.