Completed
Pull Request — 2.1 (#1168)
by Greg
09:45
created
Bundle/ContentBundle/EventListener/AttachArticleToContentRouteListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $article = $articleEvent->getArticle();
27 27
         $route = $articleEvent->getArticle()->getRoute();
28 28
 
29
-        if($route && RouteInterface::TYPE_CONTENT === $route->getType()) {
29
+        if ($route && RouteInterface::TYPE_CONTENT === $route->getType()) {
30 30
             $route->setContent($article);
31 31
             $this->routeRepository->persist($route);
32 32
             $this->routeRepository->flush();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         $route = $articleEvent->getArticle()->getRoute();
41 41
 
42
-        if($route && RouteInterface::TYPE_CONTENT === $route->getType()) {
42
+        if ($route && RouteInterface::TYPE_CONTENT === $route->getType()) {
43 43
             $route->setContent(null);
44 44
             $this->routeRepository->persist($route);
45 45
             $this->routeRepository->flush();
Please login to merge, or discard this patch.