@@ -95,6 +95,10 @@ |
||
95 | 95 | $this->arrayTest($containerBuilder, 'dtc_queue.rabbit_mq', 'ssl_options', ['peer_fingerprint' => ['something' => 'else']]); |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param string $parameter |
|
100 | + * @param string $key |
|
101 | + */ |
|
98 | 102 | public function arrayTest(ContainerBuilder $containerBuilder, $parameter, $key, $result) |
99 | 103 | { |
100 | 104 | $arr = $containerBuilder->getParameter($parameter); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ->arrayNode('ssl_options') |
81 | 81 | ->prototype('variable')->end() |
82 | 82 | ->validate() |
83 | - ->ifTrue(function ($node) { |
|
83 | + ->ifTrue(function($node) { |
|
84 | 84 | if (!is_array($node)) { |
85 | 85 | return true; |
86 | 86 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | ->end() |
125 | 125 | ->end() |
126 | 126 | ->end() |
127 | - ->validate()->always(function ($node) { |
|
127 | + ->validate()->always(function($node) { |
|
128 | 128 | if (empty($node['ssl_options'])) { |
129 | 129 | unset($node['ssl_options']); |
130 | 130 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | |
135 | 135 | return $node; |
136 | 136 | })->end() |
137 | - ->validate()->ifTrue(function ($node) { |
|
137 | + ->validate()->ifTrue(function($node) { |
|
138 | 138 | if (isset($node['ssl_options']) && !$node['ssl']) { |
139 | 139 | return true; |
140 | 140 | } |