We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -57,7 +57,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -68,20 +68,20 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |