@@ -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 | } |
@@ -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']); |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | protected function registerCommands() |
65 | 65 | { |
66 | 66 | if ($this->app->runningInConsole()) { |
67 | - if (! class_exists('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider') && |
|
68 | - ! $this->app->resolved('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider')) { |
|
67 | + if (!class_exists('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider') && |
|
68 | + !$this->app->resolved('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider')) { |
|
69 | 69 | $this->app->register('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider'); |
70 | 70 | } |
71 | 71 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $localViewFactory = $this->createLocalViewFactory(); |
82 | 82 | $this->app->singleton( |
83 | 83 | 'command.sleepingowl.ide.generate', |
84 | - function ($app) use ($localViewFactory) { |
|
84 | + function($app) use ($localViewFactory) { |
|
85 | 85 | return new \SleepingOwl\Admin\Console\Commands\GeneratorCommand($app['config'], $app['files'], $localViewFactory); |
86 | 86 | } |
87 | 87 | ); |