@@ -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 | }); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | private function createLocalViewFactory() |
52 | 52 | { |
53 | 53 | $resolver = new EngineResolver(); |
54 | - $resolver->register('php', function () { |
|
54 | + $resolver->register('php', function() { |
|
55 | 55 | return new PhpEngine(); |
56 | 56 | }); |
57 | 57 | $finder = new FileViewFinder($this->app['files'], [__DIR__.'/../../resources/views']); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $localViewFactory = $this->createLocalViewFactory(); |
77 | 77 | $this->app->singleton( |
78 | 78 | 'command.sleepingowl.ide.generate', |
79 | - function ($app) use ($localViewFactory) { |
|
79 | + function($app) use ($localViewFactory) { |
|
80 | 80 | return new \SleepingOwl\Admin\Console\Commands\GeneratorCommand($app['config'], $app['files'], $localViewFactory); |
81 | 81 | } |
82 | 82 | ); |
@@ -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 | |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | */ |
337 | 337 | public function hasCustomControllerClass() |
338 | 338 | { |
339 | - return ! is_null($controller = $this->getControllerClass()) && class_exists($controller); |
|
339 | + return !is_null($controller = $this->getControllerClass()) && class_exists($controller); |
|
340 | 340 | } |
341 | 341 | |
342 | 342 | /** |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | $page->setPriority($priority); |
516 | 516 | |
517 | 517 | if ($badge) { |
518 | - if (! ($badge instanceof BadgeInterface)) { |
|
518 | + if (!($badge instanceof BadgeInterface)) { |
|
519 | 519 | $badge = new Badge($badge); |
520 | 520 | } |
521 | 521 | |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | */ |
557 | 557 | public function fireEvent($event, $halt = true, Model $model = null, ...$payload) |
558 | 558 | { |
559 | - if (! isset(self::$dispatcher)) { |
|
559 | + if (!isset(self::$dispatcher)) { |
|
560 | 560 | return true; |
561 | 561 | } |
562 | 562 |