Completed
Push — master ( ac16a1...0cb3c4 )
by Dev
14:45
created
src/Admin/ConversationAdmin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected function configureFormFields(FormMapper $formMapper)
23 23
     {
24
-        $formMapper->with('admin.conversation.label.conversation', ['class' => 'col-md-8'])
24
+        $formMapper->with('admin.conversation.label.conversation', [ 'class' => 'col-md-8' ])
25 25
             ->add('content', TextareaType::class, [
26
-                'attr' => ['rows' => 6],
26
+                'attr' => [ 'rows' => 6 ],
27 27
                 'label' => 'admin.conversation.content.label',
28 28
             ])
29 29
             ->add('referring', TextType::class, [
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             ])
35 35
             ->end();
36 36
 
37
-        $formMapper->with('admin.conversation.label.author', ['class' => 'col-md-4'])
37
+        $formMapper->with('admin.conversation.label.author', [ 'class' => 'col-md-4' ])
38 38
             ->add('authorEmail', null, [
39 39
                 'label' => 'admin.conversation.authorEmail.label',
40 40
             ])
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             ])
52 52
             ->end();
53 53
 
54
-        $formMapper->with('admin.conversation.label.publishedAt', ['class' => 'col-md-4'])
54
+        $formMapper->with('admin.conversation.label.publishedAt', [ 'class' => 'col-md-4' ])
55 55
             ->add('publishedAt', DateTimePickerType::class, [
56 56
                 'required' => false,
57 57
                 'label' => '',
Please login to merge, or discard this patch.
src/Twig/AppExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function getFunctions()
26 26
     {
27 27
         return [
28
-            new TwigFunction('listMessages', [$this, 'listMessages'], [
29
-                'is_safe' => ['html'],
28
+            new TwigFunction('listMessages', [ $this, 'listMessages' ], [
29
+                'is_safe' => [ 'html' ],
30 30
                 'needs_environment' => true,
31 31
             ]),
32 32
         ];
@@ -42,6 +42,6 @@  discard block
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Repository/MessageRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             ->andWhere('m.publishedAt is NOT NULL')
22 22
             ->andWhere('m.referring <=  :referring')
23 23
             ->setParameter('referring', $referring)
24
-            ->orderBy('m.'.$orderBy[0], $orderBy[1])
24
+            ->orderBy('m.'.$orderBy[ 0 ], $orderBy[ 1 ])
25 25
             ->getQuery();
26 26
 
27 27
         return $q->getResult();
Please login to merge, or discard this patch.
src/Form/MessageForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         $form = $this->initForm();
23 23
 
24 24
         if (!isset($user) || !$this->getUser()) {
25
-            $form->add('authorEmail', EmailType::class, ['constraints' => $this->getAuthorEmailConstraints()]);
26
-            $form->add('authorName', null, ['constraints' => $this->getAuthorNameConstraints()]);
25
+            $form->add('authorEmail', EmailType::class, [ 'constraints' => $this->getAuthorEmailConstraints() ]);
26
+            $form->add('authorName', null, [ 'constraints' => $this->getAuthorNameConstraints() ]);
27 27
         }
28 28
 
29 29
         $form->add('content', TextareaType::class);
Please login to merge, or discard this patch.