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

Completed
Pull Request — master (#2138)
by Jasper
02:33
created
src/app/Console/Commands/Install.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * Execute the console command.
32 32
      *
33
-     * @return mixed
33
+     * @return false|null
34 34
      */
35 35
     public function handle()
36 36
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     /**
153 153
      * Write text to the screen for the user to see.
154 154
      *
155
-     * @param [string] $type    line, info, comment, question, error
155
+     * @param string $type    line, info, comment, question, error
156 156
      * @param [string] $content
157 157
      */
158 158
     public function echo($type, $content)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Backpack\CRUD\app\Console\Commands;
4 4
 
5 5
 use Illuminate\Console\Command;
6
-use Symfony\Component\Process\Process;
7 6
 use Symfony\Component\Process\Exception\ProcessFailedException;
7
+use Symfony\Component\Process\Process;
8 8
 
9 9
 class Install extends Command
10 10
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     $this->executeProcess('mkdir -p public/uploads');
86 86
                     break;
87 87
                 case '\\': // windows
88
-                    if (! file_exists('public\uploads')) {
88
+                    if (!file_exists('public\uploads')) {
89 89
                         $this->executeProcess('mkdir public\uploads');
90 90
                     }
91 91
                     break;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $this->echo('info', $beforeNotice ? ' '.$beforeNotice : $command);
128 128
 
129 129
         $process = new Process($command, null, null, null, $this->option('timeout'), null);
130
-        $process->run(function ($type, $buffer) {
130
+        $process->run(function($type, $buffer) {
131 131
             if (Process::ERR === $type) {
132 132
                 $this->echo('comment', $buffer);
133 133
             } else {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         });
137 137
 
138 138
         // executes after the command finishes
139
-        if (! $process->isSuccessful()) {
139
+        if (!$process->isSuccessful()) {
140 140
             throw new ProcessFailedException($process);
141 141
         }
142 142
 
Please login to merge, or discard this patch.
src/app/Console/Commands/PublishBackpackMiddleware.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * Execute the console command.
35 35
      *
36
-     * @return bool|null
36
+     * @return false|null
37 37
      */
38 38
     public function handle()
39 39
     {
@@ -71,9 +71,8 @@  discard block
 block discarded – undo
71 71
      * Replace the User model, if it was moved to App\Models\User.
72 72
      *
73 73
      * @param string $stub
74
-     * @param string $name
75 74
      *
76
-     * @return $this
75
+     * @return string
77 76
      */
78 77
     protected function makeReplacements(&$stub)
79 78
     {
Please login to merge, or discard this patch.
src/app/Console/Commands/Version.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Backpack\CRUD\app\Console\Commands;
4 4
 
5 5
 use Illuminate\Console\Command;
6
-use Symfony\Component\Process\Process;
7 6
 use Symfony\Component\Process\Exception\ProcessFailedException;
7
+use Symfony\Component\Process\Process;
8 8
 
9 9
 class Version extends Command
10 10
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     private function runConsoleCommand($command)
50 50
     {
51 51
         $process = new Process($command, null, null, null, 60, null);
52
-        $process->run(function ($type, $buffer) {
52
+        $process->run(function($type, $buffer) {
53 53
             if (Process::ERR === $type) {
54 54
                 $this->line($buffer);
55 55
             } else {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         });
59 59
 
60 60
         // executes after the command finishes
61
-        if (! $process->isSuccessful()) {
61
+        if (!$process->isSuccessful()) {
62 62
             throw new ProcessFailedException($process);
63 63
         }
64 64
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/ForgotPasswordController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Backpack\CRUD\app\Http\Controllers\Auth;
4 4
 
5
+use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
5 6
 use Illuminate\Routing\Controller;
6 7
 use Illuminate\Support\Facades\Password;
7
-use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
8 8
 
9 9
 class ForgotPasswordController extends Controller
10 10
 {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/LoginController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @param \Illuminate\Http\Request $request
69 69
      *
70
-     * @return \Illuminate\Http\Response
70
+     * @return \Illuminate\Http\RedirectResponse
71 71
      */
72 72
     public function logout(Request $request)
73 73
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Backpack\CRUD\app\Http\Controllers\Auth;
4 4
 
5
+use Illuminate\Foundation\Auth\AuthenticatesUsers;
5 6
 use Illuminate\Http\Request;
6 7
 use Illuminate\Routing\Controller;
7
-use Illuminate\Foundation\Auth\AuthenticatesUsers;
8 8
 
9 9
 class LoginController extends Controller
10 10
 {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/RegisterController.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      *
67 67
      * @param array $data
68 68
      *
69
-     * @return User
69
+     * @return \Illuminate\Contracts\Auth\Authenticatable
70 70
      */
71 71
     protected function create(array $data)
72 72
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @param \Illuminate\Http\Request $request
104 104
      *
105
-     * @return \Illuminate\Http\Response
105
+     * @return \Illuminate\Http\RedirectResponse
106 106
      */
107 107
     public function register(Request $request)
108 108
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Backpack\CRUD\app\Http\Controllers\Auth;
4 4
 
5
-use Validator;
6
-use Illuminate\Http\Request;
7
-use Illuminate\Routing\Controller;
8 5
 use Illuminate\Auth\Events\Registered;
9 6
 use Illuminate\Foundation\Auth\RegistersUsers;
7
+use Illuminate\Http\Request;
8
+use Illuminate\Routing\Controller;
9
+use Validator;
10 10
 
11 11
 class RegisterController extends Controller
12 12
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public function showRegistrationForm()
89 89
     {
90 90
         // if registration is closed, deny access
91
-        if (! config('backpack.base.registration_open')) {
91
+        if (!config('backpack.base.registration_open')) {
92 92
             abort(403, trans('backpack::base.registration_closed'));
93 93
         }
94 94
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function register(Request $request)
108 108
     {
109 109
         // if registration is closed, deny access
110
-        if (! config('backpack.base.registration_open')) {
110
+        if (!config('backpack.base.registration_open')) {
111 111
             abort(403, trans('backpack::base.registration_closed'));
112 112
         }
113 113
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/ResetPasswordController.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
     /**
28 28
      * Get the path the user should be redirected to after password reset.
29 29
      *
30
-     * @param \Illuminate\Http\Request $request
31 30
      *
32 31
      * @return string
33 32
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Backpack\CRUD\app\Http\Controllers\Auth;
4 4
 
5
+use Illuminate\Foundation\Auth\ResetsPasswords;
5 6
 use Illuminate\Http\Request;
6 7
 use Illuminate\Routing\Controller;
7 8
 use Illuminate\Support\Facades\Password;
8
-use Illuminate\Foundation\Auth\ResetsPasswords;
9 9
 
10 10
 class ResetPasswordController extends Controller
11 11
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         $this->middleware("guest:$guard");
49 49
 
50
-        if (! backpack_users_have_email()) {
50
+        if (!backpack_users_have_email()) {
51 51
             abort(501, trans('backpack::base.no_email_column'));
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/MyAccountController.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 namespace Backpack\CRUD\app\Http\Controllers;
4 4
 
5 5
 use Alert;
6
-use Illuminate\Routing\Controller;
7
-use Illuminate\Support\Facades\Hash;
8 6
 use Backpack\CRUD\app\Http\Requests\AccountInfoRequest;
9 7
 use Backpack\CRUD\app\Http\Requests\ChangePasswordRequest;
8
+use Illuminate\Routing\Controller;
9
+use Illuminate\Support\Facades\Hash;
10 10
 
11 11
 class MyAccountController extends Controller
12 12
 {
Please login to merge, or discard this patch.
src/app/Http/Middleware/CheckIfAdmin.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * Answer to unauthorized access request.
31 31
      *
32
-     * @param [type] $request [description]
32
+     * @param \Illuminate\Http\Request $request [description]
33 33
      *
34 34
      * @return [type] [description]
35 35
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             return $this->respondToUnauthorizedRequest($request);
57 57
         }
58 58
 
59
-        if (! $this->checkIfUserIsAdmin(backpack_user())) {
59
+        if (!$this->checkIfUserIsAdmin(backpack_user())) {
60 60
             return $this->respondToUnauthorizedRequest($request);
61 61
         }
62 62
 
Please login to merge, or discard this patch.