@@ -52,16 +52,16 @@ |
||
52 | 52 | |
53 | 53 | private function registerBindings() |
54 | 54 | { |
55 | - $this->app->bind(FinderService::class, function () { |
|
55 | + $this->app->bind(FinderService::class, function() { |
|
56 | 56 | return new FinderService(); |
57 | 57 | }); |
58 | 58 | |
59 | 59 | $this->app->bind( |
60 | 60 | 'Modules\Page\Repositories\PageRepository', |
61 | - function () { |
|
61 | + function() { |
|
62 | 62 | $repository = new EloquentPageRepository(new Page()); |
63 | 63 | |
64 | - if (! Config::get('app.cache')) { |
|
64 | + if (!Config::get('app.cache')) { |
|
65 | 65 | return $repository; |
66 | 66 | } |
67 | 67 |
@@ -35,6 +35,6 @@ |
||
35 | 35 | */ |
36 | 36 | public function allFiles($directory, $hidden = false) |
37 | 37 | { |
38 | - return iterator_to_array($this->filesystem->ignoreDotFiles(! $hidden)->in($directory), false); |
|
38 | + return iterator_to_array($this->filesystem->ignoreDotFiles(!$hidden)->in($directory), false); |
|
39 | 39 | } |
40 | 40 | } |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | |
36 | 36 | $templates = []; |
37 | 37 | |
38 | - foreach ($this->finder->excluding(config('asgard.page.config.template-ignored-directories', []))->allFiles($path . '/views') as $template) { |
|
38 | + foreach ($this->finder->excluding(config('asgard.page.config.template-ignored-directories', []))->allFiles($path.'/views') as $template) { |
|
39 | 39 | $relativePath = $template->getRelativePath(); |
40 | 40 | |
41 | 41 | $templateName = $this->getTemplateName($template); |
42 | 42 | $file = $this->removeExtensionsFromFilename($template); |
43 | 43 | |
44 | 44 | if ($this->hasSubdirectory($relativePath)) { |
45 | - $templates[str_replace('/', '.', $relativePath) . '.' . $file] = $templateName; |
|
45 | + $templates[str_replace('/', '.', $relativePath).'.'.$file] = $templateName; |
|
46 | 46 | } else { |
47 | 47 | $templates[$file] = $templateName; |
48 | 48 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $relativePath = $template->getRelativePath(); |
92 | 92 | $fileName = $this->removeExtensionsFromFilename($template); |
93 | 93 | |
94 | - return $this->hasSubdirectory($relativePath) ? $relativePath . '/' . $fileName : $fileName; |
|
94 | + return $this->hasSubdirectory($relativePath) ? $relativePath.'/'.$fileName : $fileName; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -115,6 +115,6 @@ discard block |
||
115 | 115 | */ |
116 | 116 | private function hasSubdirectory($relativePath) |
117 | 117 | { |
118 | - return ! empty($relativePath); |
|
118 | + return !empty($relativePath); |
|
119 | 119 | } |
120 | 120 | } |