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 laravel-55 (e4caf7)
by José
06:15
created
app/Http/Controllers/API/V1/CampaignController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * Get all campaigns
27 27
      * 20 queries per page
28 28
      *
29
-     * @return void
29
+     * @return \Illuminate\Http\JsonResponse
30 30
      */
31 31
     public function index()
32 32
     {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * Get all details of a campaign
40 40
      *
41 41
      * @param  integer $id
42
-     * @return void
42
+     * @return \Illuminate\Http\JsonResponse
43 43
      */
44 44
     public function show($id)
45 45
     {
Please login to merge, or discard this patch.
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -2,14 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace DoeSangue\Http\Controllers\API\V1;
4 4
 
5
-use DoeSangue\Http\Requests\UpdateCampaignRequest;
6
-use DoeSangue\Http\Requests\CreateCampaignRequest;
7 5
 use DoeSangue\Http\Controllers\Controller;
8
-use Illuminate\Support\Facades\Mail;
9
-use DoeSangue\Models\Donor;
10 6
 use DoeSangue\Models\Campaign;
11
-use Carbon\Carbon;
12
-use Tymon\JWTAuth\Facades\JWTAuth;
13 7
 
14 8
 class CampaignController extends Controller
15 9
 {
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/User/AccountController.php 3 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
      * Get Logged in User information.
14 14
      *
15
-     * @return void
15
+     * @return \Illuminate\Http\JsonResponse
16 16
      */
17 17
     public function userInfo()
18 18
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace DoeSangue\Http\Controllers\API\V1\User;
4 4
 
5 5
 use JWTAuth;
6
-use Tymon\JWTAuth\Exceptions\JWTException;
7 6
 use Illuminate\Http\Request;
8 7
 use DoeSangue\Http\Controllers\Controller;
9 8
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             'email'      =>   $user->email,
31 31
             'username'   =>   $user->username,
32 32
             'blood_type' =>   $user->donor->bloodType->code,
33
-            'avatar'     =>   '',//$user->avatar,
33
+            'avatar'     =>   '', //$user->avatar,
34 34
             'birthdate'  =>   $user->birthdate,
35 35
             'phone'      =>   $user->phone,
36 36
             'bio'        =>   $user->bio
Please login to merge, or discard this patch.
app/Http/Controllers/API/V1/User/CampaignController.php 3 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * Get all campaigns from current logged-in user.
15 15
      *
16
-     * @return void
16
+     * @return \Illuminate\Http\JsonResponse|null
17 17
      */
18 18
     public function all()
19 19
     {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * Create a new campaign
33 33
      *
34 34
      * @param  CreateCampaignRequest $request
35
-     * @return void
35
+     * @return \Illuminate\Http\JsonResponse
36 36
      */
37 37
     public function store(CreateCampaignRequest $request)
38 38
     {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param  UpdateCampaignRequest $request
68 68
      * @param  integer               $id
69
-     * @return void
69
+     * @return \Illuminate\Http\JsonResponse
70 70
      */
71 71
     public function update(UpdateCampaignRequest $request, $id)
72 72
     {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * Delete the campaign from platform.
122 122
      *
123 123
      * @param  integer $id
124
-     * @return void
124
+     * @return \Illuminate\Http\JsonResponse
125 125
      */
126 126
     public function destroy($id)
127 127
     {
Please login to merge, or discard this patch.
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\V1\User;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use DoeSangue\Http\Controllers\Controller;
7 6
 
8 7
 use DoeSangue\Models\Campaign;
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $user = JWTAuth::parseToken()->authenticate();
22 22
 
23
-         // If the token is invalid
23
+          // If the token is invalid
24 24
         if (!$user) {
25 25
             return response()->json([ 'invalid_user' ], 401);
26 26
         }
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
             'owner' => [
107 107
               'first_name' => $campaign->owner->first_name,
108 108
               'last_name' => $campaign->owner->last_name,
109
-             // 'email' => $campaign->owner->email,
110
-             // 'username' => $campaign->owner->username
109
+              // 'email' => $campaign->owner->email,
110
+              // 'username' => $campaign->owner->username
111 111
             ],
112 112
             'dates' => [
113 113
             'start_at' => $campaign->created_at->format('d-m-Y h:m:s'),
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthenticateController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
        * Authenticate the user
19 19
        *
20 20
        * @param Request $request
21
-       * @return void
21
+       * @return \Illuminate\Http\JsonResponse
22 22
       */
23 23
     public function authenticate(Request $request)
24 24
     {
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 
112 112
         }
113 113
 
114
-       // return redirect()->guest('login');
114
+        // return redirect()->guest('login');
115 115
     }
116 116
 
117 117
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,24 +57,24 @@  discard block
 block discarded – undo
57 57
     public function render($request, Exception $exception)
58 58
     {
59 59
         // Validate 404 exceptions.
60
-        if($exception instanceof NotFoundHttpException) {
60
+        if ($exception instanceof NotFoundHttpException) {
61 61
             return response()->json(
62 62
                 [
63 63
                 'error' => [
64 64
                     'description' => 'Invalid URI',
65
-                    'messages' => []
65
+                    'messages' => [ ]
66 66
                 ]
67 67
                 ], 404
68 68
             );
69 69
         }
70 70
 
71 71
         // Method not allowed exception handler
72
-        if($exception instanceof MethodNotAllowedHttpException) {
72
+        if ($exception instanceof MethodNotAllowedHttpException) {
73 73
             return response()->json(
74 74
                 [
75 75
                 'error' => [
76 76
                     'description' => 'Method Not Allowed',
77
-                    'messages' => []
77
+                    'messages' => [ ]
78 78
                 ]
79 79
                 ], 405
80 80
             );
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         if ($request->expectsJson()) {
109 109
 
110
-            return response()->json(['error' => 'Unauthenticated.'], 401);
110
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
111 111
 
112 112
         }
113 113
 
Please login to merge, or discard this patch.
app/Models/User.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,10 +113,10 @@
 block discarded – undo
113 113
     }
114 114
 
115 115
     /**
116
- * Get the route key for the model.
117
- *
118
- * @return string
119
- */
116
+     * Get the route key for the model.
117
+     *
118
+     * @return string
119
+     */
120 120
 public function getRouteKeyName()
121 121
 {
122 122
     return 'username';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function getFullNameAttribute($value)
71 71
     {
72
-        return ucfirst($this->first_name) . ' ' . ucfirst($this->last_name);
72
+        return ucfirst($this->first_name).' '.ucfirst($this->last_name);
73 73
     }
74 74
 
75 75
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     public function getIsActiveAttribute()
111 111
     {
112
-        return $this->attributes['active'] == true;
112
+        return $this->attributes[ 'active' ] == true;
113 113
     }
114 114
 
115 115
     /**
Please login to merge, or discard this patch.