Skip to content

Commit 203cc30

Browse files
committed
CS: Convert double quotes to single quotes
1 parent f368a6e commit 203cc30

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Security/User/EntityUserProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public function refreshUser(UserInterface $user)
8585
// That's the case when the user has been changed by a form with
8686
// validation errors.
8787
if (!$id = $this->metadata->getIdentifierValues($user)) {
88-
throw new \InvalidArgumentException("You cannot refresh a user ".
89-
"from the EntityUserProvider that does not contain an identifier. ".
90-
"The user object has to be serialized with its own identifier ".
91-
"mapped by Doctrine."
88+
throw new \InvalidArgumentException('You cannot refresh a user '.
89+
'from the EntityUserProvider that does not contain an identifier. '.
90+
'The user object has to be serialized with its own identifier '.
91+
'mapped by Doctrine.'
9292
);
9393
}
9494

Tests/DataCollector/DoctrineDataCollectorTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testCollectQueryCount()
3939
$this->assertEquals(0, $c->getQueryCount());
4040

4141
$queries = array(
42-
array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 0),
42+
array('sql' => 'SELECT * FROM table1', 'params' => array(), 'types' => array(), 'executionMS' => 0),
4343
);
4444
$c = $this->createCollector($queries);
4545
$c->collect(new Request(), new Response());
@@ -53,15 +53,15 @@ public function testCollectTime()
5353
$this->assertEquals(0, $c->getTime());
5454

5555
$queries = array(
56-
array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 1),
56+
array('sql' => 'SELECT * FROM table1', 'params' => array(), 'types' => array(), 'executionMS' => 1),
5757
);
5858
$c = $this->createCollector($queries);
5959
$c->collect(new Request(), new Response());
6060
$this->assertEquals(1, $c->getTime());
6161

6262
$queries = array(
63-
array('sql' => "SELECT * FROM table1", 'params' => array(), 'types' => array(), 'executionMS' => 1),
64-
array('sql' => "SELECT * FROM table2", 'params' => array(), 'types' => array(), 'executionMS' => 2),
63+
array('sql' => 'SELECT * FROM table1', 'params' => array(), 'types' => array(), 'executionMS' => 1),
64+
array('sql' => 'SELECT * FROM table2', 'params' => array(), 'types' => array(), 'executionMS' => 2),
6565
);
6666
$c = $this->createCollector($queries);
6767
$c->collect(new Request(), new Response());
@@ -74,7 +74,7 @@ public function testCollectTime()
7474
public function testCollectQueries($param, $types, $expected, $explainable)
7575
{
7676
$queries = array(
77-
array('sql' => "SELECT * FROM table1 WHERE field1 = ?1", 'params' => array($param), 'types' => $types, 'executionMS' => 1),
77+
array('sql' => 'SELECT * FROM table1 WHERE field1 = ?1', 'params' => array($param), 'types' => $types, 'executionMS' => 1),
7878
);
7979
$c = $this->createCollector($queries);
8080
$c->collect(new Request(), new Response());
@@ -90,7 +90,7 @@ public function testCollectQueries($param, $types, $expected, $explainable)
9090
public function testSerialization($param, $types, $expected, $explainable)
9191
{
9292
$queries = array(
93-
array('sql' => "SELECT * FROM table1 WHERE field1 = ?1", 'params' => array($param), 'types' => $types, 'executionMS' => 1),
93+
array('sql' => 'SELECT * FROM table1 WHERE field1 = ?1', 'params' => array($param), 'types' => $types, 'executionMS' => 1),
9494
);
9595
$c = $this->createCollector($queries);
9696
$c->collect(new Request(), new Response());

Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ public function testValidateUniquenessWithValidCustomErrorPath()
244244
'message' => 'myMessage',
245245
'fields' => array('name', 'name2'),
246246
'em' => self::EM_NAME,
247-
'errorPath' => "name2",
247+
'errorPath' => 'name2',
248248
));
249249

250-
$entity1 = new DoubleNameEntity(1, 'Foo', "Bar");
251-
$entity2 = new DoubleNameEntity(2, 'Foo', "Bar");
250+
$entity1 = new DoubleNameEntity(1, 'Foo', 'Bar');
251+
$entity2 = new DoubleNameEntity(2, 'Foo', 'Bar');
252252

253253
$this->validator->validate($entity1, $constraint);
254254

@@ -399,7 +399,7 @@ public function testAssociatedCompositeEntity()
399399
'em' => self::EM_NAME,
400400
));
401401

402-
$composite = new CompositeIntIdEntity(1, 1, "test");
402+
$composite = new CompositeIntIdEntity(1, 1, 'test');
403403
$associated = new AssociationEntity();
404404
$associated->composite = $composite;
405405

Validator/Constraints/UniqueEntityValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public function validate($entity, Constraint $constraint)
9898

9999
if (count($relatedId) > 1) {
100100
throw new ConstraintDefinitionException(
101-
"Associated entities are not allowed to have more than one identifier field to be ".
102-
"part of a unique constraint in: ".$class->getName()."#".$fieldName
101+
'Associated entities are not allowed to have more than one identifier field to be '.
102+
'part of a unique constraint in: '.$class->getName().'#'.$fieldName
103103
);
104104
}
105105
$criteria[$fieldName] = array_pop($relatedId);

0 commit comments

Comments
 (0)