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 (#2308)
by Cristian
04:56 queued 02:19
created
tests/Unit/CrudPanel/CrudPanelButtonsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
 
248 248
     private function getButtonByName($name)
249 249
     {
250
-        return $this->crudPanel->buttons()->first(function ($value) use ($name) {
250
+        return $this->crudPanel->buttons()->first(function($value) use ($name) {
251 251
             return $value->name == $name;
252 252
         });
253 253
     }
Please login to merge, or discard this patch.
src/app/Console/Commands/Install.php 2 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.
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/Http/Controllers/Auth/LoginController.php 1 patch
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.
src/app/Http/Controllers/Auth/RegisterController.php 2 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.
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 2 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.
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/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/Library/CrudPanel/Traits/AutoFocus.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
         return $this->getOperationSetting('autoFocusOnFirstField');
13 13
     }
14 14
 
15
+    /**
16
+     * @param boolean $value
17
+     */
15 18
     public function setAutoFocusOnFirstField($value)
16 19
     {
17 20
         return $this->setOperationSetting('autoFocusOnFirstField', (bool) $value);
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Create.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
      * @param \Illuminate\Database\Eloquent\Model $item          The current CRUD model.
160 160
      * @param array                               $formattedData The form data.
161 161
      *
162
-     * @return bool|null
162
+     * @return false|null
163 163
      */
164 164
     private function createRelationsForItem($item, $formattedData)
165 165
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $all_relation_fields = $this->getRelationFields();
83 83
 
84
-        return array_where($all_relation_fields, function ($value, $key) {
84
+        return array_where($all_relation_fields, function($value, $key) {
85 85
             return isset($value['pivot']) && $value['pivot'];
86 86
         });
87 87
     }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     private function createRelationsForItem($item, $formattedData)
158 158
     {
159
-        if (! isset($formattedData['relations'])) {
159
+        if (!isset($formattedData['relations'])) {
160 160
             return false;
161 161
         }
162 162
 
@@ -213,11 +213,11 @@  discard block
 block discarded – undo
213 213
                 $key = implode('.relations.', explode('.', $relationField['entity']));
214 214
                 $fieldData = array_get($relationData, 'relations.'.$key, []);
215 215
 
216
-                if (! array_key_exists('model', $fieldData)) {
216
+                if (!array_key_exists('model', $fieldData)) {
217 217
                     $fieldData['model'] = $relationField['model'];
218 218
                 }
219 219
 
220
-                if (! array_key_exists('parent', $fieldData)) {
220
+                if (!array_key_exists('parent', $fieldData)) {
221 221
                     $fieldData['parent'] = $this->getRelationModel($relationField['entity'], -1);
222 222
                 }
223 223
 
Please login to merge, or discard this patch.