@@ -37,14 +37,14 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $app = $this->app; |
| 39 | 39 | |
| 40 | - $app->bind('email.compiler', function () use ($app) { |
|
| 40 | + $app->bind('email.compiler', function() use ($app) { |
|
| 41 | 41 | $cache = $app['config']['view.compiled']; |
| 42 | 42 | $css = $app['config']['view.emails.css_files']; |
| 43 | 43 | |
| 44 | 44 | return new Compiler($app['files'], $cache, $css); |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | - $app['view']->addExtension('email.php', 'email', function () use ($app) { |
|
| 47 | + $app['view']->addExtension('email.php', 'email', function() use ($app) { |
|
| 48 | 48 | return new CompilerEngine($app['email.compiler']); |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -37,14 +37,16 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $app = $this->app; |
| 39 | 39 | |
| 40 | - $app->bind('email.compiler', function () use ($app) { |
|
| 40 | + $app->bind('email.compiler', function () use ($app) |
|
| 41 | + { |
|
| 41 | 42 | $cache = $app['config']['view.compiled']; |
| 42 | 43 | $css = $app['config']['view.emails.css_files']; |
| 43 | 44 | |
| 44 | 45 | return new Compiler($app['files'], $cache, $css); |
| 45 | 46 | }); |
| 46 | 47 | |
| 47 | - $app['view']->addExtension('email.php', 'email', function () use ($app) { |
|
| 48 | + $app['view']->addExtension('email.php', 'email', function () use ($app) |
|
| 49 | + { |
|
| 48 | 50 | return new CompilerEngine($app['email.compiler']); |
| 49 | 51 | }); |
| 50 | 52 | } |
@@ -41,7 +41,8 @@ discard block |
||
| 41 | 41 | protected function getCssFilesContent(array $files) |
| 42 | 42 | { |
| 43 | 43 | $css = ''; |
| 44 | - foreach ($files as $file) { |
|
| 44 | + foreach ($files as $file) |
|
| 45 | + { |
|
| 45 | 46 | $css .= $this->files->get($file); |
| 46 | 47 | } |
| 47 | 48 | |
@@ -56,7 +57,8 @@ discard block |
||
| 56 | 57 | */ |
| 57 | 58 | public function compileString($value) |
| 58 | 59 | { |
| 59 | - if (is_null(static::$cssFilesContent)) { |
|
| 60 | + if (is_null(static::$cssFilesContent)) |
|
| 61 | + { |
|
| 60 | 62 | static::$cssFilesContent = $this->getCssFilesContent($this->cssFiles); |
| 61 | 63 | } |
| 62 | 64 | |