@@ -115,6 +115,9 @@ |
||
| 115 | 115 | $this->_em->flush(); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param ThemeEntity $entity |
|
| 120 | + */ |
|
| 118 | 121 | public function persistAndFlush($entity) |
| 119 | 122 | { |
| 120 | 123 | $this->_em->persist($entity); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | $result = $query->getResult(); |
| 92 | 92 | $themesArray = []; |
| 93 | 93 | foreach ($result as $theme) { |
| 94 | - $themesArray[$theme->getName()]= $theme->toArray(); |
|
| 94 | + $themesArray[$theme->getName()] = $theme->toArray(); |
|
| 95 | 95 | $kernel = $this->getKernel(); // allow to throw exception outside the try/catch block |
| 96 | 96 | try { |
| 97 | 97 | $themeBundle = $kernel->getTheme($theme['name']); |