@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | public function __construct(ArticleCommentFactoryInterface $decoratedFactory, TokenStorageInterface $tokenStorage) |
| 19 | 19 | { |
| 20 | 20 | $this->decoratedFactory = $decoratedFactory; |
| 21 | - $this->shopUser = $tokenStorage->getToken()?$tokenStorage->getToken()->getUser():null; |
|
| 21 | + $this->shopUser = $tokenStorage->getToken() ? $tokenStorage->getToken()->getUser() : null; |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | /** |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** @var \Odiseo\SyliusBlogPlugin\Model\ArticleCommentInterface $articleComment */ |
| 38 | 38 | $articleComment = $this->decoratedFactory->createNewWithArticleOrComment($articleId, $commentId); |
| 39 | 39 | |
| 40 | - if($this->shopUser instanceof ShopUserInterface) { |
|
| 40 | + if ($this->shopUser instanceof ShopUserInterface) { |
|
| 41 | 41 | $articleComment->setAuthor($this->shopUser); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function getUsername() |
| 38 | 38 | { |
| 39 | - if($this->getAuthor()) { |
|
| 39 | + if ($this->getAuthor()) { |
|
| 40 | 40 | return $this->getAuthor()->getUsername(); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** @var ChannelInterface $channel */ |
| 98 | 98 | foreach ($channels as $channel) { |
| 99 | 99 | $imageIndex = 1; |
| 100 | - for ($i=1; $i <= $options['articles_per_channel']; $i++) { |
|
| 100 | + for ($i = 1; $i <= $options['articles_per_channel']; $i++) { |
|
| 101 | 101 | /** @var ArticleInterface $article */ |
| 102 | 102 | $article = $this->articleFactory->createNew(); |
| 103 | 103 | |