@@ -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) { |
@@ -5,8 +5,8 @@ |
||
5 | 5 | use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
7 | 7 | |
8 | -interface CaptchaConfigurator |
|
9 | -{ |
|
8 | +interface CaptchaConfigurator |
|
9 | +{ |
|
10 | 10 | public function buildConfiguration(NodeBuilder $node); |
11 | 11 | |
12 | 12 | public function configureClient(ContainerBuilder $container, $clientServiceKey, array $options = []); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | return $handler($request, $options)->then(function(ResponseInterface $response) use ($request) { |
41 | 41 | $code = (int)floor(intval($response->getStatusCode()) / 100); |
42 | - if($code === 2) { |
|
42 | + if ($code === 2) { |
|
43 | 43 | $this->adapter->save($request, $response); |
44 | 44 | } |
45 | 45 |
@@ -124,7 +124,7 @@ |
||
124 | 124 | { |
125 | 125 | $cache = []; |
126 | 126 | |
127 | - return preg_replace_callback('/{\s*([A-Za-z_\-\.0-9]+)\s*}/', function (array $matches) use ($request, $response, $error, &$cache) { |
|
127 | + return preg_replace_callback('/{\s*([A-Za-z_\-\.0-9]+)\s*}/', function(array $matches) use ($request, $response, $error, &$cache) { |
|
128 | 128 | if (isset($cache[$matches[1]])) { |
129 | 129 | return $cache[$matches[1]]; |
130 | 130 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | interface Extension extends Configurable |
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 | } |
@@ -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); |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | interface Configurable |
8 | 8 | { |
9 | - public function configure(ContainerBuilder &$container, $alias); |
|
9 | + public function configure(ContainerBuilder & $container, $alias); |
|
10 | 10 | } |
11 | 11 | \ No newline at end of file |
@@ -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'); |