@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @var null|string |
| 56 | 56 | */ |
| 57 | - public null|string $template; |
|
| 57 | + public null | string $template; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Contains the title of the view. |
@@ -172,30 +172,30 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | $container = new Container(); |
| 174 | 174 | |
| 175 | - $container->singleton('files', function () { |
|
| 175 | + $container->singleton('files', function() { |
|
| 176 | 176 | return new Filesystem(); |
| 177 | 177 | }); |
| 178 | 178 | |
| 179 | - $container->singleton('view.finder', function ($app) use ($viewPaths) { |
|
| 179 | + $container->singleton('view.finder', function($app) use ($viewPaths) { |
|
| 180 | 180 | return new FileViewFinder($app['files'], $viewPaths); |
| 181 | 181 | }); |
| 182 | 182 | |
| 183 | - $container->singleton('blade.compiler', function ($app) use ($cachePaths) { |
|
| 183 | + $container->singleton('blade.compiler', function($app) use ($cachePaths) { |
|
| 184 | 184 | return new BladeCompiler($app['files'], $cachePaths); |
| 185 | 185 | }); |
| 186 | 186 | |
| 187 | - $container->singleton('view.engine.resolver', function ($app) { |
|
| 187 | + $container->singleton('view.engine.resolver', function($app) { |
|
| 188 | 188 | $resolver = new EngineResolver(); |
| 189 | 189 | |
| 190 | 190 | // Register Blade engine |
| 191 | - $resolver->register('blade', function () use ($app) { |
|
| 191 | + $resolver->register('blade', function() use ($app) { |
|
| 192 | 192 | return new CompilerEngine($app['blade.compiler']); |
| 193 | 193 | }); |
| 194 | 194 | |
| 195 | 195 | return $resolver; |
| 196 | 196 | }); |
| 197 | 197 | |
| 198 | - $container->singleton('view', function ($app) { |
|
| 198 | + $container->singleton('view', function($app) { |
|
| 199 | 199 | $resolver = $app['view.engine.resolver']; |
| 200 | 200 | $finder = $app['view.finder']; |
| 201 | 201 | $dispatcher = new Dispatcher($app); |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * @param array|string $path |
| 236 | 236 | * @return void |
| 237 | 237 | */ |
| 238 | - public function setTemplatesPath(array|string $path): void |
|
| 238 | + public function setTemplatesPath(array | string $path): void |
|
| 239 | 239 | { |
| 240 | 240 | if (is_array($path)) { |
| 241 | 241 | self::$templatesPath = array_merge($path, self::$templatesPath); |