Passed
Branch master (62ccf5)
by René
07:27
created
Category
src/ViewServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function registerEngineResolver()
45 45
     {
46
-        $this->app->singleton('view.engine.resolver', function () {
46
+        $this->app->singleton('view.engine.resolver', function() {
47 47
             $resolver = new EngineResolver;
48 48
 
49 49
             // Next we will register the various engines with the resolver so that the
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function registerPhpEngine($resolver)
67 67
     {
68
-        $resolver->register('php', function () {
68
+        $resolver->register('php', function() {
69 69
             return new PhpEngine;
70 70
         });
71 71
     }
@@ -83,13 +83,13 @@  discard block
 block discarded – undo
83 83
         // The Compiler engine requires an instance of the CompilerInterface, which in
84 84
         // this case will be the Blade compiler, so we'll first create the compiler
85 85
         // instance to pass into the engine so it can compile the views properly.
86
-        $app->singleton('blade.compiler', function ($app) {
86
+        $app->singleton('blade.compiler', function($app) {
87 87
             $cache = $app['config']['view.compiled'];
88 88
 
89 89
             return new BladeCompiler($app['files'], $cache);
90 90
         });
91 91
 
92
-        $resolver->register('blade', function () use ($app) {
92
+        $resolver->register('blade', function() use ($app) {
93 93
             return new CompilerEngine($app['blade.compiler']);
94 94
         });
95 95
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function registerViewFinder()
103 103
     {
104
-        $this->app->bind('view.finder', function ($app) {
104
+        $this->app->bind('view.finder', function($app) {
105 105
             $paths = $app['config']['view.paths'];
106 106
 
107 107
             return new FileViewFinder($app['files'], $paths);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function registerFactory()
117 117
     {
118
-        $this->app->singleton('view', function ($app) {
118
+        $this->app->singleton('view', function($app) {
119 119
             // Next we need to grab the engine resolver instance that will be used by the
120 120
             // environment. The resolver will be used by an environment to get each of
121 121
             // the various engine implementations such as plain PHP or Blade engine.
Please login to merge, or discard this patch.
src/FileViewFinder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             throw new InvalidArgumentException("View [$name] has an invalid name.");
110 110
         }
111 111
 
112
-        if (! isset($this->hints[$segments[0]])) {
112
+        if (!isset($this->hints[$segments[0]])) {
113 113
             throw new InvalidArgumentException("No hint path defined for [{$segments[0]}].");
114 114
         }
115 115
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     protected function getPossibleViewFiles($name)
152 152
     {
153
-        return array_map(function ($extension) use ($name) {
153
+        return array_map(function($extension) use ($name) {
154 154
             return str_replace('.', '/', $name).'.'.$extension;
155 155
         }, $this->extensions);
156 156
     }
Please login to merge, or discard this patch.