We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | parent::getEnvironmentSetUp($app); |
34 | 34 | |
35 | - $app->scoped('crud', function () { |
|
35 | + $app->scoped('crud', function() { |
|
36 | 36 | return new CrudPanel(); |
37 | 37 | }); |
38 | 38 | } |
@@ -851,7 +851,7 @@ |
||
851 | 851 | public function testSetDoctrineTypesMapping() |
852 | 852 | { |
853 | 853 | $this->crudPanel->setModel(ColumnType::class); |
854 | - if (! method_exists($this->crudPanel->getModel()->getConnection(), 'getDoctrineConnection')) { |
|
854 | + if (!method_exists($this->crudPanel->getModel()->getConnection(), 'getDoctrineConnection')) { |
|
855 | 855 | $this->markTestSkipped('This test is only for Laravel 10, Laravel 11 does not have dbal as a dependency anymore'); |
856 | 856 | } |
857 | 857 |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | // |
35 | 35 | // It's done inside a middleware closure in order to have |
36 | 36 | // the complete request inside the CrudPanel object. |
37 | - $this->middleware(function ($request, $next) { |
|
38 | - if (! CrudManager::hasCrudController(get_class($this))) { |
|
37 | + $this->middleware(function($request, $next) { |
|
38 | + if (!CrudManager::hasCrudController(get_class($this))) { |
|
39 | 39 | $this->initializeCrudController($request); |
40 | 40 | |
41 | 41 | return $next($request); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $crudPanel = $crudPanel->initialize(get_class($this), $request); |
57 | 57 | |
58 | - if (! $crudPanel->isInitialized()) { |
|
58 | + if (!$crudPanel->isInitialized()) { |
|
59 | 59 | $crudPanel->initialized = true; |
60 | 60 | |
61 | 61 | $this->setupCrudController($crudPanel->getCurrentOperation()); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | protected function setupConfigurationForCurrentOperation(?string $operation = null) |
127 | 127 | { |
128 | 128 | $operationName = $operation ?? $this->crud->getCurrentOperation(); |
129 | - if (! $operationName) { |
|
129 | + if (!$operationName) { |
|
130 | 130 | return; |
131 | 131 | } |
132 | 132 | $setupClassName = 'setup'.Str::studly($operationName).'Operation'; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $this->storeDatatableConfig(); |
36 | 36 | } |
37 | 37 | |
38 | - if (! $this->crud->has('list.datatablesUrl')) { |
|
38 | + if (!$this->crud->has('list.datatablesUrl')) { |
|
39 | 39 | $this->crud->set('list.datatablesUrl', $this->crud->getRoute()); |
40 | 40 | } |
41 | 41 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | private function storeDatatableConfig() |
60 | 60 | { |
61 | - if (! $this->configure) { |
|
61 | + if (!$this->configure) { |
|
62 | 62 | return; |
63 | 63 | } |
64 | 64 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | $tableId = request('datatable_id'); |
92 | 92 | |
93 | - if (! $tableId) { |
|
93 | + if (!$tableId) { |
|
94 | 94 | \Log::debug('Missing datatable_id in request parameters'); |
95 | 95 | |
96 | 96 | return false; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $cacheKey = 'datatable_config_'.$tableId; |
100 | 100 | $cachedData = Cache::get($cacheKey); |
101 | 101 | |
102 | - if (! $cachedData) { |
|
102 | + if (!$cachedData) { |
|
103 | 103 | return false; |
104 | 104 | } |
105 | 105 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $crud->setOperation($operation); |
46 | 46 | |
47 | 47 | $primaryControllerRequest = $this->cruds[array_key_first($this->cruds)]->getRequest(); |
48 | - if (! $crud->isInitialized()) { |
|
48 | + if (!$crud->isInitialized()) { |
|
49 | 49 | self::setActiveController($controller::class); |
50 | 50 | $controller->initializeCrudController($primaryControllerRequest, $crud); |
51 | 51 | self::unsetActiveController(); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | public function getControllerCrud(string $controller): CrudPanel |
70 | 70 | { |
71 | - if (! isset($this->cruds[$controller])) { |
|
71 | + if (!isset($this->cruds[$controller])) { |
|
72 | 72 | return $this->crudFromController($this->getActiveController() ?? $this->requestController ?? $controller); |
73 | 73 | } |
74 | 74 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | $cruds = self::getCruds(); |
124 | 124 | |
125 | - if (! empty($cruds)) { |
|
125 | + if (!empty($cruds)) { |
|
126 | 126 | $crudPanel = reset($cruds); |
127 | 127 | |
128 | 128 | return $crudPanel; |