Completed
Push — 2.0 ( b08834...8cb3f2 )
by Nicolas
06:12
created
Providers/PageServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,16 +52,16 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Services/FinderService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Composers/TemplateViewComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
115 115
      */
116 116
     private function hasSubdirectory($relativePath)
117 117
     {
118
-        return ! empty($relativePath);
118
+        return !empty($relativePath);
119 119
     }
120 120
 }
Please login to merge, or discard this patch.