@@ -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 | } |
@@ -10,12 +10,12 @@ 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) { |
| 17 | 17 | $tree = new TreeBuilder(); |
| 18 | - $node = $tree->root('sludio_helper_openid_client/clients/' . $key); |
|
| 18 | + $node = $tree->root('sludio_helper_openid_client/clients/'.$key); |
|
| 19 | 19 | $this->buildClientConfiguration($node); |
| 20 | 20 | $processor = new Processor(); |
| 21 | 21 | $config = $processor->process($tree->buildTree(), [$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 | $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 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | $parameters = parent::jsonSerialize(); |
| 30 | 30 | if ($this->idToken) { |
| 31 | - $parameters['id_token'] = (string)$this->idToken; |
|
| 31 | + $parameters['id_token'] = (string) $this->idToken; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | return $parameters; |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | public function __construct(array $options, array $additional = []) |
| 18 | 18 | { |
| 19 | - $this->base = rtrim($additional['base_uri'], '/') . '/'; |
|
| 19 | + $this->base = rtrim($additional['base_uri'], '/').'/'; |
|
| 20 | 20 | unset($additional['base_uri']); |
| 21 | 21 | |
| 22 | 22 | $this->params = !empty($options['params']) ? $options['params'] : []; |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | if (!empty($this->urlParams)) { |
| 38 | 38 | $params = http_build_query($this->urlParams); |
| 39 | - $url .= '?' . $params; |
|
| 39 | + $url .= '?'.$params; |
|
| 40 | 40 | } |
| 41 | 41 | $url = urldecode($url); |
| 42 | 42 | $this->setUrl($url); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | public function trans($id, array $parameters = array(), $domain = null, $locale = null) |
| 41 | 41 | { |
| 42 | 42 | $request = Request::createFromGlobals(); |
| 43 | - if (1||$request->get('sludio_debug') === 'text') { |
|
| 43 | + if (1 || $request->get('sludio_debug') === 'text') { |
|
| 44 | 44 | return $domain.'.'.$id; |
| 45 | 45 | } |
| 46 | 46 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | self::OAUTH2_SESSION_STATE_KEY, |
| 21 | 21 | $state ?: $this->provider->getState() |
| 22 | 22 | ); |
| 23 | - if($state){ |
|
| 23 | + if ($state) { |
|
| 24 | 24 | $this->provider->setState($state); |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -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 | $optionsNode |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $optionsNode->end(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - private function buildUri(NodeDefinition &$node) |
|
| 44 | + private function buildUri(NodeDefinition&$node) |
|
| 45 | 45 | { |
| 46 | 46 | $optionsNode = $node->children(); |
| 47 | 47 | $optionsNode |
@@ -64,13 +64,13 @@ discard block |
||
| 64 | 64 | ]); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - public function configure(ContainerBuilder &$container) |
|
| 67 | + public function configure(ContainerBuilder&$container) |
|
| 68 | 68 | { |
| 69 | 69 | $clientConfigurations = $container->getParameter('sludio_helper.openidconnect.clients'); |
| 70 | 70 | foreach ($clientConfigurations as $key => $clientConfig) { |
| 71 | 71 | $tree = new TreeBuilder(); |
| 72 | 72 | $processor = new Processor(); |
| 73 | - $node = $tree->root('sludio_helper_openidconnect_client/clients/' . $key); |
|
| 73 | + $node = $tree->root('sludio_helper_openidconnect_client/clients/'.$key); |
|
| 74 | 74 | $this->buildClientConfiguration($node); |
| 75 | 75 | $config = $processor->process($tree->buildTree(), [$clientConfig]); |
| 76 | 76 | $clientServiceKey = 'sludio_helper.openidconnect.client.'.$key; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | return $this->configurators[$type]; |
| 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 | $optionsNode |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | return $clientServiceKey; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - public function configure(ContainerBuilder &$container) |
|
| 124 | + public function configure(ContainerBuilder&$container) |
|
| 125 | 125 | { |
| 126 | 126 | $clientConfigurations = $container->getParameter('sludio_helper.oauth.clients'); |
| 127 | 127 | $clientServiceKeys = []; |