8000 fixed CS · symfony/symfony@b04b0eb · GitHub
[go: up one dir, main page]

Skip to content

Commit b04b0eb

Browse files
committed
fixed CS
1 parent d87d8da commit b04b0eb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode)
188188
->end()
189189
->scalarNode('service')->end()
190190
->arrayNode('ips')
191-
->beforeNormalization()->ifString()->then(function($v) { return array($v); })->end()
191+
->beforeNormalization()->ifString()->then(function ($v) { return array($v); })->end()
192192
->prototype('scalar')->end()
193193
->end()
194194
->end()

src/Symfony/Bundle/SecurityBundle/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

src/Symfony/Component/HttpKernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testHandle($type)
2727
{
2828
$request = new Request();
2929
$expected = new Response();
30-
$controller = function() use ($expected) {
30+
$controller = function () use ($expected) {
3131
return $expected;
3232
};
3333

@@ -79,7 +79,7 @@ public function testHandleRestoresThePreviousRequestOnException($type)
7979
{
8080
$request = new Request();
8181
$expected = new \Exception();
82-
$controller = function() use ($expected) {
82+
$controller = function () use ($expected) {
8383
throw $expected;
8484
};
8585

0 commit comments

Comments
 (0)
0