@@ -26,7 +26,7 @@ discard block |
||
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 |
||
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(); |