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

Passed
Push — main ( cb95ac...908ce8 )
by Pedro
33:13 queued 18:15
created
tests/Unit/CrudPanel/CrudPanelAccessTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function testItCanUseAClosureToResolveAccess()
107 107
     {
108
-        $this->crudPanel->setAccessCondition('list', function () {
108
+        $this->crudPanel->setAccessCondition('list', function() {
109 109
             return true;
110 110
         });
111 111
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     public function testItCanUseAClosureToResolveAccessForMultipleOperations()
118 118
     {
119
-        $this->crudPanel->setAccessCondition(['list', 'create'], function () {
119
+        $this->crudPanel->setAccessCondition(['list', 'create'], function() {
120 120
             return true;
121 121
         });
122 122
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     public function testItCanCheckIfAnOperationHasAccessConditions()
129 129
     {
130
-        $this->crudPanel->setAccessCondition(['list', 'create'], function () {
130
+        $this->crudPanel->setAccessCondition(['list', 'create'], function() {
131 131
             return true;
132 132
         });
133 133
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     public function testItCanCheckAccessToAll()
139 139
     {
140
-        $this->crudPanel->allowAccess(['list', 'create'], function () {
140
+        $this->crudPanel->allowAccess(['list', 'create'], function() {
141 141
             return true;
142 142
         });
143 143
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 
148 148
     public function testItCanAllowAccessToSomeSpecificOperationWhileDenyingOthers()
149 149
     {
150
-        $this->crudPanel->allowAccess(['list', 'create'], function () {
150
+        $this->crudPanel->allowAccess(['list', 'create'], function() {
151 151
             return true;
152 152
         });
153 153
 
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Reorder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
         // sent in the request that are not in the database
26 26
         $itemKeys = $this->model->query()->select($primaryKey)->get()->pluck($primaryKey);
27 27
 
28
-        $reorderItems = collect($request)->filter(function ($item) use ($itemKeys) {
28
+        $reorderItems = collect($request)->filter(function($item) use ($itemKeys) {
29 29
             return $item['item_id'] !== '' && $item['item_id'] !== null && $itemKeys->contains($item['item_id']);
30
-        })->map(function ($item) use ($primaryKey) {
30
+        })->map(function($item) use ($primaryKey) {
31 31
             $item[$primaryKey] = (int) $item['item_id'];
32 32
             $item['parent_id'] = empty($item['parent_id']) ? null : (int) $item['parent_id'];
33 33
             $item['depth'] = empty($item['depth']) ? null : (int) $item['depth'];
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             return $item;
40 40
         })->toArray();
41 41
 
42
-        DB::transaction(function () use ($reorderItems, $primaryKey, $itemKeys) {
42
+        DB::transaction(function() use ($reorderItems, $primaryKey, $itemKeys) {
43 43
             $reorderItemsBindString = implode(',', array_fill(0, count($reorderItems), '?'));
44 44
             foreach (['parent_id', 'depth', 'lft', 'rgt'] as $column) {
45 45
                 $query = '';
Please login to merge, or discard this patch.