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 (#1935)
by Cristian
04:27 queued 13s
created
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.
src/app/Http/Requests/AccountInfoRequest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Backpack\CRUD\app\Http\Requests;
4 4
 
5
-use Illuminate\Validation\Rule;
6 5
 use Illuminate\Foundation\Http\FormRequest;
6
+use Illuminate\Validation\Rule;
7 7
 
8 8
 class AccountInfoRequest extends FormRequest
9 9
 {
Please login to merge, or discard this patch.
src/app/Http/Requests/ChangePasswordRequest.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Backpack\CRUD\app\Http\Requests;
4 4
 
5
-use Illuminate\Support\Facades\Hash;
6 5
 use Illuminate\Foundation\Http\FormRequest;
6
+use Illuminate\Support\Facades\Hash;
7 7
 
8 8
 class ChangePasswordRequest extends FormRequest
9 9
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
      */
42 42
     public function withValidator($validator)
43 43
     {
44
-        $validator->after(function ($validator) {
44
+        $validator->after(function($validator) {
45 45
             // check old password matches
46
-            if (! Hash::check($this->input('old_password'), backpack_auth()->user()->password)) {
46
+            if (!Hash::check($this->input('old_password'), backpack_auth()->user()->password)) {
47 47
                 $validator->errors()->add('old_password', trans('backpack::base.old_password_incorrect'));
48 48
             }
49 49
         });
Please login to merge, or discard this patch.