@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | // sinon, passer l'id dans la session plutôt que dans la requête |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | - $form = $this->formFactory->createBuilder(FormType::class, $this->message, ['csrf_protection' => false]); |
|
| 113 | + $form = $this->formFactory->createBuilder(FormType::class, $this->message, [ 'csrf_protection' => false ]); |
|
| 114 | 114 | |
| 115 | 115 | $form->setAction($this->router->generate('piedweb_cms_conversation', [ |
| 116 | 116 | 'type' => $this->getType(), |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | public function getCurrentStep(): FormBuilderInterface |
| 126 | 126 | { |
| 127 | - $currentStepMethod = 'getStep'.self::$step[$this->getStep()]; |
|
| 127 | + $currentStepMethod = 'getStep'.self::$step[ $this->getStep() ]; |
|
| 128 | 128 | |
| 129 | 129 | return $this->$currentStepMethod(); |
| 130 | 130 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | public function validCurrentStep($form): string |
| 138 | 138 | { |
| 139 | - $currentStepMethod = 'valid'.self::$step[$this->getStep()]; |
|
| 139 | + $currentStepMethod = 'valid'.self::$step[ $this->getStep() ]; |
|
| 140 | 140 | if (method_exists($this, $currentStepMethod)) { |
| 141 | 141 | return $this->$currentStepMethod($form); |
| 142 | 142 | } |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | protected function getNextStepFunctionName() |
| 212 | 212 | { |
| 213 | - $getFormMethod = 'getStep'.self::$step[$this->getNextStep()]; |
|
| 213 | + $getFormMethod = 'getStep'.self::$step[ $this->getNextStep() ]; |
|
| 214 | 214 | if (!method_exists($this, $getFormMethod)) { |
| 215 | 215 | return false; |
| 216 | 216 | } |