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
02:37
created
src/app/Http/Controllers/Operations/RevisionsOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $this->crud->applyConfigurationFromSettings('revisions');
83 83
 
84 84
         $revisionId = \Request::input('revision_id', false);
85
-        if (! $revisionId) {
85
+        if (!$revisionId) {
86 86
             abort(500, 'Can\'t restore revision without revision_id');
87 87
         } else {
88 88
             $this->crud->restoreRevision($id, $revisionId); // do the update
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/BulkDeleteOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $this->crud->allowAccess('bulkDelete');
31 31
 
32
-        $this->crud->operation('list', function () {
32
+        $this->crud->operation('list', function() {
33 33
             $this->crud->enableBulkActions();
34 34
             $this->crud->addButton('bottom', 'bulk_delete', 'view', 'crud::buttons.bulk_delete');
35 35
         });
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/CreateOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
     {
43 43
         $this->crud->allowAccess('create');
44 44
 
45
-        $this->crud->operation('create', function () {
45
+        $this->crud->operation('create', function() {
46 46
             $this->crud->set('create.groupedErrors', config('backpack.crud.show_grouped_errors', true));
47 47
             $this->crud->set('create.inlineErrors', config('backpack.crud.show_inline_errors', true));
48 48
             $this->crud->set('create.autoFocusOnFirstField', true);
49 49
         });
50 50
 
51
-        $this->crud->operation('list', function () {
51
+        $this->crud->operation('list', function() {
52 52
             $this->crud->addButton('top', 'create', 'view', 'crud::buttons.create');
53 53
         });
54 54
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/ShowOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $this->crud->allowAccess('show');
31 31
 
32
-        $this->crud->operation('list', function () {
32
+        $this->crud->operation('list', function() {
33 33
             $this->crud->addButton('line', 'show', 'view', 'crud::buttons.show', 'beginning');
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/DeleteOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $this->crud->allowAccess('delete');
31 31
 
32
-        $this->crud->operation(['list', 'show'], function () {
32
+        $this->crud->operation(['list', 'show'], function() {
33 33
             $this->crud->addButton('line', 'delete', 'view', 'crud::buttons.delete', 'end');
34 34
         });
35 35
     }
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
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         // call the setup function inside this closure to also have the request there
29 29
         // this way, developers can use things stored in session (auth variables, etc)
30
-        $this->middleware(function ($request, $next) {
30
+        $this->middleware(function($request, $next) {
31 31
             // make a new CrudPanel object, from the one stored in Laravel's service container
32 32
             $this->crud = app()->make('crud');
33 33
             $this->request = $request;
Please login to merge, or discard this patch.
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/Http/Controllers/Operations/ListOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,14 +110,14 @@
 block discarded – undo
110 110
         // if there was an order set, this will be the last one (after all others were applied)
111 111
         $orderBy = $this->crud->query->getQuery()->orders;
112 112
         $hasOrderByPrimaryKey = false;
113
-        collect($orderBy)->each(function ($item, $key) use ($hasOrderByPrimaryKey) {
113
+        collect($orderBy)->each(function($item, $key) use ($hasOrderByPrimaryKey) {
114 114
             if ($item['column'] == $this->crud->model->getKeyName()) {
115 115
                 $hasOrderByPrimaryKey = true;
116 116
 
117 117
                 return false;
118 118
             }
119 119
         });
120
-        if (! $hasOrderByPrimaryKey) {
120
+        if (!$hasOrderByPrimaryKey) {
121 121
             $this->crud->query->orderByDesc($this->crud->model->getKeyName());
122 122
         }
123 123
 
Please login to merge, or discard this patch.
src/app/Console/Commands/AddCustomRouteContent.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 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 Illuminate\Support\Facades\Storage;
8 7
 use Symfony\Component\Process\Exception\ProcessFailedException;
8
+use Symfony\Component\Process\Process;
9 9
 
10 10
 class AddCustomRouteContent extends Command
11 11
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
             $process = new Process($command, null, null, null, 300, null);
68 68
 
69
-            $process->run(function ($type, $buffer) {
69
+            $process->run(function($type, $buffer) {
70 70
                 if (Process::ERR === $type) {
71 71
                     $this->line($buffer);
72 72
                 } else {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             });
76 76
 
77 77
             // executes after the command finishes
78
-            if (! $process->isSuccessful()) {
78
+            if (!$process->isSuccessful()) {
79 79
                 throw new ProcessFailedException($process);
80 80
             }
81 81
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         // otherwise, in case the last line HAS been modified
96 96
         // return the last line that has an ending in it
97
-        $possible_end_lines = array_filter($file_lines, function ($k) {
97
+        $possible_end_lines = array_filter($file_lines, function($k) {
98 98
             return strpos($k, '});') === 0;
99 99
         });
100 100
 
Please login to merge, or discard this patch.