@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $chunked = $this->headers->has('Transfer-Encoding'); |
| 25 | 25 | $this->content->seek(0); |
| 26 | 26 | |
| 27 | - for (; ;) { |
|
| 27 | + for (;;) { |
|
| 28 | 28 | $chunk = $this->content->read($this->bufferSize); |
| 29 | 29 | |
| 30 | 30 | if ($chunked) { |
@@ -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 | }); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | return $this->configurators[$type]; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function configure(ContainerBuilder &$container, $alias) |
|
| 41 | + public function configure(ContainerBuilder & $container, $alias) |
|
| 42 | 42 | { |
| 43 | 43 | $this->alias = $alias.'.captcha'; |
| 44 | 44 | $clientConfigurations = $container->getParameter($this->alias.'.clients'); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 78 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 79 | 79 | { |
| 80 | 80 | $optionsNode = $node->children(); |
| 81 | 81 | $this->getConfigurator($this->getType())->buildConfiguration($optionsNode); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | protected $alias; |
| 14 | 14 | |
| 15 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 15 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 16 | 16 | { |
| 17 | 17 | $optionsNode = $node->children(); |
| 18 | 18 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $optionsNode->end(); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - private function buildUri(NodeDefinition &$node) |
|
| 50 | + private function buildUri(NodeDefinition & $node) |
|
| 51 | 51 | { |
| 52 | 52 | $optionsNode = $node->children(); |
| 53 | 53 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | ]); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - public function configure(ContainerBuilder &$container, $alias) |
|
| 79 | + public function configure(ContainerBuilder & $container, $alias) |
|
| 80 | 80 | { |
| 81 | 81 | $this->alias = $alias.'.openidconnect'; |
| 82 | 82 | $clientConfigurations = $container->getParameter($this->alias.'.clients'); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | protected $alias; |
| 19 | 19 | |
| 20 | - public function configure(ContainerBuilder &$container, $alias) |
|
| 20 | + public function configure(ContainerBuilder & $container, $alias) |
|
| 21 | 21 | { |
| 22 | 22 | $this->alias = $alias.'.guzzle'; |
| 23 | 23 | $dataCollector = $container->getDefinition($this->alias.'.data_collector.guzzle'); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | return $this->configurators[$type]; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 57 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 58 | 58 | { |
| 59 | 59 | $optionsNode = $node->children(); |
| 60 | 60 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | return $clientServiceKey; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - public function configure(ContainerBuilder &$container, $alias) |
|
| 119 | + public function configure(ContainerBuilder & $container, $alias) |
|
| 120 | 120 | { |
| 121 | 121 | $this->alias = $alias.'.oauth'; |
| 122 | 122 | $clientConfigurations = $container->getParameter($this->alias.'.clients'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | protected $alias; |
| 14 | 14 | |
| 15 | - public function configure(ContainerBuilder &$container, $alias) |
|
| 15 | + public function configure(ContainerBuilder & $container, $alias) |
|
| 16 | 16 | { |
| 17 | 17 | $this->alias = $alias.'.openid'; |
| 18 | 18 | $clientConfigurations = $container->getParameter($this->alias.'.clients'); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 56 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 57 | 57 | { |
| 58 | 58 | $optionsNode = $node->children(); |
| 59 | 59 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | interface ExtensionInterface extends ConfigureInterface |
| 9 | 9 | { |
| 10 | - public function buildClientConfiguration(NodeDefinition &$node); |
|
| 10 | + public function buildClientConfiguration(NodeDefinition & $node); |
|
| 11 | 11 | |
| 12 | 12 | public function configureClient(ContainerBuilder $container, $clientServiceKey, array $options = []); |
| 13 | 13 | } |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface ConfigureInterface |
| 8 | 8 | { |
| 9 | - public function configure(ContainerBuilder &$container, $alias); |
|
| 9 | + public function configure(ContainerBuilder & $container, $alias); |
|
| 10 | 10 | } |