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