Skip to content

Commit 53c144e

Browse files
polcfabpot
authored andcommitted
Remove aligned '=>' and '='
1 parent 8607f48 commit 53c144e

File tree

9 files changed

+39
-39
lines changed

9 files changed

+39
-39
lines changed

DataCollector/SecurityDataCollector.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,27 @@ public function collect(Request $request, Response $response, \Exception $except
3737
{
3838
if (null === $this->context) {
3939
$this->data = array(
40-
'enabled' => false,
40+
'enabled' => false,
4141
'authenticated' => false,
42-
'token_class' => null,
43-
'user' => '',
44-
'roles' => array(),
42+
'token_class' => null,
43+
'user' => '',
44+
'roles' => array(),
4545
);
4646
} elseif (null === $token = $this->context->getToken()) {
4747
$this->data = array(
48-
'enabled' => true,
48+
'enabled' => true,
4949
'authenticated' => false,
50-
'token_class' => null,
51-
'user' => '',
52-
'roles' => array(),
50+
'token_class' => null,
51+
'user' => '',
52+
'roles' => array(),
5353
);
5454
} else {
5555
$this->data = array(
56-
'enabled' => true,
56+
'enabled' => true,
5757
'authenticated' => $token->isAuthenticated(),
58-
'token_class' => get_class($token),
59-
'user' => $token->getUsername(),
60-
'roles' => array_map(function ($role) { return $role->getRole();}, $token->getRoles()),
58+
'token_class' => get_class($token),
59+
'user' => $token->getUsername(),
60+
'roles' => array_map(function ($role) { return $role->getRole();}, $token->getRoles()),
6161
);
6262
}
6363
}

DependencyInjection/Security/Factory/AbstractFactory.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@
2727
abstract class AbstractFactory implements SecurityFactoryInterface
2828
{
2929
protected $options = array(
30-
'check_path' => '/login_check',
31-
'use_forward' => false,
32-
'require_previous_session' => true,
30+
'check_path' => '/login_check',
31+
'use_forward' => false,
32+
'require_previous_session' => true,
3333
);
3434

3535
protected $defaultSuccessHandlerOptions = array(
3636
'always_use_default_target_path' => false,
37-
'default_target_path' => '/',
38-
'login_path' => '/login',
39-
'target_path_parameter' => '_target_path',
40-
'use_referer' => false,
37+
'default_target_path' => '/',
38+
'login_path' => '/login',
39+
'target_path_parameter' => '_target_path',
40+
'use_referer' => false,
4141
);
4242

4343
protected $defaultFailureHandlerOptions = array(
44-
'failure_path' => null,
45-
'failure_forward' => false,
46-
'login_path' => '/login',
47-
'failure_path_parameter' => '_failure_path',
44+
'failure_path' => null,
45+
'failure_forward' => false,
46+
'login_path' => '/login',
47+
'failure_path_parameter' => '_failure_path',
4848
);
4949

5050
public function create(ContainerBuilder $container, $id, $config, $userProviderId, $defaultEntryPointId)

DependencyInjection/SecurityExtension.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ private function configureDbalAclProvider(array $config, ContainerBuilder $conta
135135
->getDefinition('security.acl.dbal.schema_listener')
136136
->addTag('doctrine.event_listener', array(
137137
'connection' => $config['connection'],
138-
'event' => 'postGenerateSchema',
139-
'lazy' => true,
138+
'event' => 'postGenerateSchema',
139+
'lazy' => true,
140140
))
141141
;
142142

@@ -281,8 +281,8 @@ private function createFirewall(ContainerBuilder $container, $id, $firewall, &$a
281281
$listener = $container->setDefinition($listenerId, new DefinitionDecorator('security.logout_listener'));
282282
$listener->replaceArgument(3, array(
283283
'csrf_parameter' => $firewall['logout']['csrf_parameter'],
284-
'intention' => $firewall['logout']['intention'],
285-
'logout_path' => $firewall['logout']['path'],
284+
'intention' => $firewall['logout']['intention'],
285+
'logout_path' => $firewall['logout']['path'],
286286
));
287287
$listeners[] = new Reference($listenerId);
288288

@@ -452,7 +452,7 @@ private function createEncoder($config, ContainerBuilder $container)
452452
// pbkdf2 encoder
453453
if ('pbkdf2' === $config['algorithm']) {
454454
return array(
455-
'class' => new Parameter('security.encoder.pbkdf2.class'),
455+
'class' => new Parameter('security.encoder.pbkdf2.class'),
456456
'arguments' => array(
457457
$config['hash_algorithm'],
458458
$config['encode_as_base64'],
@@ -465,14 +465,14 @@ private function createEncoder($config, ContainerBuilder $container)
465465
// bcrypt encoder
466466
if ('bcrypt' === $config['algorithm']) {
467467
return array(
468-
'class' => new Parameter('security.encoder.bcrypt.class'),
468+
'class' => new Parameter('security.encoder.bcrypt.class'),
469469
'arguments' => array($config['cost']),
470470
);
471471
}
472472

473473
// message digest encoder
474474
return array(
475-
'class' => new Parameter('security.encoder.digest.class'),
475+
'class' => new Parameter('security.encoder.digest.class'),
476476
'arguments' => array(
477477
$config['algorithm'],
478478
$config['encode_as_base64'],

Tests/DependencyInjection/CompleteConfigurationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public function testRolesHierarchy()
2626
{
2727
$container = $this->getContainer('container1');
2828
$this->assertEquals(array(
29-
'ROLE_ADMIN' => array('ROLE_USER'),
29+
'ROLE_ADMIN' => array('ROLE_USER'),
3030
'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH'),
31-
'ROLE_REMOTE' => array('ROLE_USER', 'ROLE_ADMIN'),
31+
'ROLE_REMOTE' => array('ROLE_USER', 'ROLE_ADMIN'),
3232
), $container->getParameter('security.role_hierarchy.roles'));
3333
}
3434

Tests/DependencyInjection/Security/Factory/AbstractFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testCreate()
3636
'index_5' => new Reference('qux'),
3737
'index_6' => new Reference('bar'),
3838
'index_7' => array(
39-
'use_forward' => true,
39+
'use_forward' => true,
4040
),
4141
), $definition->getArguments());
4242

Tests/Functional/Bundle/CsrfFormLoginBundle/Controller/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function loginAction()
2222
$form = $this->container->get('form.factory')->create('user_login');
2323

2424
return $this->container->get('templating')->renderResponse('CsrfFormLoginBundle:Login:login.html.twig', array(
25-
'form' => $form->createView(),
25+
'form' => $form->createView(),
2626
));
2727
}
2828

Tests/Functional/Bundle/FormLoginBundle/Controller/LocalizedController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function loginAction()
2929
return $this->container->get('templating')->renderResponse('FormLoginBundle:Localized:login.html.twig', array(
3030
// last username entered by the user
3131
'last_username' => $this->container->get('request')->getSession()->get(SecurityContext::LAST_USERNAME),
32-
'error' => $error,
32+
'error' => $error,
3333
));
3434
}
3535

Tests/Functional/Bundle/FormLoginBundle/Controller/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function loginAction()
3030
return $this->container->get('templating')->renderResponse('FormLoginBundle:Login:login.html.twig', array(
3131
// last username entered by the user
3232
'last_username' => $this->container->get('request')->getSession()->get(SecurityContext::LAST_USERNAME),
33-
'error' => $error,
33+
'error' => $error,
3434
));
3535
}
3636

Tests/Functional/SwitchUserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public function testSwitchedUserExit()
5454
public function getTestParameters()
5555
{
5656
return array(
57-
'unauthorized_user_cannot_switch' => array('user_cannot_switch_1', 'user_cannot_switch_1', 'user_cannot_switch_1', 403),
58-
'authorized_user_can_switch' => array('user_can_switch', 'user_cannot_switch_1', 'user_cannot_switch_1', 200),
57+
'unauthorized_user_cannot_switch' => array('user_cannot_switch_1', 'user_cannot_switch_1', 'user_cannot_switch_1', 403),
58+
'authorized_user_can_switch' => array('user_can_switch', 'user_cannot_switch_1', 'user_cannot_switch_1', 200),
5959
'authorized_user_cannot_switch_to_non_existent' => array('user_can_switch', 'user_does_not_exist', 'user_can_switch', 500),
60-
'authorized_user_can_switch_to_himself' => array('user_can_switch', 'user_can_switch', 'user_can_switch', 200),
60+
'authorized_user_can_switch_to_himself' => array('user_can_switch', 'user_can_switch', 'user_can_switch', 200),
6161
);
6262
}
6363

0 commit comments

Comments
 (0)