@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function getFunctions() |
| 34 | 34 | { |
| 35 | 35 | return [ |
| 36 | - new Twig_SimpleFunction(self::NAME, function ($entity) { |
|
| 36 | + new Twig_SimpleFunction(self::NAME, function($entity) { |
|
| 37 | 37 | $getter = sprintf('get%s', ucfirst($this->positionService->getPositionFieldByEntity($entity))); |
| 38 | 38 | |
| 39 | 39 | return $entity->{$getter}(); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | // 'populate' fields by *hook on form generation |
| 51 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($fieldName, $locales, $translations, $fieldType, $class, $required, $className, $id) { |
|
| 51 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($fieldName, $locales, $translations, $fieldType, $class, $required, $className, $id) { |
|
| 52 | 52 | $form = $event->getForm(); |
| 53 | 53 | foreach ($locales as $locale) { |
| 54 | 54 | $data = (array_key_exists($locale, $translations) && array_key_exists($fieldName, $translations[$locale])) ? $translations[$locale][$fieldName] : null; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $form->add('currentFieldName', 'hidden', ['data' => $fieldName]); |
| 70 | 70 | }); |
| 71 | 71 | |
| 72 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($fieldName, $className, $id, $locales) { |
|
| 72 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($fieldName, $className, $id, $locales) { |
|
| 73 | 73 | $form = $event->getForm(); |
| 74 | 74 | $this->manager->persistTranslations($form, $className, $fieldName, $id, $locales); |
| 75 | 75 | }); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class Openidconnect implements Extensionable |
| 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 | foreach ($clientConfigurations as $key => $clientConfig) { |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class Openid implements Extensionable |
| 12 | 12 | { |
| 13 | - public function configure(ContainerBuilder &$container) |
|
| 13 | + public function configure(ContainerBuilder & $container) |
|
| 14 | 14 | { |
| 15 | 15 | $clientConfigurations = $container->getParameter('sludio_helper.openid.clients'); |
| 16 | 16 | foreach ($clientConfigurations as $key => $clientConfig) { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 52 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 53 | 53 | { |
| 54 | 54 | $optionsNode = $node->children(); |
| 55 | 55 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | return $this->configurators[$type]; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 55 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 56 | 56 | { |
| 57 | 57 | $optionsNode = $node->children(); |
| 58 | 58 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | return $clientServiceKey; |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - public function configure(ContainerBuilder &$container) |
|
| 117 | + public function configure(ContainerBuilder & $container) |
|
| 118 | 118 | { |
| 119 | 119 | $clientConfigurations = $container->getParameter('sludio_helper.oauth.clients'); |
| 120 | 120 | $clientServiceKeys = []; |
@@ -7,9 +7,9 @@ |
||
| 7 | 7 | |
| 8 | 8 | interface Extensionable |
| 9 | 9 | { |
| 10 | - public function configure(ContainerBuilder &$container); |
|
| 10 | + public function configure(ContainerBuilder & $container); |
|
| 11 | 11 | |
| 12 | - public function buildClientConfiguration(NodeDefinition &$node); |
|
| 12 | + public function buildClientConfiguration(NodeDefinition & $node); |
|
| 13 | 13 | |
| 14 | 14 | public function configureClient(ContainerBuilder $container, $clientServiceKey, array $options = []); |
| 15 | 15 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | return $this->configurators[$type]; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function configure(ContainerBuilder &$container) |
|
| 38 | + public function configure(ContainerBuilder & $container) |
|
| 39 | 39 | { |
| 40 | 40 | $clientConfigurations = $container->getParameter('sludio_helper.captcha.clients'); |
| 41 | 41 | foreach ($clientConfigurations as $key => $clientConfig) { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
| 74 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
| 75 | 75 | { |
| 76 | 76 | $optionsNode = $node->children(); |
| 77 | 77 | $this->getConfigurator($this->getType())->buildConfiguration($optionsNode); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | $this->setExt(class_exists($className) ? new $className() : null); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | - public function configure(ContainerBuilder &$container) |
|
| 17 | + public function configure(ContainerBuilder & $container) |
|
| 18 | 18 | { |
| 19 | 19 | return $this->getExtension()->configure($container); |
| 20 | 20 | } |
@@ -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 | |
| 11 | 11 | public function buildConfiguration(NodeBuilder $node); |
| 12 | 12 | |