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