Skip to content

Commit b1d2cf2

Browse files
committed
fixed CS
1 parent 0aa3043 commit b1d2cf2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DependencyInjection/MainConfiguration.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,25 +213,25 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
213213
->treatTrueLike(array())
214214
->canBeUnset()
215215
->beforeNormalization()
216-
->ifTrue(function($v) { return isset($v['csrf_provider']) && isset($v['csrf_token_generator']); })
216+
->ifTrue(function ($v) { return isset($v['csrf_provider']) && isset($v['csrf_token_generator']); })
217217
->thenInvalid("You should define a value for only one of 'csrf_provider' and 'csrf_token_generator' on a security firewall. Use 'csrf_token_generator' as this replaces 'csrf_provider'.")
218218
->end()
219219
->beforeNormalization()
220-
->ifTrue(function($v) { return isset($v['intention']) && isset($v['csrf_token_id']); })
220+
->ifTrue(function ($v) { return isset($v['intention']) && isset($v['csrf_token_id']); })
221221
->thenInvalid("You should define a value for only one of 'intention' and 'csrf_token_id' on a security firewall. Use 'csrf_token_id' as this replaces 'intention'.")
222222
->end()
223223
->beforeNormalization()
224-
->ifTrue(function($v) { return isset($v['csrf_provider']); })
225-
->then(function($v) {
224+
->ifTrue(function ($v) { return isset($v['csrf_provider']); })
225+
->then(function ($v) {
226226
$v['csrf_token_generator'] = $v['csrf_provider'];
227227
unset($v['csrf_provider']);
228228

229229
return $v;
230230
})
231231
->end()
232232
->beforeNormalization()
233-
->ifTrue(function($v) { return isset($v['intention']); })
234-
->then(function($v) {
233+
->ifTrue(function ($v) { return isset($v['intention']); })
234+
->then(function ($v) {
235235
$v['csrf_token_id'] = $v['intention'];
236236
unset($v['intention']);
237237

0 commit comments

Comments
 (0)