Completed
Push — master ( f4c848...d31188 )
by Jonathan
24s queued 17s
created
tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function testIssue2059() : void
31 31
     {
32
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
32
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
33 33
             $this->markTestSkipped('Platform does not support foreign keys.');
34 34
         }
35 35
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function testLoadMetadataFromDatabase() : void
53 53
     {
54
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
54
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
55 55
             $this->markTestSkipped('Platform does not support foreign keys.');
56 56
         }
57 57
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     public function testLoadMetadataWithForeignKeyFromDatabase() : void
91 91
     {
92
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
92
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
93 93
             $this->markTestSkipped('Platform does not support foreign keys.');
94 94
         }
95 95
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     public function testDetectManyToManyTables() : void
124 124
     {
125
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
125
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
126 126
             $this->markTestSkipped('Platform does not support foreign keys.');
127 127
         }
128 128
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
     public function testLoadMetadataFromDatabaseDetail() : void
164 164
     {
165
-        if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
165
+        if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) {
166 166
             $this->markTestSkipped('Platform does not support foreign keys.');
167 167
         }
168 168
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         // FIXME: Condition here is fugly.
203 203
         // NOTE: PostgreSQL and SQL SERVER do not support UNSIGNED integer
204
-        if (! $this->em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform &&
204
+        if ( ! $this->em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform &&
205 205
              ! $this->em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) {
206 206
             self::assertNotNull($metadata->getProperty('columnUnsigned'));
207 207
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         self::assertNotEmpty($indexes['index1']['columns']);
245 245
         self::assertEquals(
246
-            ['column_index1','column_index2'],
246
+            ['column_index1', 'column_index2'],
247 247
             $indexes['index1']['columns']
248 248
         );
249 249
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
 
34 34
         $configuration = $this->em->getConfiguration();
35 35
 
36
-        $configuration->setProxyNamespace(__NAMESPACE__ . '\\ProxyTest');
37
-        $configuration->setProxyDir(__DIR__ . '/../../Proxies');
36
+        $configuration->setProxyNamespace(__NAMESPACE__.'\\ProxyTest');
37
+        $configuration->setProxyDir(__DIR__.'/../../Proxies');
38 38
         $configuration->setAutoGenerateProxyClasses(StaticProxyFactory::AUTOGENERATE_ALWAYS);
39 39
 
40 40
         $this->factory = new StaticProxyFactory($this->em, $configuration->buildGhostObjectFactory());
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->em->flush();
113 113
         $this->em->clear();
114 114
 
115
-        $dql     = 'SELECT p FROM ' . __NAMESPACE__ . '\DDC93Person p';
115
+        $dql     = 'SELECT p FROM '.__NAMESPACE__.'\DDC93Person p';
116 116
         $persons = $this->em->createQuery($dql)->getResult();
117 117
 
118 118
         self::assertCount(3, $persons);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             self::assertEquals('United States of America', $person->address->country->name);
126 126
         }
127 127
 
128
-        $dql     = 'SELECT p FROM ' . __NAMESPACE__ . '\DDC93Person p';
128
+        $dql     = 'SELECT p FROM '.__NAMESPACE__.'\DDC93Person p';
129 129
         $persons = $this->em->createQuery($dql)->getArrayResult();
130 130
 
131 131
         foreach ($persons as $person) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $this->em->flush();
151 151
 
152 152
         // SELECT
153
-        $selectDql    = 'SELECT p FROM ' . __NAMESPACE__ . '\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country';
153
+        $selectDql    = 'SELECT p FROM '.__NAMESPACE__.'\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country';
154 154
         $loadedPerson = $this->em->createQuery($selectDql)
155 155
             ->setParameter('city', 'Karlsruhe')
156 156
             ->setParameter('country', 'Germany')
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         );
166 166
 
167 167
         // UPDATE
168
-        $updateDql = 'UPDATE ' . __NAMESPACE__ . '\\DDC93Person p SET p.address.street = :street, p.address.country.name = :country WHERE p.address.city = :city';
168
+        $updateDql = 'UPDATE '.__NAMESPACE__.'\\DDC93Person p SET p.address.street = :street, p.address.country.name = :country WHERE p.address.city = :city';
169 169
         $this->em->createQuery($updateDql)
170 170
             ->setParameter('street', 'Boo')
171 171
             ->setParameter('country', 'DE')
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         self::assertEquals('DE', $person->address->country->name);
178 178
 
