@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function register() |
22 | 22 | { |
23 | - $this->app->singleton('sleeping_owl.breadcrumbs', function () { |
|
23 | + $this->app->singleton('sleeping_owl.breadcrumbs', function() { |
|
24 | 24 | return $this->app->make(\SleepingOwl\Admin\Templates\Breadcrumbs::class); |
25 | 25 | }); |
26 | 26 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $modelForOptions = app($modelForOptions); |
60 | 60 | } |
61 | 61 | |
62 | - if (! ($modelForOptions instanceof Model)) { |
|
62 | + if (!($modelForOptions instanceof Model)) { |
|
63 | 63 | throw new SelectException('Class must be instanced of Illuminate\Database\Eloquent\Model'); |
64 | 64 | } |
65 | 65 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function setFetchColumns($columns) |
107 | 107 | { |
108 | - if (! is_array($columns)) { |
|
108 | + if (!is_array($columns)) { |
|
109 | 109 | $columns = func_get_args(); |
110 | 110 | } |
111 | 111 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | $options = $repository->getQuery(); |
202 | 202 | |
203 | - if ($this->isEmptyRelation() and ! is_null($foreignKey = $this->getForeignKey())) { |
|
203 | + if ($this->isEmptyRelation() and !is_null($foreignKey = $this->getForeignKey())) { |
|
204 | 204 | $relation = $this->getModelAttributeKey(); |
205 | 205 | $model = $this->getModel(); |
206 | 206 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | // call the pre load options query preparer if has be set |
219 | - if (! is_null($preparer = $this->getLoadOptionsQueryPreparer())) { |
|
219 | + if (!is_null($preparer = $this->getLoadOptionsQueryPreparer())) { |
|
220 | 220 | $options = $preparer($this, $options); |
221 | 221 | } |
222 | 222 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | |
231 | 231 | // iterate for all options and redefine it as |
232 | 232 | // list of KEY and TEXT pair |
233 | - $options = array_map(function ($opt) use ($key, $makeDisplay) { |
|
233 | + $options = array_map(function($opt) use ($key, $makeDisplay) { |
|
234 | 234 | // get the KEY and make the display text |
235 | 235 | return [data_get($opt, $key), $makeDisplay($opt)]; |
236 | 236 | }, $options); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | $display = $model->fireDisplay(); |
60 | 60 | |
61 | 61 | if ($display instanceof DisplayTabbed) { |
62 | - $display->getTabs()->each(function ($tab) use ($request) { |
|
62 | + $display->getTabs()->each(function($tab) use ($request) { |
|
63 | 63 | $content = $tab->getContent(); |
64 | 64 | if ($content instanceof DisplayTree) { |
65 | 65 | $content->getRepository()->reorder( |
@@ -24,12 +24,12 @@ |
||
24 | 24 | collect([ |
25 | 25 | Installation\PublishAssets::class, |
26 | 26 | ]) |
27 | - ->map(function ($installer) { |
|
27 | + ->map(function($installer) { |
|
28 | 28 | return new $installer($this, $this->config); |
29 | 29 | }) |
30 | - ->filter(function ($installer) { |
|
31 | - return $this->hasOption('force') ? true : ! $installer->installed(); |
|
32 | - })->each(function ($installer) { |
|
30 | + ->filter(function($installer) { |
|
31 | + return $this->hasOption('force') ? true : !$installer->installed(); |
|
32 | + })->each(function($installer) { |
|
33 | 33 | $installer->install(); |
34 | 34 | $installer->showInfo(); |
35 | 35 | }); |