@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function getUrl() |
72 | 72 | { |
73 | - if (! $this->url) { |
|
73 | + if (!$this->url) { |
|
74 | 74 | return request()->url(); |
75 | 75 | } |
76 | 76 |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function setOrderable($orderable = true) |
77 | 77 | { |
78 | - if ($orderable !== false && ! $orderable instanceof OrderByClauseInterface) { |
|
79 | - if (! is_string($orderable) && ! $orderable instanceof Closure) { |
|
78 | + if ($orderable !== false && !$orderable instanceof OrderByClauseInterface) { |
|
79 | + if (!is_string($orderable) && !$orderable instanceof Closure) { |
|
80 | 80 | $orderable = $this->getName(); |
81 | 81 | } |
82 | 82 | } |
@@ -144,11 +144,11 @@ discard block |
||
144 | 144 | if ($instance === null) { |
145 | 145 | $instance = collect(); |
146 | 146 | } |
147 | - } elseif (! is_null($instance)) { |
|
147 | + } elseif (!is_null($instance)) { |
|
148 | 148 | $instance = $instance->getAttribute($part); |
149 | 149 | } |
150 | 150 | |
151 | - if (! empty($parts) && ! is_null($instance)) { |
|
151 | + if (!empty($parts) && !is_null($instance)) { |
|
152 | 152 | return $this->getValueFromObject($instance, implode('.', $parts)); |
153 | 153 | } |
154 | 154 |
@@ -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 | ); |
@@ -75,15 +75,15 @@ |
||
75 | 75 | { |
76 | 76 | $this->content = $content; |
77 | 77 | |
78 | - if (! is_null($label)) { |
|
78 | + if (!is_null($label)) { |
|
79 | 79 | $this->setLabel($label); |
80 | 80 | } |
81 | 81 | |
82 | - if (! is_null($icon)) { |
|
82 | + if (!is_null($icon)) { |
|
83 | 83 | $this->setIcon($icon); |
84 | 84 | } |
85 | 85 | |
86 | - if (! is_null($badge)) { |
|
86 | + if (!is_null($badge)) { |
|
87 | 87 | $this->setBadge($badge); |
88 | 88 | } |
89 | 89 |
@@ -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 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $this->repository = $app->make(RepositoryInterface::class); |
117 | 117 | $this->repository->setClass($class); |
118 | - if (! $this->alias) { |
|
118 | + if (!$this->alias) { |
|
119 | 119 | $this->setDefaultAlias(); |
120 | 120 | } |
121 | 121 | } |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | */ |
305 | 305 | public function can($action, Model $model) |
306 | 306 | { |
307 | - if (! $this->checkAccess) { |
|
307 | + if (!$this->checkAccess) { |
|
308 | 308 | return true; |
309 | 309 | } |
310 | 310 | |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | { |
339 | 339 | $controller = $this->getControllerClass(); |
340 | 340 | |
341 | - return ! is_null($controller) && class_exists($controller); |
|
341 | + return !is_null($controller) && class_exists($controller); |
|
342 | 342 | } |
343 | 343 | |
344 | 344 | /** |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | $page->setPriority($priority); |
518 | 518 | |
519 | 519 | if ($badge) { |
520 | - if (! ($badge instanceof BadgeInterface)) { |
|
520 | + if (!($badge instanceof BadgeInterface)) { |
|
521 | 521 | $badge = new Badge($badge); |
522 | 522 | } |
523 | 523 | |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | */ |
559 | 559 | public function fireEvent($event, $halt = true, Model $model = null, ...$payload) |
560 | 560 | { |
561 | - if (! isset(self::$dispatcher)) { |
|
561 | + if (!isset(self::$dispatcher)) { |
|
562 | 562 | return true; |
563 | 563 | } |
564 | 564 |