179 179
         // DELETE
180
-        $this->em->createQuery('DELETE ' . __NAMESPACE__ . '\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country')
180
+        $this->em->createQuery('DELETE '.__NAMESPACE__.'\\DDC93Person p WHERE p.address.city = :city AND p.address.country.name = :country')
181 181
             ->setParameter('city', 'Karlsruhe')
182 182
             ->setParameter('country', 'DE')
183 183
             ->execute();
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $this->em->clear();
195 195
 
196 196
         // Prove that the entity was persisted correctly.
197
-        $dql = 'SELECT p FROM ' . __NAMESPACE__ . '\\DDC93Person p WHERE p.name = :name';
197
+        $dql = 'SELECT p FROM '.__NAMESPACE__.'\\DDC93Person p WHERE p.name = :name';
198 198
 
199 199
         $person = $this->em->createQuery($dql)
200 200
             ->setParameter('name', 'Karl')
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         // Clear the EM and prove that the embeddable can be the subject of a partial query.
209 209
         $this->em->clear();
210 210
 
211
-        $dql = 'SELECT PARTIAL p.{id,address.city} FROM ' . __NAMESPACE__ . '\\DDC93Person p WHERE p.name = :name';
211
+        $dql = 'SELECT PARTIAL p.{id,address.city} FROM '.__NAMESPACE__.'\\DDC93Person p WHERE p.name = :name';
212 212
 
213 213
         $person = $this->em->createQuery($dql)
214 214
             ->setParameter('name', 'Karl')
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         // Clear the EM and prove that the embeddable can be the subject of a partial query regardless of attributes positions.
225 225
         $this->em->clear();
226 226
 
227
-        $dql = 'SELECT PARTIAL p.{address.city, id} FROM ' . __NAMESPACE__ . '\\DDC93Person p WHERE p.name = :name';
227
+        $dql = 'SELECT PARTIAL p.{address.city, id} FROM '.__NAMESPACE__.'\\DDC93Person p WHERE p.name = :name';
228 228
 
229 229
         $person = $this->em->createQuery($dql)
230 230
             ->setParameter('name', 'Karl')
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $this->expectException(QueryException::class);
244 244
         $this->expectExceptionMessage('no field or association named address.asdfasdf');
245 245
 
246
-        $this->em->createQuery('SELECT p FROM ' . __NAMESPACE__ . '\\DDC93Person p WHERE p.address.asdfasdf IS NULL')
246
+        $this->em->createQuery('SELECT p FROM '.__NAMESPACE__.'\\DDC93Person p WHERE p.address.asdfasdf IS NULL')
247 247
             ->execute();
248 248
     }
249 249
 
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $this->expectException(QueryException::class);
253 253
         $this->expectExceptionMessage("no mapped field named 'address.asdfasdf'");
254 254
 
255
-        $this->em->createQuery('SELECT PARTIAL p.{id,address.asdfasdf} FROM ' . __NAMESPACE__ . '\\DDC93Person p')
255
+        $this->em->createQuery('SELECT PARTIAL p.{id,address.asdfasdf} FROM '.__NAMESPACE__.'\\DDC93Person p')
256 256
             ->execute();
257 257
     }
258 258
 
@@ -314,15 +314,15 @@  discard block
 block discarded – undo
314 314
         $this->expectException(MappingException::class);
315 315
         $this->expectExceptionMessage(
316 316
             sprintf(
317
-                'Infinite nesting detected for embedded property %s::nested. ' .
317
+                'Infinite nesting detected for embedded property %s::nested. '.
318 318
                 'You cannot embed an embeddable from the same type inside an embeddable.',
319
-                __NAMESPACE__ . '\\' . $declaredEmbeddableClassName
319
+                __NAMESPACE__.'\\'.$declaredEmbeddableClassName
320 320
             )
321 321
         );
322 322
 
323 323
         $this->schemaTool->createSchema(
324 324
             [
325
-            $this->em->getClassMetadata(__NAMESPACE__ . '\\' . $embeddableClassName),
325
+            $this->em->getClassMetadata(__NAMESPACE__.'\\'.$embeddableClassName),
326 326
             ]
327 327
         );
