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 Setup Failed
Pull Request — development (#68)
by José
06:06
created
app/Modules/Users/Database/Migrations/CreatePasswordResetsTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function up()
29 29
     {
30 30
         $this->schema->create(
31
-            'password_resets', function (Blueprint $table) {
31
+            'password_resets', function(Blueprint $table) {
32 32
                 $table->string('email')->index();
33 33
                 $table->string('token');
34 34
                 $table->timestamp('created_at')->nullable();
Please login to merge, or discard this patch.
app/Units/Authentication/Http/Controllers/Auth/PasswordResetController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         try {
27 27
             Password::sendResetLink(
28
-                $request->only('email'), function (Message $message) {
28
+                $request->only('email'), function(Message $message) {
29 29
                     $message->subject('Your Password Reset Link');
30 30
                 }
31 31
             );
Please login to merge, or discard this patch.
app/Units/Authentication/Routes/Api.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -40,24 +40,24 @@  discard block
 block discarded – undo
40 40
     protected function homeRoutes()
41 41
     {
42 42
         $this->router->get(
43
-            '/', function () {
44
-                return response()->json([ 'message' => 'Hello World!']);
43
+            '/', function() {
44
+                return response()->json([ 'message' => 'Hello World!' ]);
45 45
             }
46 46
         );
47 47
 
48 48
         // Search campaigns and donors.
49 49
         $this->router->group(
50
-            ['prefix' => 'search', 'namespace' => '\GiveBlood\Support\Http\Controllers'], function () {
50
+            [ 'prefix' => 'search', 'namespace' => '\GiveBlood\Support\Http\Controllers' ], function() {
51 51
                 // Search campaigns
52 52
                 $this->router->get('/', 'SearchController@search');
53 53
             }
54 54
         );
55 55
 
56 56
         $this->router->fallback(
57
-            function () {
57
+            function() {
58 58
                 return response()->json(
59 59
                     [
60
-                    'error' => 'Route cannot be found!'], 404
60
+                    'error' => 'Route cannot be found!' ], 404
61 61
                 );
62 62
             }
63 63
         );
@@ -69,19 +69,19 @@  discard block
 block discarded – undo
69 69
         // API Authentication routes
70 70
         // Create new Token
71 71
         $this->router->group(
72
-            ['prefix' => 'v1', 'namespace' => '\GiveBlood\Units\Authentication\Http\Controllers\Auth'], function ($auth) {
72
+            [ 'prefix' => 'v1', 'namespace' => '\GiveBlood\Units\Authentication\Http\Controllers\Auth' ], function($auth) {
73 73
                 $auth->post('/auth/login', 'AuthenticateController@authenticate');
74 74
                 $auth->get('/auth/logout', 'AuthenticateController@logout');
75 75
                 $auth->post('/auth/register', 'AuthenticateController@register');
76 76
                 $auth->group(
77
-                    ['prefix' => 'password'], function ($password) {
77
+                    [ 'prefix' => 'password' ], function($password) {
78 78
                         $password->post('/recover', 'PasswordResetController@recover')->name('password.reset');
79 79
                         $password->post('/reset/{token}', 'PasswordResetController@reset');
80 80
                     }
81 81
                 );
82 82
                 // invitation routes
83 83
                 $auth->group(
84
-                    ['prefix' => 'invitation'], function ($invitation) {
84
+                    [ 'prefix' => 'invitation' ], function($invitation) {
85 85
                         $invitation->post('/', 'InvitationRequestsController@createInvitation');
86 86
                         $invitation->get('/check', 'InvitationRequestsController@checkInvation');
87 87
                     }
@@ -90,19 +90,19 @@  discard block
 block discarded – undo
90 90
         );
91 91
 
92 92
         $this->router->group(
93
-            ['prefix' => 'v1', 'namespace' => '\GiveBlood\Units\Authentication\Http\Controllers\Auth'], function ($auth) {
93
+            [ 'prefix' => 'v1', 'namespace' => '\GiveBlood\Units\Authentication\Http\Controllers\Auth' ], function($auth) {
94 94
                 $auth->post('/auth/login', 'AuthenticateController@authenticate');
95 95
                 $auth->get('/auth/logout', 'AuthenticateController@logout');
96 96
                 //        $auth->post('/auth/register', 'AuthenticateController@register');
97 97
                 $auth->group(
98
-                    ['prefix' => 'password'], function ($password) {
98
+                    [ 'prefix' => 'password' ], function($password) {
99 99
                         $password->post('/recover', 'PasswordResetController@recover')->name('password.reset');
100 100
                         $password->post('/reset/{token}', 'PasswordResetController@reset');
101 101
                     }
102 102
                 );
103 103
                 // invitation routes
104 104
                 $auth->group(
105
-                    ['prefix' => 'invitation'], function ($invitation) {
105
+                    [ 'prefix' => 'invitation' ], function($invitation) {
106 106
                         $invitation->post('/', 'InvitationRequestsController@createInvitation');
107 107
                         $invitation->get('/check', 'InvitationRequestsController@checkInvation');
108 108
                     }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     {
116 116
         // Donors
117 117
         $this->router->group(
118
-            ['namespace' => '\GiveBlood\Support\Http\Controllers', 'prefix' => 'donors'], function ($donor) {
118
+            [ 'namespace' => '\GiveBlood\Support\Http\Controllers', 'prefix' => 'donors' ], function($donor) {
119 119
                 // Because all donor is a user
120 120
                 // We will use UsersController instead
121 121
                 // All donors
@@ -130,18 +130,18 @@  discard block
 block discarded – undo
130 130
         );
131 131
         // Donors API
132 132
         $this->router->group(
133
-            ['namespace' => '\GiveBlood\Support\Http\Controllers', 'prefix' => 'v1'], function () {
133
+            [ 'namespace' => '\GiveBlood\Support\Http\Controllers', 'prefix' => 'v1' ], function() {
134 134
 
135 135
                 // Routes related to logged in user
136 136
                 $this->router->group(
137
-                    ['prefix' => 'me', 'namespace' => 'User'], function ($user) {
137
+                    [ 'prefix' => 'me', 'namespace' => 'User' ], function($user) {
138 138
                         // Get user information.
139 139
                         $user->get('/', 'AccountController@userInfo');
140 140
                         // Update User profile information.
141 141
                         $user->put('/', 'AccountController@updateProfile');
142 142
                         // User campigns
143 143
                         $user->group(
144
-                            ['prefix' => 'campaigns'], function ($campaign) {
144
+                            [ 'prefix' => 'campaigns' ], function($campaign) {
145 145
                                 // Get all user Campaigns.
146 146
                                 $campaign->get('/', 'CampaignController@index');
147 147
                                 // Create Campaign
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
                 // Blood Banks
164 164
                 $this->router->group(
165
-                    ['prefix' => 'banks'], function ($bank) {
165
+                    [ 'prefix' => 'banks' ], function($bank) {
166 166
                         $bank->get('/', 'BankController@index');
167 167
                         $bank->get('/{bank}', 'BankController@show');
168 168
                     }
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
                 // BloodTypes
172 172
                 $this->router->group(
173
-                    ['prefix' => 'bloodtypes'], function () {
173
+                    [ 'prefix' => 'bloodtypes' ], function() {
174 174
                         $this->router->get('/', 'BloodTypeController@index');
175 175
                     }
176 176
                 );
@@ -195,10 +195,10 @@  discard block
 block discarded – undo
195 195
     {
196 196
         // Campaign
197 197
         $this->router->group(
198
-            ['namespace' => '\GiveBlood\Support\Http\Controllers', 'prefix' => 'v1'], function () {
198
+            [ 'namespace' => '\GiveBlood\Support\Http\Controllers', 'prefix' => 'v1' ], function() {
199 199
 
200 200
                 $this->router->group(
201
-                    ['prefix' => 'campaigns'], function ($campaign) {
201
+                    [ 'prefix' => 'campaigns' ], function($campaign) {
202 202
                         //All Campaigns
203 203
                         $campaign->get('/', 'CampaignController@index');
204 204
                         // Campaign details
Please login to merge, or discard this patch.
app/Units/Core/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (!$request->expectsJson()) {
18 18
             return route('login');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
app/Units/Core/Providers/RouteServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'middleware' => 'api',
55 55
             'namespace' => $this->namespace,
56 56
             //'prefix' => 'api'
57
-             ]
57
+              ]
58 58
         ))->register();
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
app/Units/Core/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         // Extend the Validator class.
29 29
         // To check the user age (minimum: 16)
30 30
         \Validator::extend(
31
-            'olderThan', function ($attributes, $value, $parameters) {
31
+            'olderThan', function($attributes, $value, $parameters) {
32 32
                 $minAge = (!empty($parameters)) ? (int) $parameters[ 0 ] : 16;
33 33
                 return \Carbon\Carbon::now()->diff(new \Carbon\Carbon($value))->y >= $minAge;
34 34
             }
Please login to merge, or discard this patch.