Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 419d779

Browse files
committed
CS: Convert double quotes to single quotes
1 parent 708edd6 commit 419d779

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Core/Authentication/Provider/DaoAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function checkAuthentication(UserInterface $user, UsernamePasswordToke
5959
throw new BadCredentialsException('The credentials were changed from another session.');
6060
}
6161
} else {
62-
if ("" === ($presentedPassword = $token->getCredentials())) {
62+
if ('' === ($presentedPassword = $token->getCredentials())) {
6363
throw new BadCredentialsException('The presented password cannot be empty.');
6464
}
6565

Http/Firewall/AbstractPreAuthenticatedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function clearToken(AuthenticationException $exception)
107107
$this->securityContext->setToken(null);
108108

109109
if (null !== $this->logger) {
110-
$this->logger->info(sprintf("Cleared security context due to exception: %s", $exception->getMessage()));
110+
$this->logger->info(sprintf('Cleared security context due to exception: %s', $exception->getMessage()));
111111
}
112112
}
113113
}

Tests/Acl/Dbal/AclProviderBenchmarkTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testFindAcls()
5656

5757
// get some random test object identities from the database
5858
$oids = array();
59-
$stmt = $this->con->executeQuery("SELECT object_identifier, class_type FROM acl_object_identities o INNER JOIN acl_classes c ON c.id = o.class_id ORDER BY RAND() LIMIT 25");
59+
$stmt = $this->con->executeQuery('SELECT object_identifier, class_type FROM acl_object_identities o INNER JOIN acl_classes c ON c.id = o.class_id ORDER BY RAND() LIMIT 25');
6060
foreach ($stmt->fetchAll() as $oid) {
6161
$oids[] = new ObjectIdentity($oid['object_identifier'], $oid['class_type']);
6262
}
@@ -66,7 +66,7 @@ public function testFindAcls()
6666
$start = microtime(true);
6767
$provider->findAcls($oids);
6868
$time = microtime(true) - $start;
69-
echo "Total Time: ".$time."s\n";
69+
echo 'Total Time: '.$time."s\n";
7070
}
7171

7272
/**
@@ -77,7 +77,7 @@ protected function generateTestData()
7777
{
7878
$sm = $this->con->getSchemaManager();
7979
$sm->dropAndCreateDatabase('testdb');
80-
$this->con->exec("USE testdb");
80+
$this->con->exec('USE testdb');
8181

8282
// import the schema
8383
$schema = new Schema($options = $this->getOptions());

Tests/Acl/Dbal/MutableAclProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ protected function importAcls(AclProvider $provider, array $data)
448448

449449
if (isset($aclData['parent_acl'])) {
450450
if (isset($aclIds[$aclData['parent_acl']])) {
451-
$con->executeQuery("UPDATE acl_object_identities SET parent_object_identity_id = ".$aclIds[$aclData['parent_acl']]." WHERE id = ".$aclId);
451+
$con->executeQuery('UPDATE acl_object_identities SET parent_object_identity_id = '.$aclIds[$aclData['parent_acl']].' WHERE id = '.$aclId);
452452
$con->executeQuery($this->callMethod($provider, 'getInsertObjectIdentityRelationSql', array($aclId, $aclIds[$aclData['parent_acl']])));
453453
} else {
454454
$parentAcls[$aclId] = $aclData['parent_acl'];
@@ -461,7 +461,7 @@ protected function importAcls(AclProvider $provider, array $data)
461461
throw new \InvalidArgumentException(sprintf('"%s" does not exist.', $name));
462462
}
463463

464-
$con->executeQuery(sprintf("UPDATE acl_object_identities SET parent_object_identity_id = %d WHERE id = %d", $aclIds[$name], $aclId));
464+
$con->executeQuery(sprintf('UPDATE acl_object_identities SET parent_object_identity_id = %d WHERE id = %d', $aclIds[$name], $aclId));
465465
$con->executeQuery($this->callMethod($provider, 'getInsertObjectIdentityRelationSql', array($aclId, $aclIds[$name])));
466466
}
467467

Tests/Core/Authorization/AccessDecisionManagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ protected function getVoterFor2Roles($token, $vote1, $vote2)
9999
$voter->expects($this->exactly(2))
100100
->method('vote')
101101
->will($this->returnValueMap(array(
102-
array($token, null, array("ROLE_FOO"), $vote1),
103-
array($token, null, array("ROLE_BAR"), $vote2),
102+
array($token, null, array('ROLE_FOO'), $vote1),
103+
array($token, null, array('ROLE_BAR'), $vote2),
104104
)))
105105
;
106106

0 commit comments

Comments
 (0)