@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class Openidconnect implements Extension |
| 12 | 12 | { |
| 13 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 13 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 14 | 14 | { |
| 15 | 15 | $optionsNode = $node->children(); |
| 16 | 16 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $optionsNode->end(); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - private function buildUri(NodeDefinition &$node) |
|
| 48 | + private function buildUri(NodeDefinition & $node) |
|
| 49 | 49 | { |
| 50 | 50 | $optionsNode = $node->children(); |
| 51 | 51 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | ]); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - public function configure(ContainerBuilder &$container) |
|
| 73 | + public function configure(ContainerBuilder & $container) |
|
| 74 | 74 | { |
| 75 | 75 | $clientConfigurations = $container->getParameter('sludio_helper.openidconnect.clients'); |
| 76 | 76 | $clientServiceKeys = []; |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | // 'populate' fields by *hook on form generation |
| 91 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($fieldName, $translations, $fieldType, $class, $required, $className, $id) { |
|
| 91 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($fieldName, $translations, $fieldType, $class, $required, $className, $id) { |
|
| 92 | 92 | $form = $event->getForm(); |
| 93 | 93 | foreach ($this->locales as $locale) { |
| 94 | 94 | $data = (array_key_exists($locale, $translations) && array_key_exists($fieldName, $translations[$locale])) ? $translations[$locale][$fieldName] : null; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $form->add('currentFieldName', 'hidden', ['data' => $fieldName]); |
| 110 | 110 | }); |
| 111 | 111 | |
| 112 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($fieldName, $className, $id) { |
|
| 112 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($fieldName, $className, $id) { |
|
| 113 | 113 | $form = $event->getForm(); |
| 114 | 114 | $this->manager->persistTranslations($form, $className, $fieldName, $id, $this->locales); |
| 115 | 115 | }); |