@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | public function getFunctions() |
| 26 | 26 | { |
| 27 | 27 | return [ |
| 28 | - new TwigFunction('showConversation', [$this, 'showConversation'], [ |
|
| 29 | - 'is_safe' => ['html'], |
|
| 28 | + new TwigFunction('showConversation', [ $this, 'showConversation' ], [ |
|
| 29 | + 'is_safe' => [ 'html' ], |
|
| 30 | 30 | 'needs_environment' => true, |
| 31 | 31 | ]), |
| 32 | 32 | ]; |
@@ -42,6 +42,6 @@ discard block |
||
| 42 | 42 | $messages = $this->em->getRepository($this->messageEntity) |
| 43 | 43 | ->getMessagesPublishedByReferring($referring, $orderBy, $limit); |
| 44 | 44 | |
| 45 | - return $env->render($template, ['messages' => $messages]); |
|
| 45 | + return $env->render($template, [ 'messages' => $messages ]); |
|
| 46 | 46 | } |
| 47 | 47 | } |