328 328
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $listener = new ListenerSecondLevelCacheTest(
203 203
             [
204
-                Events::postFlush => function () {
204
+                Events::postFlush => function() {
205 205
                     throw new \RuntimeException('post flush failure');
206 206
                 },
207 207
             ]
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         $listener = new ListenerSecondLevelCacheTest(
235 235
             [
236
-                Events::postUpdate => function () {
236
+                Events::postUpdate => function() {
237 237
                     throw new \RuntimeException('post update failure');
238 238
                 },
239 239
             ]
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         self::assertInstanceOf(State::class, $state);
253 253
         self::assertEquals($stateName, $state->getName());
254 254
 
255
-        $state->setName($stateName . uniqid());
255
+        $state->setName($stateName.uniqid());
256 256
 
257 257
         $this->em->persist($state);
258 258
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $this->em->clear();
280 280
 
281 281
         $listener = new ListenerSecondLevelCacheTest([
282
-            Events::postRemove => function () {
282
+            Events::postRemove => function() {
283 283
                 throw new \RuntimeException('post remove failure');
284 284
             },
285 285
         ]);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/CustomFunctionsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 use Doctrine\Tests\Models\CMS\CmsUser;
13 13
 use Doctrine\Tests\OrmFunctionalTestCase;
14 14
 
15
-require_once __DIR__ . '/../../TestInit.php';
15
+require_once __DIR__.'/../../TestInit.php';
16 16
 
17 17
 class CustomFunctionsTest extends OrmFunctionalTestCase
18 18
 {
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
         $this->em->flush();
33 33
 
34 34
         // Instead of defining the function with the class name, we use a callback
35
-        $this->em->getConfiguration()->addCustomStringFunction('FOO', function ($funcName) {
35
+        $this->em->getConfiguration()->addCustomStringFunction('FOO', function($funcName) {
36 36
             return new NoOp($funcName);
37 37
         });
38
-        $this->em->getConfiguration()->addCustomNumericFunction('BAR', function ($funcName) {
38
+        $this->em->getConfiguration()->addCustomNumericFunction('BAR', function($funcName) {
39 39
             return new NoOp($funcName);
40 40
         });
41 41
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/PaginationTest.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $iter = $paginator->getIterator();
135 135
         self::assertCount(9, $iter);
136 136
         $result = iterator_to_array($iter);
137
-        self::assertEquals($checkField . '0', $result[0]->{$checkField});
137
+        self::assertEquals($checkField.'0', $result[0]->{$checkField});
138 138
     }
139 139
 
140 140
     private function iterateWithOrderAscWithLimit($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         $iter = $paginator->getIterator();
151 151
         self::assertCount(3, $iter);
152 152
         $result = iterator_to_array($iter);
153
-        self::assertEquals($checkField . '0', $result[0]->{$checkField});
153
+        self::assertEquals($checkField.'0', $result[0]->{$checkField});
154 154
     }
155 155
 
156 156
     private function iterateWithOrderAscWithLimitAndOffset($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $iter = $paginator->getIterator();
167 167
         self::assertCount(3, $iter);
168 168
         $result = iterator_to_array($iter);
169
-        self::assertEquals($checkField . '3', $result[0]->{$checkField});
169
+        self::assertEquals($checkField.'3', $result[0]->{$checkField});
170 170
     }
171 171
 
172 172
     private function iterateWithOrderDesc($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $iter = $paginator->getIterator();
180 180
         self::assertCount(9, $iter);
181 181
         $result = iterator_to_array($iter);
182
-        self::assertEquals($checkField . '8', $result[0]->{$checkField});
182
+        self::assertEquals($checkField.'8', $result[0]->{$checkField});
183 183
     }
184 184
 
185 185
     private function iterateWithOrderDescWithLimit($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $iter = $paginator->getIterator();
195 195
         self::assertCount(3, $iter);
196 196
         $result = iterator_to_array($iter);
197
-        self::assertEquals($checkField . '8', $result[0]->{$checkField});
197
+        self::assertEquals($checkField.'8', $result[0]->{$checkField});
198 198
     }
199 199
 
200 200
     private function iterateWithOrderDescWithLimitAndOffset($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField)
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         $iter = $paginator->getIterator();
210 210
         self::assertCount(3, $iter);
211 211
         $result = iterator_to_array($iter);
212
-        self::assertEquals($checkField . '5', $result[0]->{$checkField});
212
+        self::assertEquals($checkField.'5', $result[0]->{$checkField});
213 213
     }
214 214
 
215 215
     /**
@@ -482,8 +482,8 @@  discard block
 block discarded – undo
482 482
     public function testIterateWithFetchJoinOneToManyWithOrderByColumnFromBoth($useOutputWalkers) : void
483 483
     {
484 484
         $dql     = 'SELECT c, d FROM Doctrine\Tests\Models\Pagination\Company c JOIN c.departments d ORDER BY c.name';
485
-        $dqlAsc  = $dql . ' ASC, d.name';
486
-        $dqlDesc = $dql . ' DESC, d.name';
485
+        $dqlAsc  = $dql.' ASC, d.name';
486
+        $dqlDesc = $dql.' DESC, d.name';
487 487
         $this->iterateWithOrderAsc($useOutputWalkers, true, $dqlAsc, 'name');
488 488
         $this->iterateWithOrderDesc($useOutputWalkers, true, $dqlDesc, 'name');
489 489
     }
@@ -491,8 +491,8 @@  discard block
 block discarded – undo
491 491
     public function testIterateWithFetchJoinOneToManyWithOrderByColumnFromBothWithLimitWithOutputWalker() : void
492 492
     {
493 493
         $dql     = 'SELECT c, d FROM Doctrine\Tests\Models\Pagination\Company c JOIN c.departments d ORDER BY c.name';
494
-        $dqlAsc  = $dql . ' ASC, d.name';
495
-        $dqlDesc = $dql . ' DESC, d.name';
494
+        $dqlAsc  = $dql.' ASC, d.name';
495
+        $dqlDesc = $dql.' DESC, d.name';
496 496
         $this->iterateWithOrderAscWithLimit(true, true, $dqlAsc, 'name');
497 497
         $this->iterateWithOrderDescWithLimit(true, true, $dqlDesc, 'name');
498 498
     }
@@ -503,8 +503,8 @@  discard block
 block discarded – undo
503 503
         $this->expectExceptionMessage('Cannot select distinct identifiers from query with LIMIT and ORDER BY on a column from a fetch joined to-many association. Use output walkers.');
504 504
 
505 505
         $dql     = 'SELECT c, d FROM Doctrine\Tests\Models\Pagination\Company c JOIN c.departments d ORDER BY c.name';
506
-        $dqlAsc  = $dql . ' ASC, d.name';
507
-        $dqlDesc = $dql . ' DESC, d.name';
506
+        $dqlAsc  = $dql.' ASC, d.name';
507
+        $dqlDesc = $dql.' DESC, d.name';
508 508
         $this->iterateWithOrderAscWithLimit(false, true, $dqlAsc, 'name');
509 509
         $this->iterateWithOrderDescWithLimit(false, true, $dqlDesc, 'name');
510 510
     }
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
         $users = iterator_to_array($paginator->getIterator());
589 589
         self::assertCount(9, $users);
590 590
         foreach ($users as $i => $user) {
591
-            self::assertEquals('username' . (8 - $i), $user->username);
591
+            self::assertEquals('username'.(8 - $i), $user->username);
592 592
         }
593 593
     }
594 594
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
             $company->logo->image_width  = 100 + $i;
739 739
             $company->logo->image_height = 100 + $i;
740 740
             $company->logo->company      = $company;
741
-            for ($j=0; $j<3; $j++) {
741
+            for ($j = 0; $j < 3; $j++) {
742 742
                 $department             = new Department();
743 743
                 $department->name       = sprintf('name%d%d', $i, $j);
744 744
                 $department->company    = $company;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/PostLoadEventTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -231,8 +231,8 @@  discard block
 block discarded – undo
231 231
         $eventManager->addEventListener([Events::postLoad], $listener);
232 232
 
233 233
         $this->em->find(CmsUser::class, $this->userId);
234
-        self::assertSame(1, $listener->countHandledEvents(CmsUser::class), CmsUser::class . ' should be handled once!');
235
-        self::assertSame(1, $listener->countHandledEvents(CmsEmail::class), CmsEmail::class . ' should be handled once!');
234
+        self::assertSame(1, $listener->countHandledEvents(CmsUser::class), CmsUser::class.' should be handled once!');
235
+        self::assertSame(1, $listener->countHandledEvents(CmsEmail::class), CmsEmail::class.' should be handled once!');
236 236
     }
237 237
 
238 238
     private function loadFixture()
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     {
309 309
         $object = $event->getObject();
310 310
         $class  = StaticClassNameConverter::getClass($object);
311
-        if (! isset($this->firedByClasses[$class])) {
311
+        if ( ! isset($this->firedByClasses[$class])) {
312 312
             $this->firedByClasses[$class] = 1;
313 313
         } else {
314 314
             $this->firedByClasses[$class]++;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/TypeValueSqlTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $entity = $this->em->find('\Doctrine\Tests\Models\CustomType\CustomTypeUpperCase', $id);
48 48
 
49 49
         self::assertEquals('foo', $entity->lowerCaseString, 'Entity holds lowercase string');
50
-        self::assertEquals('FOO', $this->em->getConnection()->fetchColumn('select lowerCaseString from customtype_uppercases where id=' . $entity->id . ''), 'Database holds uppercase string');
50
+        self::assertEquals('FOO', $this->em->getConnection()->fetchColumn('select lowerCaseString from customtype_uppercases where id='.$entity->id.''), 'Database holds uppercase string');
51 51
     }
52 52
 
53 53
     /**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $entity = $this->em->find('\Doctrine\Tests\Models\CustomType\CustomTypeUpperCase', $id);
70 70
         self::assertEquals('foo', $entity->namedLowerCaseString, 'Entity holds lowercase string');
71
-        self::assertEquals('FOO', $this->em->getConnection()->fetchColumn('select named_lower_case_string from customtype_uppercases where id=' . $entity->id . ''), 'Database holds uppercase string');
71
+        self::assertEquals('FOO', $this->em->getConnection()->fetchColumn('select named_lower_case_string from customtype_uppercases where id='.$entity->id.''), 'Database holds uppercase string');
72 72
 
73 73
         $entity->namedLowerCaseString = 'bar';
74 74
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $entity = $this->em->find('\Doctrine\Tests\Models\CustomType\CustomTypeUpperCase', $id);
83 83
         self::assertEquals('bar', $entity->namedLowerCaseString, 'Entity holds lowercase string');
84
-        self::assertEquals('BAR', $this->em->getConnection()->fetchColumn('select named_lower_case_string from customtype_uppercases where id=' . $entity->id . ''), 'Database holds uppercase string');
84
+        self::assertEquals('BAR', $this->em->getConnection()->fetchColumn('select named_lower_case_string from customtype_uppercases where id='.$entity->id.''), 'Database holds uppercase string');
85 85
     }
86 86
 
87 87
     public function testTypeValueSqlWithAssociations() : void
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $entity = $this->em->find(CustomTypeParent::class, $parentId);
109 109
 
110 110
         self::assertTrue($entity->customInteger < 0, 'Fetched customInteger negative');
111
-        self::assertEquals(1, $this->em->getConnection()->fetchColumn('select customInteger from customtype_parents where id=' . $entity->id . ''), 'Database has stored customInteger positive');
111
+        self::assertEquals(1, $this->em->getConnection()->fetchColumn('select customInteger from customtype_parents where id='.$entity->id.''), 'Database has stored customInteger positive');
112 112
 
113 113
         self::assertNotNull($parent->child, 'Child attached');
114 114
         self::assertCount(2, $entity->getMyFriends(), '2 friends attached');
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
         $this->em->clear();
129 129
 
130
-        $query = $this->em->createQuery('SELECT p, p.customInteger, c from Doctrine\Tests\Models\CustomType\CustomTypeParent p JOIN p.child c where p.id = ' . $parentId);
130
+        $query = $this->em->createQuery('SELECT p, p.customInteger, c from Doctrine\Tests\Models\CustomType\CustomTypeParent p JOIN p.child c where p.id = '.$parentId);
131 131
 
132 132
         $result = $query->getResult();
133 133
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/DatabaseDriverTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $driver = new DatabaseDriver($sm);
63 63
 
64 64
         foreach ($driver->getAllClassNames() as $className) {
65
-            if (! in_array(strtolower($className), $classNames, true)) {
65
+            if ( ! in_array(strtolower($className), $classNames, true)) {
66 66
                 continue;
67 67
             }
68 68
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         if (count($metadatas) !== count($classNames)) {
77
-            $this->fail("Have not found all classes matching the names '" . implode(', ', $classNames) . "' only tables " . implode(', ', array_keys($metadatas)));
77
+            $this->fail("Have not found all classes matching the names '".implode(', ', $classNames)."' only tables ".implode(', ', array_keys($metadatas)));
78 78
         }
79 79
         return $metadatas;
80 80
     }
Please login to merge, or discard this patch.