@@ -25,7 +25,7 @@ |
||
25 | 25 | $entity = $args->getEntity(); |
26 | 26 | $token = $this->tokenStorage->getToken(); |
27 | 27 | |
28 | - if($entity instanceOf ArticleInterface && $token) { |
|
28 | + if ($entity instanceOf ArticleInterface && $token) { |
|
29 | 29 | $user = $token->getUser(); |
30 | 30 | |
31 | 31 | if ($user instanceof AdminUserInterface) { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $this->decoratedFactory = $decoratedFactory; |
21 | 21 | |
22 | 22 | $token = $tokenStorage->getToken(); |
23 | - $this->shopUser = $token?$token->getUser():null; |
|
23 | + $this->shopUser = $token ? $token->getUser() : null; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** @var \Odiseo\SyliusBlogPlugin\Model\ArticleCommentInterface $articleComment */ |
40 | 40 | $articleComment = $this->decoratedFactory->createNewWithArticleOrComment($articleId, $commentId); |
41 | 41 | |
42 | - if($this->shopUser instanceof ShopUserInterface) { |
|
42 | + if ($this->shopUser instanceof ShopUserInterface) { |
|
43 | 43 | $articleComment->setAuthor($this->shopUser); |
44 | 44 | } |
45 | 45 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | public function getUsername() |
38 | 38 | { |
39 | 39 | $author = $this->getAuthor(); |
40 | - if($author) { |
|
40 | + if ($author) { |
|
41 | 41 | return $author->getUsername(); |
42 | 42 | } |
43 | 43 |