@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function set($filters) |
43 | 43 | { |
44 | - if (! is_array($filters)) { |
|
44 | + if (!is_array($filters)) { |
|
45 | 45 | $filters = func_get_args(); |
46 | 46 | } |
47 | 47 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getActive() |
81 | 81 | { |
82 | - return $this->filters->filter(function (FilterInterface $filter) { |
|
82 | + return $this->filters->filter(function(FilterInterface $filter) { |
|
83 | 83 | return $filter->isActive(); |
84 | 84 | }); |
85 | 85 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function modifyQuery(Builder $query) |
127 | 127 | { |
128 | - $this->getActive()->each(function (FilterInterface $filter) use ($query) { |
|
128 | + $this->getActive()->each(function(FilterInterface $filter) use ($query) { |
|
129 | 129 | $filter->apply($query); |
130 | 130 | }); |
131 | 131 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | public function initialize() |
137 | 137 | { |
138 | - $this->filters->each(function (FilterInterface $filter) { |
|
138 | + $this->filters->each(function(FilterInterface $filter) { |
|
139 | 139 | $filter->initialize(); |
140 | 140 | }); |
141 | 141 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | parent::initialize(); |
72 | 72 | |
73 | 73 | if ($this->getModelConfiguration()->isRestorableModel()) { |
74 | - $this->setApply(function (Builder $q) { |
|
74 | + $this->setApply(function(Builder $q) { |
|
75 | 75 | return $q->withTrashed(); |
76 | 76 | }); |
77 | 77 | } |
@@ -193,11 +193,11 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public function getCollection() |
195 | 195 | { |
196 | - if (! $this->isInitialized()) { |
|
196 | + if (!$this->isInitialized()) { |
|
197 | 197 | throw new \Exception('Display is not initialized'); |
198 | 198 | } |
199 | 199 | |
200 | - if (! is_null($this->collection)) { |
|
200 | + if (!is_null($this->collection)) { |
|
201 | 201 | return $this->collection; |
202 | 202 | } |
203 | 203 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | */ |
80 | 80 | public function getOptions() |
81 | 81 | { |
82 | - if (! is_null($this->getModelForOptions()) && ! is_null($this->getDisplay())) { |
|
82 | + if (!is_null($this->getModelForOptions()) && !is_null($this->getDisplay())) { |
|
83 | 83 | $this->setOptions( |
84 | 84 | $this->loadOptions() |
85 | 85 | ); |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | */ |
77 | 77 | protected function getFormatedDate($date) |
78 | 78 | { |
79 | - if (! is_null($date)) { |
|
80 | - if (! $date instanceof Carbon) { |
|
79 | + if (!is_null($date)) { |
|
80 | + if (!$date instanceof Carbon) { |
|
81 | 81 | $date = Carbon::parse($date); |
82 | 82 | } |
83 | 83 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | public function getValueFromModel() |
94 | 94 | { |
95 | 95 | $value = parent::getValueFromModel(); |
96 | - if (! empty($value)) { |
|
96 | + if (!empty($value)) { |
|
97 | 97 | return $this->parseValue($value); |
98 | 98 | } |
99 | 99 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function setModelAttribute($value) |
127 | 127 | { |
128 | - $value = ! empty($value) |
|
128 | + $value = !empty($value) |
|
129 | 129 | ? Carbon::createFromFormat($this->getPickerFormat(), $value, $this->getTimezone()) |
130 | 130 | ->timezone(config('app.timezone'))->format($this->getFormat()) |
131 | 131 | : null; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $this->setModelForOptions($options); |
53 | 53 | } |
54 | 54 | |
55 | - if (! is_null($title)) { |
|
55 | + if (!is_null($title)) { |
|
56 | 56 | $this->setDisplay($title); |
57 | 57 | } |
58 | 58 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | if ($this->multiple) { |
78 | 78 | $this->setHtmlAttribute('multiple', 'multiple'); |
79 | 79 | |
80 | - if (! in_array($this->operator, ['in', 'not_in'])) { |
|
80 | + if (!in_array($this->operator, ['in', 'not_in'])) { |
|
81 | 81 | $this->setOperator('in'); |
82 | 82 | } |
83 | 83 | } else { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public function getOptions() |
123 | 123 | { |
124 | - if (! is_null($this->getModelForOptions()) && ! is_null($this->getDisplay())) { |
|
124 | + if (!is_null($this->getModelForOptions()) && !is_null($this->getDisplay())) { |
|
125 | 125 | $this->setOptions( |
126 | 126 | $this->loadOptions() |
127 | 127 | ); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $name = $params[0]; |
36 | 36 | } |
37 | 37 | |
38 | - if (! $this->exists($name)) { |
|
38 | + if (!$this->exists($name)) { |
|
39 | 39 | return ''; |
40 | 40 | } |
41 | 41 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function renderIfExistsArray($name, $params = []) |
63 | 63 | { |
64 | - if (! $this->exists($name)) { |
|
64 | + if (!$this->exists($name)) { |
|
65 | 65 | return ''; |
66 | 66 | } |
67 | 67 |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | { |
25 | 25 | $aliases = $this->getValidAliases(); |
26 | 26 | |
27 | - $aliases = $aliases->filter(function (Alias $item) { |
|
28 | - return ! collect([ |
|
27 | + $aliases = $aliases->filter(function(Alias $item) { |
|
28 | + return !collect([ |
|
29 | 29 | 'MessageStack', |
30 | 30 | 'AdminSection', |
31 | 31 | 'AdminTemplate', |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ])->search($item->getAlias()); |
41 | 41 | }); |
42 | 42 | |
43 | - return $aliases->groupBy(function (Alias $alias) { |
|
43 | + return $aliases->groupBy(function(Alias $alias) { |
|
44 | 44 | return $alias->getExtendsNamespace(); |
45 | 45 | }); |
46 | 46 | } |
@@ -31,11 +31,11 @@ |
||
31 | 31 | Installation\CreateRoutesFile::class, |
32 | 32 | Installation\CreateSectionServiceProvider::class, |
33 | 33 | Installation\CreatePublicDirectory::class, |
34 | - ])->map(function ($installer) { |
|
34 | + ])->map(function($installer) { |
|
35 | 35 | return new $installer($this, $this->config); |
36 | - })->filter(function (Installator $installer) { |
|
37 | - return $this->option('force') ? true : ! $installer->installed(); |
|
38 | - })->each(function (Installator $installer) { |
|
36 | + })->filter(function(Installator $installer) { |
|
37 | + return $this->option('force') ? true : !$installer->installed(); |
|
38 | + })->each(function(Installator $installer) { |
|
39 | 39 | $installer->install(); |
40 | 40 | $installer->showInfo(); |
41 | 41 | }); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function register() |
23 | 23 | { |
24 | - $this->app->singleton('sleeping_owl.breadcrumbs', function () { |
|
24 | + $this->app->singleton('sleeping_owl.breadcrumbs', function() { |
|
25 | 25 | return $this->app->make(Breadcrumbs::class); |
26 | 26 | }); |
27 | 27 | } |