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 — optimize-queries ( e16a2f...539379 )
by Pedro
15:02
created
tests/BaseTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             (array) config('backpack.base.middleware_key', 'admin'),
23 23
             'prefix'     => config('backpack.base.route_prefix', 'admin'),
24 24
         ],
25
-            function () {
25
+            function() {
26 26
                 Route::crud('users', 'Backpack\CRUD\Tests\Unit\Http\Controllers\UserCrudController');
27 27
             }
28 28
         );
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Query.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getQuery(string $query)
66 66
     {
67
-        abort_if(! $this->hasQuery($query), 500, 'Trying to get an unexisting query.');
67
+        abort_if(!$this->hasQuery($query), 500, 'Trying to get an unexisting query.');
68 68
 
69 69
         return $this->ranQueries[$query];
70 70
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function customOrderBy($column, $columnDirection = 'asc')
150 150
     {
151
-        if (! isset($column['orderLogic'])) {
151
+        if (!isset($column['orderLogic'])) {
152 152
             return $this->query;
153 153
         }
154 154
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function getTotalQueryCount()
240 240
     {
241
-        if (! $this->getOperationSetting('showEntryCount')) {
241
+        if (!$this->getOperationSetting('showEntryCount')) {
242 242
             return 0;
243 243
         }
244 244
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     private function getCountFromQuery(Builder $query)
279 279
     {
280
-        if (! $this->driverIsSql()) {
280
+        if (!$this->driverIsSql()) {
281 281
             return $query->count();
282 282
         }
283 283
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         $expressionColumns = [];
297 297
 
298 298
         foreach ($crudQuery->columns as $column) {
299
-            if (! is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
299
+            if (!is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
300 300
                 $expressionColumns[] = $column;
301 301
             }
302 302
         }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Read.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getEntry($id)
59 59
     {
60
-        if (! $this->entry) {
60
+        if (!$this->entry) {
61 61
             $this->eagerLoadRelationships('fields');
62 62
             $this->entry = $this->query->findOrFail($id);
63 63
             $this->entry = $this->entry->withFakes();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getEntryWithLocale($id)
77 77
     {
78
-        if (! $this->entry) {
78
+        if (!$this->entry) {
79 79
             $this->entry = $this->getEntry($id);
80 80
         }
81 81
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function enableDetailsRow()
212 212
     {
213
-        if (! backpack_pro()) {
213
+        if (!backpack_pro()) {
214 214
             throw new BackpackProRequiredException('Details row');
215 215
         }
216 216
 
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                 // we will apply the same labels as the values to the menu if developer didn't
310 310
                 $this->abortIfInvalidPageLength($menu[0]);
311 311
 
312
-                if (! isset($menu[1]) || ! is_array($menu[1])) {
312
+                if (!isset($menu[1]) || !is_array($menu[1])) {
313 313
                     $menu[1] = $menu[0];
314 314
                 }
315 315
             } else {
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
      */
398 398
     public function enableExportButtons()
399 399
     {
400
-        if (! backpack_pro()) {
400
+        if (!backpack_pro()) {
401 401
             throw new BackpackProRequiredException('Export buttons');
402 402
         }
403 403
 
Please login to merge, or discard this patch.
src/BackpackServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,20 +68,20 @@  discard block
 block discarded – undo
68 68
         include_once __DIR__.'/macros.php';
69 69
 
70 70
         // Bind the CrudPanel object to Laravel's service container
71
-        $this->app->scoped('crud', function ($app) {
71
+        $this->app->scoped('crud', function($app) {
72 72
             return new CrudPanel();
73 73
         });
74 74
 
75
-        $this->app->scoped('DatabaseSchema', function ($app) {
75
+        $this->app->scoped('DatabaseSchema', function($app) {
76 76
             return new DatabaseSchema();
77 77
         });
78 78
 
79
-        $this->app->singleton('BackpackViewNamespaces', function ($app) {
79
+        $this->app->singleton('BackpackViewNamespaces', function($app) {
80 80
             return new ViewNamespaces();
81 81
         });
82 82
 
83 83
         // Bind the widgets collection object to Laravel's service container
84
-        $this->app->singleton('widgets', function ($app) {
84
+        $this->app->singleton('widgets', function($app) {
85 85
             return new Collection();
86 86
         });
87 87
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $middleware_key = config('backpack.base.middleware_key');
98 98
         $middleware_class = config('backpack.base.middleware_class');
99 99
 
100
-        if (! is_array($middleware_class)) {
100
+        if (!is_array($middleware_class)) {
101 101
             $router->pushMiddlewareToGroup($middleware_key, $middleware_class);
102 102
 
103 103
             return;
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         $operationConfigs = scandir(__DIR__.'/config/backpack/operations/');
214 214
         $operationConfigs = array_diff($operationConfigs, ['.', '..']);
215 215
 
216
-        if (! count($operationConfigs)) {
216
+        if (!count($operationConfigs)) {
217 217
             return;
218 218
         }
219 219
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
     private function registerQueryCacheEvents(): void
283 283
     {
284
-        DB::listen(function (QueryExecuted $q) {
284
+        DB::listen(function(QueryExecuted $q) {
285 285
             if ($q->connection->hasModifiedRecords()) {
286 286
                 app('crud')->flushQueryCache();
287 287
             }
Please login to merge, or discard this patch.