@@ -28,7 +28,7 @@ |
||
28 | 28 | try { |
29 | 29 | $query = $this->em->createQuery($dqlToBeTested); |
30 | 30 | $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [CustomTreeWalkerJoin::class]) |
31 | - ->useQueryCache(false); |
|
31 | + ->useQueryCache(false); |
|
32 | 32 | |
33 | 33 | $this->assertEquals($sqlToBeConfirmed, $query->getSql()); |
34 | 34 | $query->free(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $this->assertEquals($sqlToBeConfirmed, $query->getSql()); |
34 | 34 | $query->free(); |
35 | 35 | } catch (\Exception $e) { |
36 | - $this->fail($e->getMessage() . ' at "' . $e->getFile() . '" on line ' . $e->getLine()); |
|
36 | + $this->fail($e->getMessage().' at "'.$e->getFile().'" on line '.$e->getLine()); |
|
37 | 37 | |
38 | 38 | } |
39 | 39 | } |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | { |
75 | 75 | $rangeVariableDecl = $identificationVariableDecl->rangeVariableDeclaration; |
76 | 76 | $joinAssocPathExpression = new Query\AST\JoinAssociationPathExpression($rangeVariableDecl->aliasIdentificationVariable, 'address'); |
77 | - $joinAssocDeclaration = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable . 'a', null); |
|
77 | + $joinAssocDeclaration = new Query\AST\JoinAssociationDeclaration($joinAssocPathExpression, $rangeVariableDecl->aliasIdentificationVariable.'a', null); |
|
78 | 78 | $join = new Query\AST\Join(Query\AST\Join::JOIN_TYPE_LEFT, $joinAssocDeclaration); |
79 | - $selectExpression = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable . 'a', null, false); |
|
79 | + $selectExpression = new Query\AST\SelectExpression($rangeVariableDecl->aliasIdentificationVariable.'a', null, false); |
|
80 | 80 | |
81 | 81 | $identificationVariableDecl->joins[] = $join; |
82 | 82 | $selectStatement->selectClause->selectExpressions[] = $selectExpression; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $userMetadata = $entityManager->getClassMetadata(CmsUser::class); |
86 | 86 | $addressMetadata = $entityManager->getClassMetadata(CmsAddress::class); |
87 | 87 | |
88 | - $this->setQueryComponent($rangeVariableDecl->aliasIdentificationVariable . 'a', |
|
88 | + $this->setQueryComponent($rangeVariableDecl->aliasIdentificationVariable.'a', |
|
89 | 89 | [ |
90 | 90 | 'metadata' => $addressMetadata, |
91 | 91 | 'parent' => $rangeVariableDecl->aliasIdentificationVariable, |
@@ -231,7 +231,7 @@ |
||
231 | 231 | */ |
232 | 232 | public function testLiteralExprProperlyQuotesStrings() |
233 | 233 | { |
234 | - $this->assertEquals("'00010001'", (string) $this->_expr->literal('00010001')); |
|
234 | + $this->assertEquals("'00010001'", (string) $this->_expr->literal('00010001')); |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | public function testGreaterThanOrEqualToExpr() |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | public function providerParameterTypeInferer() |
15 | 15 | { |
16 | - $data = [ |
|
16 | + $data = [ |
|
17 | 17 | [1, Type::INTEGER], |
18 | 18 | ["bar", PDO::PARAM_STR], |
19 | 19 | ["1", PDO::PARAM_STR], |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | [["1","2"], Connection::PARAM_STR_ARRAY], |
24 | 24 | [[], Connection::PARAM_STR_ARRAY], |
25 | 25 | [true, Type::BOOLEAN], |
26 | - ]; |
|
26 | + ]; |
|
27 | 27 | |
28 | 28 | if (PHP_VERSION_ID >= 50500) { |
29 | 29 | $data[] = [new \DateTimeImmutable(), Type::DATETIME]; |
@@ -14,15 +14,15 @@ |
||
14 | 14 | public function providerParameterTypeInferer() |
15 | 15 | { |
16 | 16 | $data = [ |
17 | - [1, Type::INTEGER], |
|
18 | - ["bar", PDO::PARAM_STR], |
|
19 | - ["1", PDO::PARAM_STR], |
|
20 | - [new \DateTime, Type::DATETIME], |
|
21 | - [[2], Connection::PARAM_INT_ARRAY], |
|
22 | - [["foo"], Connection::PARAM_STR_ARRAY], |
|
23 | - [["1","2"], Connection::PARAM_STR_ARRAY], |
|
24 | - [[], Connection::PARAM_STR_ARRAY], |
|
25 | - [true, Type::BOOLEAN], |
|
17 | + [1, Type::INTEGER], |
|
18 | + ["bar", PDO::PARAM_STR], |
|
19 | + ["1", PDO::PARAM_STR], |
|
20 | + [new \DateTime, Type::DATETIME], |
|
21 | + [[2], Connection::PARAM_INT_ARRAY], |
|
22 | + [["foo"], Connection::PARAM_STR_ARRAY], |
|
23 | + [["1", "2"], Connection::PARAM_STR_ARRAY], |
|
24 | + [[], Connection::PARAM_STR_ARRAY], |
|
25 | + [true, Type::BOOLEAN], |
|
26 | 26 | ]; |
27 | 27 | |
28 | 28 | if (PHP_VERSION_ID >= 50500) { |
@@ -86,6 +86,6 @@ |
||
86 | 86 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
87 | 87 | { |
88 | 88 | // getParameter applies quoting automatically |
89 | - return $targetTableAlias . '.id = ' . $this->getParameter('id'); |
|
89 | + return $targetTableAlias.'.id = '.$this->getParameter('id'); |
|
90 | 90 | } |
91 | 91 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->tester->execute( |
68 | 68 | [ |
69 | 69 | 'command' => $this->command->getName(), |
70 | - 'dql' => 'SELECT e FROM ' . DateTimeModel::class . ' e', |
|
70 | + 'dql' => 'SELECT e FROM '.DateTimeModel::class.' e', |
|
71 | 71 | ] |
72 | 72 | ) |
73 | 73 | ); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $this->tester->execute( |
86 | 86 | [ |
87 | 87 | 'command' => $this->command->getName(), |
88 | - 'dql' => 'SELECT e FROM ' . DateTimeModel::class . ' e', |
|
88 | + 'dql' => 'SELECT e FROM '.DateTimeModel::class.' e', |
|
89 | 89 | '--show-sql' => 'true' |
90 | 90 | ] |
91 | 91 | ) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | ], ['decorated' => false] |
54 | 54 | ); |
55 | 55 | |
56 | - $this->assertEquals('Clearing all second-level cache collection regions' . PHP_EOL, $tester->getDisplay()); |
|
56 | + $this->assertEquals('Clearing all second-level cache collection regions'.PHP_EOL, $tester->getDisplay()); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function testClearByOwnerEntityClassName() |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ], ['decorated' => false] |
69 | 69 | ); |
70 | 70 | |
71 | - $this->assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay()); |
|
71 | + $this->assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay()); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | public function testClearCacheEntryName() |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ], ['decorated' => false] |
85 | 85 | ); |
86 | 86 | |
87 | - $this->assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"' . PHP_EOL, $tester->getDisplay()); |
|
87 | + $this->assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"'.PHP_EOL, $tester->getDisplay()); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | public function testFlushRegionName() |
@@ -100,6 +100,6 @@ discard block |
||
100 | 100 | ], ['decorated' => false] |
101 | 101 | ); |
102 | 102 | |
103 | - $this->assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay()); |
|
103 | + $this->assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay()); |
|
104 | 104 | } |
105 | 105 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | parent::setUp(); |
32 | 32 | |
33 | - $this->path = \sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('doctrine_'); |
|
33 | + $this->path = \sys_get_temp_dir().DIRECTORY_SEPARATOR.uniqid('doctrine_'); |
|
34 | 34 | |
35 | 35 | \mkdir($this->path); |
36 | 36 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | $metadataDriver->addPaths( |
41 | 41 | [ |
42 | - __DIR__ . '/../../../../Models/DDC3231/' |
|
42 | + __DIR__.'/../../../../Models/DDC3231/' |
|
43 | 43 | ] |
44 | 44 | ); |
45 | 45 | |
@@ -86,13 +86,13 @@ discard block |
||
86 | 86 | $this->generateRepositories('DDC3231User1'); |
87 | 87 | |
88 | 88 | $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User1Repository'; |
89 | - $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php'; |
|
89 | + $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php'; |
|
90 | 90 | |
91 | - $this->assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname); |
|
92 | - $this->assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php'); |
|
91 | + $this->assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname); |
|
92 | + $this->assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php'); |
|
93 | 93 | |
94 | - require $this->path . DIRECTORY_SEPARATOR . $fname; |
|
95 | - require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php'; |
|
94 | + require $this->path.DIRECTORY_SEPARATOR.$fname; |
|
95 | + require $this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php'; |
|
96 | 96 | |
97 | 97 | $this->assertTrue(class_exists($cname)); |
98 | 98 | $this->assertTrue(class_exists('DDC3231User1NoNamespaceRepository')); |
@@ -109,13 +109,13 @@ discard block |
||
109 | 109 | $this->generateRepositories('DDC3231User2', DDC3231EntityRepository::class); |
110 | 110 | |
111 | 111 | $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User2Repository'; |
112 | - $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php'; |
|
112 | + $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php'; |
|
113 | 113 | |
114 | - $this->assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname); |
|
115 | - $this->assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php'); |
|
114 | + $this->assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname); |
|
115 | + $this->assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php'); |
|
116 | 116 | |
117 | - require $this->path . DIRECTORY_SEPARATOR . $fname; |
|
118 | - require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php'; |
|
117 | + require $this->path.DIRECTORY_SEPARATOR.$fname; |
|
118 | + require $this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php'; |
|
119 | 119 | |
120 | 120 | $this->assertTrue(class_exists($cname)); |
121 | 121 | $this->assertTrue(class_exists('DDC3231User2NoNamespaceRepository')); |
@@ -17,8 +17,8 @@ |
||
17 | 17 | |
18 | 18 | $output = $this->createMock(OutputInterface::class); |
19 | 19 | $output->expects($this->once()) |
20 | - ->method('writeln') |
|
21 | - ->with($this->equalTo('No Metadata Classes to process.')); |
|
20 | + ->method('writeln') |
|
21 | + ->with($this->equalTo('No Metadata Classes to process.')); |
|
22 | 22 | |
23 | 23 | $command->convertDoctrine1Schema([], sys_get_temp_dir(), 'annotation', 4, null, $output); |
24 | 24 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ], ['decorated' => false] |
53 | 53 | ); |
54 | 54 | |
55 | - $this->assertEquals('Clearing all second-level cache query regions' . PHP_EOL, $tester->getDisplay()); |
|
55 | + $this->assertEquals('Clearing all second-level cache query regions'.PHP_EOL, $tester->getDisplay()); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | public function testClearDefaultRegionName() |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | ], ['decorated' => false] |
67 | 67 | ); |
68 | 68 | |
69 | - $this->assertEquals('Clearing second-level cache query region named "query_cache_region"' . PHP_EOL, $tester->getDisplay()); |
|
69 | + $this->assertEquals('Clearing second-level cache query region named "query_cache_region"'.PHP_EOL, $tester->getDisplay()); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | public function testClearByRegionName() |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ], ['decorated' => false] |
81 | 81 | ); |
82 | 82 | |
83 | - $this->assertEquals('Clearing second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay()); |
|
83 | + $this->assertEquals('Clearing second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay()); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | public function testFlushRegionName() |
@@ -95,6 +95,6 @@ discard block |
||
95 | 95 | ], ['decorated' => false] |
96 | 96 | ); |
97 | 97 | |
98 | - $this->assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay()); |
|
98 | + $this->assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay()); |
|
99 | 99 | } |
100 | 100 | } |