@@ -21,8 +21,8 @@ |
||
21 | 21 | { |
22 | 22 | $form = $this->initForm(); |
23 | 23 | |
24 | - $form->add('authorEmail', EmailType::class, ['constraints' => $this->getAuthorEmailConstraints()]); |
|
25 | - $form->add('authorName', null, ['constraints' => $this->getAuthorNameConstraints()]); |
|
24 | + $form->add('authorEmail', EmailType::class, [ 'constraints' => $this->getAuthorEmailConstraints() ]); |
|
25 | + $form->add('authorName', null, [ 'constraints' => $this->getAuthorNameConstraints() ]); |
|
26 | 26 | |
27 | 27 | return $form; |
28 | 28 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | // sinon, passer l'id dans la session plutôt que dans la requête |
102 | 102 | } |
103 | 103 | |
104 | - $form = $this->formFactory->createBuilder(FormType::class, $this->message, []); |
|
104 | + $form = $this->formFactory->createBuilder(FormType::class, $this->message, [ ]); |
|
105 | 105 | |
106 | 106 | $form->setAction($this->router->generate('piedweb_cms_conversation', [ |
107 | 107 | 'type' => $this->getType(), |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | public function getCurrentStep(): FormBuilderInterface |
117 | 117 | { |
118 | - $currentStepMethod = 'getStep'.self::$step[$this->getStep()]; |
|
118 | + $currentStepMethod = 'getStep'.self::$step[ $this->getStep() ]; |
|
119 | 119 | |
120 | 120 | return $this->$currentStepMethod(); |
121 | 121 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function validCurrentStep($form): string |
129 | 129 | { |
130 | - $currentStepMethod = 'valid'.self::$step[$this->getStep()]; |
|
130 | + $currentStepMethod = 'valid'.self::$step[ $this->getStep() ]; |
|
131 | 131 | if (method_exists($this, $currentStepMethod)) { |
132 | 132 | return $this->$currentStepMethod($form); |
133 | 133 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | |
202 | 202 | protected function getNextStepFunctionName() |
203 | 203 | { |
204 | - $getFormMethod = 'getStep'.self::$step[$this->getNextStep()]; |
|
204 | + $getFormMethod = 'getStep'.self::$step[ $this->getNextStep() ]; |
|
205 | 205 | if (!method_exists($this, $getFormMethod)) { |
206 | 206 | return false; |
207 | 207 | } |
@@ -22,8 +22,8 @@ |
||
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('message', TextareaType::class); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | $form = $this->initForm(); |
24 | 24 | |
25 | - $form->add('authorName', null, ['constraints' => $this->getAuthorNameConstraints()]); |
|
25 | + $form->add('authorName', null, [ 'constraints' => $this->getAuthorNameConstraints() ]); |
|
26 | 26 | |
27 | 27 | return $form; |
28 | 28 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | ->subject( |
81 | 81 | $this->translator->trans( |
82 | 82 | 'admin.conversation.notification.title.'.(count($messages) > 1 ? 'plural' : 'singular'), |
83 | - ['%appName%' => $this->appName] |
|
83 | + [ '%appName%' => $this->appName ] |
|
84 | 84 | ) |
85 | 85 | ) |
86 | 86 | ->from($this->emailFrom) |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | { |
15 | 15 | protected function configureFormFields(FormMapper $formMapper) |
16 | 16 | { |
17 | - $formMapper->with('admin.conversation.label.conversation', ['class' => 'col-md-8']) |
|
17 | + $formMapper->with('admin.conversation.label.conversation', [ 'class' => 'col-md-8' ]) |
|
18 | 18 | ->add('message', TextareaType::class, [ |
19 | - 'attr' => ['rows' => 6], |
|
19 | + 'attr' => [ 'rows' => 6 ], |
|
20 | 20 | 'label' => 'admin.conversation.message.label', |
21 | 21 | ]) |
22 | 22 | ->add('referring', TextType::class, [ |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | ]) |
28 | 28 | ->end(); |
29 | 29 | |
30 | - $formMapper->with('admin.conversation.label.author', ['class' => 'col-md-4']) |
|
30 | + $formMapper->with('admin.conversation.label.author', [ 'class' => 'col-md-4' ]) |
|
31 | 31 | ->add('authorEmail', null, [ |
32 | 32 | 'label' => 'admin.conversation.authorEmail.label', |
33 | 33 | ]) |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | ]) |
45 | 45 | ->end(); |
46 | 46 | |
47 | - $formMapper->with('admin.conversation.label.publishedAt', ['class' => 'col-md-4']) |
|
47 | + $formMapper->with('admin.conversation.label.publishedAt', [ 'class' => 'col-md-4' ]) |
|
48 | 48 | ->add('publishedAt', DateTimePickerType::class, [ |
49 | 49 | 'required' => false, |
50 | 50 | 'label' => '', |