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 — master (#4152)
by Cristian
12:03
created
src/app/Library/Auth/ResetsPasswords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         // will update the password on an actual user model and persist it to the
46 46
         // database. Otherwise we will parse the error and return the response.
47 47
         $response = $this->broker()->reset(
48
-            $this->credentials($request), function ($user, $password) {
48
+            $this->credentials($request), function($user, $password) {
49 49
                 $this->resetPassword($user, $password);
50 50
             }
51 51
         );
Please login to merge, or discard this patch.
src/app/Library/Auth/VerifiesEmails.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
      */
35 35
     public function verify(Request $request)
36 36
     {
37
-        if (! hash_equals((string) $request->route('id'), (string) $request->user()->getKey())) {
37
+        if (!hash_equals((string) $request->route('id'), (string) $request->user()->getKey())) {
38 38
             throw new AuthorizationException;
39 39
         }
40 40
 
41
-        if (! hash_equals((string) $request->route('hash'), sha1($request->user()->getEmailForVerification()))) {
41
+        if (!hash_equals((string) $request->route('hash'), sha1($request->user()->getEmailForVerification()))) {
42 42
             throw new AuthorizationException;
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/app/Models/Traits/HasFakeFields.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function addFakes($columns = ['extras'])
21 21
     {
22 22
         foreach ($columns as $key => $column) {
23
-            if (! isset($this->attributes[$column])) {
23
+            if (!isset($this->attributes[$column])) {
24 24
                 continue;
25 25
             }
26 26
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function shouldDecodeFake($column)
71 71
     {
72
-        return ! in_array($column, array_keys($this->casts));
72
+        return !in_array($column, array_keys($this->casts));
73 73
     }
74 74
 
75 75
     /**
@@ -81,6 +81,6 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function shouldEncodeFake($column)
83 83
     {
84
-        return ! in_array($column, array_keys($this->casts));
84
+        return !in_array($column, array_keys($this->casts));
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/app/Models/Traits/HasUploadFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function uploadMultipleFilesToDisk($value, $attribute_name, $disk, $destination_path)
77 77
     {
78
-        if (! is_array($this->{$attribute_name})) {
78
+        if (!is_array($this->{$attribute_name})) {
79 79
             $attribute_value = json_decode($this->{$attribute_name}, true) ?? [];
80 80
         } else {
81 81
             $attribute_value = $this->{$attribute_name};
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         if ($files_to_clear) {
88 88
             foreach ($files_to_clear as $key => $filename) {
89 89
                 \Storage::disk($disk)->delete($filename);
90
-                $attribute_value = Arr::where($attribute_value, function ($value, $key) use ($filename) {
90
+                $attribute_value = Arr::where($attribute_value, function($value, $key) use ($filename) {
91 91
                     return $value != $filename;
92 92
                 });
93 93
             }
Please login to merge, or discard this patch.
src/app/Http/Controllers/CrudController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         //
33 33
         // It's done inside a middleware closure in order to have
34 34
         // the complete request inside the CrudPanel object.
35
-        $this->middleware(function ($request, $next) {
35
+        $this->middleware(function($request, $next) {
36 36
             $this->crud = app()->make('crud');
37 37
             $this->crud->setRequest($request);
38 38
 
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function settings()
59 59
     {
60
-        return Arr::sort($this->settings, function ($value, $key) {
60
+        return Arr::sort($this->settings, function($value, $key) {
61 61
             return $key;
62 62
         });
63 63
     }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Search.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,10 +224,10 @@
 block discarded – undo
224 224
         // add the details_row button to the first column
225 225
         if ($this->getOperationSetting('detailsRow')) {
226 226
             $details_row_button = \View::make('crud::columns.inc.details_row_button')
227
-                                           ->with('crud', $this)
228
-                                           ->with('entry', $entry)
229
-                                           ->with('row_number', $rowNumber)
230
-                                           ->render();
227
+                                            ->with('crud', $this)
228
+                                            ->with('entry', $entry)
229
+                                            ->with('row_number', $rowNumber)
230
+                                            ->render();
231 231
             $row_items[0] = $details_row_button.$row_items[0];
232 232
         }
233 233
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function applySearchTerm($searchTerm)
23 23
     {
24
-        return $this->query->where(function ($query) use ($searchTerm) {
24
+        return $this->query->where(function($query) use ($searchTerm) {
25 25
             foreach ($this->columns() as $column) {
26
-                if (! isset($column['type'])) {
26
+                if (!isset($column['type'])) {
27 27
                     abort(400, 'Missing column type when trying to apply search term.');
28 28
                 }
29 29
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
                 case 'select':
83 83
                 case 'select_multiple':
84
-                    $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm) {
84
+                    $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm) {
85 85
                         $q->where($this->getColumnWithTableNamePrefixed($q, $column['attribute']), 'like', '%'.$searchTerm.'%');
86 86
                     });
87 87
                     break;
@@ -270,13 +270,13 @@  discard block
 block discarded – undo
270 270
         if (isset($column['type'])) {
271 271
             // create a list of paths to column blade views
272 272
             // including the configured view_namespaces
273
-            $columnPaths = array_map(function ($item) use ($column) {
273
+            $columnPaths = array_map(function($item) use ($column) {
274 274
                 return $item.'.'.$column['type'];
275 275
             }, config('backpack.crud.view_namespaces.columns'));
276 276
 
277 277
             // but always fall back to the stock 'text' column
278 278
             // if a view doesn't exist
279
-            if (! in_array('crud::columns.text', $columnPaths)) {
279
+            if (!in_array('crud::columns.text', $columnPaths)) {
280 280
                 $columnPaths[] = 'crud::columns.text';
281 281
             }
282 282
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      */
304 304
     private function renderCellView($view, $column, $entry, $rowNumber = false)
305 305
     {
306
-        if (! view()->exists($view)) {
306
+        if (!view()->exists($view)) {
307 307
             $view = 'crud::columns.text'; // fallback to text column
308 308
         }
309 309
 
Please login to merge, or discard this patch.
src/app/Console/Commands/Traits/PrettyCommandOutput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $command = is_string($command) ? explode(' ', $command) : $command;
27 27
 
28 28
         $process = new Process($command, null, null, null, $this->option('timeout'));
29
-        $process->run(function ($type, $buffer) {
29
+        $process->run(function($type, $buffer) {
30 30
             if (Process::ERR === $type) {
31 31
                 $this->echo('comment', $buffer);
32 32
             } else {
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         });
36 36
 
37 37
         // executes after the command finishes
38
-        if (! $process->isSuccessful()) {
38
+        if (!$process->isSuccessful()) {
39 39
             throw new ProcessFailedException($process);
40 40
         }
41 41
 
Please login to merge, or discard this patch.
tests/Unit/CrudPanel/BaseCrudPanelTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         parent::setUp();
26 26
 
27
-        $this->app->singleton('crud', function ($app) {
27
+        $this->app->singleton('crud', function($app) {
28 28
             return new CrudPanel($app);
29 29
         });
30 30
         $this->crudPanel = app('crud');
Please login to merge, or discard this patch.