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

Passed
Branch development (ad65b0)
by José
04:05
created
app/Http/Controllers/API/DonorsController.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers\API;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use DoeSangue\Http\Controllers\Controller;
7 6
 use DoeSangue\Models\Donor;
8 7
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
       $donor = Donor::find($id);
26 26
 
27
-       return response()->json($donor);
27
+        return response()->json($donor);
28 28
     }
29 29
 
30 30
     public function store()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 {
11 11
     public function __construct()
12 12
     {
13
-        $this->middleware('jwt.auth', ['except' => ['index', 'show']]);
13
+        $this->middleware('jwt.auth', [ 'except' => [ 'index', 'show' ] ]);
14 14
     }
15 15
 
16 16
     public function index()
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         return response()->json($donors);
21 21
     }
22 22
 
23
-    public function show($id){
23
+    public function show($id) {
24 24
 
25 25
       $donor = Donor::find($id);
26 26
 
Please login to merge, or discard this patch.
app/Http/Controllers/API/PostsController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers\API;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use DoeSangue\Http\Requests\CreatePostRequest;
7 6
 use DoeSangue\Http\Requests\UpdatePostRequest;
8 7
 use DoeSangue\Http\Controllers\Controller;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function __construct()
14 14
     {
15
-        $this->middleware('jwt.auth', ['except' => ['index', 'show']]);
15
+        $this->middleware('jwt.auth', [ 'except' => [ 'index', 'show' ] ]);
16 16
     }
17 17
 
18 18
     public function index()
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 class HomeController extends Controller
8 6
 {
9 7
     /**
Please login to merge, or discard this patch.
app/Observers/CampaignObserver.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * Listen to the Campaign created event.
14 14
      *
15
-     * @param Campaign $Campaign
15
+     * @param Campaign $campaign
16 16
      */
17 17
     public function published(Campaign $campaign)
18 18
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use DoeSangue\Mail\CampaignPublished;
6 6
 use DoeSangue\Models\Campaign;
7
-use DoeSangue\Models\User;
8 7
 use Illuminate\Support\Facades\Mail;
9 8
 
10 9
 class CampaignObserver
Please login to merge, or discard this patch.
app/Http/Controllers/API/CampaignController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __construct()
13 13
     {
14
-        $this->middleware('jwt.auth', ['except' => ['index', 'show']]);
14
+        $this->middleware('jwt.auth', [ 'except' => [ 'index', 'show' ] ]);
15 15
     }
16 16
 
17 17
     public function index()
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $campaign = new Campaign();
34 34
         $campaign->title = $request[ 'title' ];
35 35
         $campaign->expires = $request[ 'expires' ];
36
-        $campaign->id_user = $request['id_user'];
36
+        $campaign->id_user = $request[ 'id_user' ];
37 37
         $campaign->save();
38 38
 
39 39
         return response()->json($campaign, 201);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * Get campaigns by specific donor/user
82 82
      * @return Response
83 83
      */
84
-    public function campaigns(Donor $id){
84
+    public function campaigns(Donor $id) {
85 85
 
86 86
       $donor = Donor::find($id);
87 87
       $campaigns = Campaigns::where('id_user', $donor->id)->get();
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthenticateController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
 
19 19
         try {
20 20
             // attempt to verify the credentials and create a token for the user
21
-            if (! $token = JWTAuth::attempt($credentials)) {
22
-                return response()->json(['error' => 'invalid_credentials'], 401);
21
+            if (!$token = JWTAuth::attempt($credentials)) {
22
+                return response()->json([ 'error' => 'invalid_credentials' ], 401);
23 23
             }
24 24
         } catch (JWTException $e) {
25 25
             // something went wrong whilst attempting to encode the token
26
-            return response()->json(['error' => 'could_not_create_token'], 500);
26
+            return response()->json([ 'error' => 'could_not_create_token' ], 500);
27 27
         }
28 28
 
29 29
         // all good so return the token
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     protected $middleware = [
17 17
         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
18
-	      \Barryvdh\Cors\HandleCors::class,
18
+        \Barryvdh\Cors\HandleCors::class,
19 19
     ];
20 20
 
21 21
     /**
Please login to merge, or discard this patch.