@@ -161,7 +161,9 @@ |
||
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | if (!empty($components)) { |
| 164 | - if ($snippets) $snippets .= PHP_EOL; |
|
| 164 | + if ($snippets) { |
|
| 165 | + $snippets .= PHP_EOL; |
|
| 166 | + } |
|
| 165 | 167 | $snippets .= $wiring->generate($twig, $components); |
| 166 | 168 | $snippets .= $wiring->generateExtend($twig, $components); |
| 167 | 169 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function register(Container $app) |
| 15 | 15 | { |
| 16 | - $app['eccube.di'] = function (Container $app) { |
|
| 16 | + $app['eccube.di'] = function(Container $app) { |
|
| 17 | 17 | $di = new Di( |
| 18 | 18 | $app['eccube.di.generator.dir'], |
| 19 | 19 | $app['eccube.di.generator.class'], |