Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheQueryCacheTest.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $this->em->clear();
53 53
 
54
-        $result2  = $this->em->createQuery($dql)
54
+        $result2 = $this->em->createQuery($dql)
55 55
             ->setCacheable(true)
56 56
             ->getResult();
57 57
 
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
 
255 255
         $this->em->clear();
256 256
 
257
-        $result2  = $this->em->createQuery($dql)
257
+        $result2 = $this->em->createQuery($dql)
258 258
             ->setCacheable(true)
259 259
             ->getResult();
260 260
 
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 
347 347
         $this->em->clear();
348 348
 
349
-        $result2  = $this->em->createQuery($dql)
349
+        $result2 = $this->em->createQuery($dql)
350 350
             ->setCacheable(true)
351 351
             ->getResult();
352 352
 
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 
395 395
         $this->em->clear();
396 396
 
397
-        $result2  = $this->em->createQuery($dql)->setCacheable(true)
397
+        $result2 = $this->em->createQuery($dql)->setCacheable(true)
398 398
                 ->setParameter('name', $name)
399 399
                 ->getResult();
400 400
 
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
         $result1    = $this->em->createQuery($dql)->setCacheable(true)->getResult();
423 423
 
424 424
         self::assertCount(2, $result1);
425
-        self::assertEquals($queryCount + 1 , $this->getCurrentQueryCount());
425
+        self::assertEquals($queryCount + 1, $this->getCurrentQueryCount());
426 426
         self::assertEquals($this->countries[0]->getId(), $result1[0]->getId());
427 427
         self::assertEquals($this->countries[1]->getId(), $result1[1]->getId());
428 428
         self::assertEquals($this->countries[0]->getName(), $result1[0]->getName());
@@ -438,11 +438,11 @@  discard block
 block discarded – undo
438 438
 
439 439
         $this->em->clear();
440 440
 
441
-        $result2  = $this->em->createQuery($dql)
441
+        $result2 = $this->em->createQuery($dql)
442 442
             ->setCacheable(true)
443 443
             ->getResult();
444 444
 
445
-        self::assertEquals($queryCount + 2 , $this->getCurrentQueryCount());
445
+        self::assertEquals($queryCount + 2, $this->getCurrentQueryCount());
446 446
         self::assertCount(2, $result2);
447 447
 
448 448
         self::assertEquals(5, $this->secondLevelCacheLogger->getPutCount());
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
         self::assertEquals($result1[0]->getName(), $result2[0]->getName());
460 460
         self::assertEquals($result1[1]->getName(), $result2[1]->getName());
461 461
 
462
-        self::assertEquals($queryCount + 2 , $this->getCurrentQueryCount());
462
+        self::assertEquals($queryCount + 2, $this->getCurrentQueryCount());
463 463
     }
464 464
 
465 465
     public function testBasicQueryFetchJoinsOneToMany()
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 
501 501
         $this->em->clear();
502 502
 
503
-        $result2  = $this->em->createQuery($dql)
503
+        $result2 = $this->em->createQuery($dql)
504 504
                 ->setCacheable(true)
505 505
                 ->getResult();
506 506
 
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
         $this->em->clear();
567 567
         $this->secondLevelCacheLogger->clearStats();
568 568
 
569
-        $result2  = $this->em->createQuery($dql)
569
+        $result2 = $this->em->createQuery($dql)
570 570
                 ->setCacheable(true)
571 571
                 ->getResult();
572 572
 
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
 
627 627
         $this->cache->evictEntityRegion(State::class);
628 628
 
629
-        $result2  = $this->em->createQuery($dql)
629
+        $result2 = $this->em->createQuery($dql)
630 630
                 ->setCacheable(true)
631 631
                 ->getResult();
632 632
 
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
 
670 670
         $this->cache->evictEntityRegion(City::class);
671 671
 
672
-        $result2  = $this->em->createQuery($dql)
672
+        $result2 = $this->em->createQuery($dql)
673 673
                 ->setCacheable(true)
674 674
                 ->getResult();
675 675
 
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
 
721 721
         $this->em->clear();
722 722
 
723
-        $result2  = $this->em->createNativeQuery($sql, $rsm)
723
+        $result2 = $this->em->createNativeQuery($sql, $rsm)
724 724
             ->setCacheable(true)
725 725
             ->getResult();
726 726
 
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
 
776 776
         $this->em->clear();
777 777
 
778
-        $result2  = $this->em->createQuery($dql)
778
+        $result2 = $this->em->createQuery($dql)
779 779
             ->setCacheable(true)
780 780
             ->setFirstResult(2)
781 781
             ->setMaxResults(1)
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
 
788 788
         $this->em->clear();
789 789
 
790
-        $result3  = $this->em->createQuery($dql)
790
+        $result3 = $this->em->createQuery($dql)
791 791
             ->setCacheable(true)
792 792
             ->getResult();
793 793
 
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
         $this->secondLevelCacheLogger->clearStats();
805 805
         $this->em->clear();
806 806
 
807
-        $getHash = function(AbstractQuery $query){
807
+        $getHash = function(AbstractQuery $query) {
808 808
             $method = new \ReflectionMethod($query, 'getHash');
809 809
             $method->setAccessible(true);
810 810
 
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
             ->getRegion()
838 838
             ->put($key, $entry);
839 839
 
840
-        $result2  = $this->em->createQuery($dql)
840
+        $result2 = $this->em->createQuery($dql)
841 841
             ->setCacheable(true)
842 842
             ->setLifetime(3600)
843 843
             ->getResult();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/SchemaValidatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     private function registerType(string $className)
38 38
     {
39
-        $type = constant($className . '::NAME');
39
+        $type = constant($className.'::NAME');
40 40
 
41 41
         if (DBALType::hasType($type)) {
42 42
             DBALType::overrideType($type, $className);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         foreach ($classes as $class) {
73 73
             $ce = $validator->validateClass($class);
74 74
 
75
-            self::assertEmpty($ce, "Invalid Modelset: " . $modelSet . " class " . $class->getClassName() . ": ". implode("\n", $ce));
75
+            self::assertEmpty($ce, "Invalid Modelset: ".$modelSet." class ".$class->getClassName().": ".implode("\n", $ce));
76 76
         }
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/ReferenceProxyTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         parent::setUp();
43 43
 
44 44
         $namespace = 'Doctrine\Tests\Proxies';
45
-        $directory = __DIR__ . '/../../Proxies';
45
+        $directory = __DIR__.'/../../Proxies';
46 46
 
47 47
         $this->resolver = new DefaultProxyResolver($namespace, $directory);
48 48
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $id = $this->createProduct();
98 98
 
99
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
99
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
100 100
         $class = $this->em->getClassMetadata(get_class($entity));
101 101
 
102 102
         self::assertEquals(ECommerceProduct::class, $class->getClassName());
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $id = $this->createProduct();
111 111
 
112
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
113
-        $entity2 = $this->em->find(ECommerceProduct::class , $id);
112
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
113
+        $entity2 = $this->em->find(ECommerceProduct::class, $id);
114 114
 
115 115
         self::assertSame($entity, $entity2);
116 116
         self::assertEquals('Doctrine Cookbook', $entity2->getName());
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $id = $this->createProduct();
125 125
 
126 126
         /* @var $entity ECommerceProduct */
127
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
127
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
128 128
 
129 129
         /* @var $clone ECommerceProduct */
130 130
         $clone = clone $entity;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $id = $this->createProduct();
150 150
 
151 151
         /* @var $entity ECommerceProduct */
152
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
152
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
153 153
 
154 154
         self::assertFalse($entity->__isInitialized(), "Pre-Condition: Object is unitialized proxy.");
155 155
 
@@ -166,14 +166,14 @@  discard block
 block discarded – undo
166 166
         $id = $this->createProduct();
167 167
 
168 168
         /* @var $entity ECommerceProduct */
169
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
169
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
170 170
 
171 171
         $entity->setName('Doctrine 2 Cookbook');
172 172
 
173 173
         $this->em->flush();
174 174
         $this->em->clear();
175 175
 
176
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
176
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
177 177
 
178 178
         self::assertEquals('Doctrine 2 Cookbook', $entity->getName());
179 179
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $id = $this->createProduct();
187 187
 
188 188
         /* @var $entity ECommerceProduct */
189
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
189
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
190 190
 
191 191
         self::assertFalse($entity->wakeUp);
192 192
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $id = $this->createProduct();
201 201
 
202 202
         /* @var $entity ECommerceProduct */
203
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
203
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
204 204
 
205 205
         self::assertFalse($entity->__isInitialized(), "Pre-Condition: Object is unitialized proxy.");
206 206
         self::assertEquals($id, $entity->getId());
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
         $id = $this->createAuction();
216 216
 
217 217
         /* @var $entity CompanyAuction */
218
-        $entity = $this->em->getReference(CompanyAuction::class , $id);
218
+        $entity = $this->em->getReference(CompanyAuction::class, $id);
219 219
 
220 220
         self::assertFalse($entity->__isInitialized(), "Pre-Condition: Object is unitialized proxy.");
221 221
         self::assertEquals($id, $entity->getId());
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $id = $this->createProduct();
253 253
 
254 254
         /* @var $entity ECommerceProduct */
255
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
255
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
256 256
 
257 257
         self::assertFalse($entity->__isInitialized(), "Pre-Condition: Object is unitialized proxy.");
258 258
         self::assertEquals('Doctrine Cookbook', $entity->getName());
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
         $id = $this->createProduct();
268 268
 
269 269
         /* @var $entity ECommerceProduct */
270
-        $entity = $this->em->getReference(ECommerceProduct::class , $id);
270
+        $entity = $this->em->getReference(ECommerceProduct::class, $id);
271 271
 
272 272
         $className = ClassUtils::getClass($entity);
273 273
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
         self::assertFalse($entity->__isInitialized());
276 276
         self::assertEquals(ECommerceProduct::class, $className);
277 277
 
278
-        $proxyFileName = $this->resolver->resolveProxyClassPath(ECommerceProduct::class );
278
+        $proxyFileName = $this->resolver->resolveProxyClassPath(ECommerceProduct::class);
279 279
 
280 280
         self::assertTrue(file_exists($proxyFileName), "Proxy file name cannot be found generically.");
281 281
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/HydrationTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Hydration;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Hydration/SimpleObjectHydratorTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         $rsm->setDiscriminatorColumn('p', 'discr');
34 34
 
35 35
         $resultSet = [
36
-              [
37
-                  'u__id'   => '1',
38
-                  'u__name' => 'Fabio B. Silva'
39
-              ],
36
+                [
37
+                    'u__id'   => '1',
38
+                    'u__name' => 'Fabio B. Silva'
39
+                ],
40 40
         ];
41 41
 
42 42
         $stmt     = new HydratorMockStatement($resultSet);
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
         $rsm->setDiscriminatorColumn('p', 'discr');
90 90
 
91 91
         $resultSet = [
92
-              [
93
-                  'p__id'   => '1',
94
-                  'p__name' => 'Fabio B. Silva',
95
-                  'discr'   => 'subworker'
96
-              ],
92
+                [
93
+                    'p__id'   => '1',
94
+                    'p__name' => 'Fabio B. Silva',
95
+                    'discr'   => 'subworker'
96
+                ],
97 97
         ];
98 98
 
99 99
         $stmt     = new HydratorMockStatement($resultSet);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Hydration;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/EntityRepositoryGeneratorTest.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function setUp()
35 35
     {
36 36
         $this->namespace   = uniqid('doctrine_');
37
-        $this->tmpDir      = \sys_get_temp_dir() . DIRECTORY_SEPARATOR . $this->namespace;
37
+        $this->tmpDir      = \sys_get_temp_dir().DIRECTORY_SEPARATOR.$this->namespace;
38 38
         \mkdir($this->tmpDir);
39 39
 
40 40
         $this->generator = new EntityGenerator();
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $em = $this->getTestEntityManager();
81 81
         $ns = $this->namespace;
82 82
 
83
-        $className = $ns . '\DDC3231User1Tmp';
83
+        $className = $ns.'\DDC3231User1Tmp';
84 84
         $this->writeEntityClass(DDC3231User1::class, $className);
85 85
 
86 86
         $rpath = $this->writeRepositoryClass($className);
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
         $repo = new \ReflectionClass($em->getRepository($className));
93 93
 
94 94
         self::assertTrue($repo->inNamespace());
95
-        self::assertSame($className . 'Repository', $repo->getName());
95
+        self::assertSame($className.'Repository', $repo->getName());
96 96
         self::assertSame(EntityRepository::class, $repo->getParentClass()->getName());
97 97
 
98
-        require_once __DIR__ . '/../../Models/DDC3231/DDC3231User1NoNamespace.php';
98
+        require_once __DIR__.'/../../Models/DDC3231/DDC3231User1NoNamespace.php';
99 99
 
100 100
         $className2 = 'DDC3231User1NoNamespaceTmp';
101 101
         $this->writeEntityClass(\DDC3231User1NoNamespace::class, $className2);
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $repo2 = new \ReflectionClass($em->getRepository($className2));
110 110
 
111 111
         self::assertFalse($repo2->inNamespace());
112
-        self::assertSame($className2 . 'Repository', $repo2->getName());
112
+        self::assertSame($className2.'Repository', $repo2->getName());
113 113
         self::assertSame(EntityRepository::class, $repo2->getParentClass()->getName());
114 114
     }
115 115
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $em = $this->getTestEntityManager();
122 122
         $ns = $this->namespace;
123 123
 
124
-        $className = $ns . '\DDC3231User2Tmp';
124
+        $className = $ns.'\DDC3231User2Tmp';
125 125
         $this->writeEntityClass(DDC3231User2::class, $className);
126 126
 
127 127
         $rpath = $this->writeRepositoryClass($className, DDC3231EntityRepository::class);
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
         $repo = new \ReflectionClass($em->getRepository($className));
135 135
 
136 136
         self::assertTrue($repo->inNamespace());
137
-        self::assertSame($className . 'Repository', $repo->getName());
137
+        self::assertSame($className.'Repository', $repo->getName());
138 138
         self::assertSame(DDC3231EntityRepository::class, $repo->getParentClass()->getName());
139 139
 
140 140
 
141
-        require_once __DIR__ . '/../../Models/DDC3231/DDC3231User2NoNamespace.php';
141
+        require_once __DIR__.'/../../Models/DDC3231/DDC3231User2NoNamespace.php';
142 142
 
143 143
         $className2 = 'DDC3231User2NoNamespaceTmp';
144 144
         $this->writeEntityClass('DDC3231User2NoNamespace', $className2);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $repo2 = new \ReflectionClass($em->getRepository($className2));
154 154
 
155 155
         self::assertFalse($repo2->inNamespace());
156
-        self::assertSame($className2 . 'Repository', $repo2->getName());
156
+        self::assertSame($className2.'Repository', $repo2->getName());
157 157
         self::assertSame(DDC3231EntityRepository::class, $repo2->getParentClass()->getName());
158 158
     }
159 159
 
@@ -172,11 +172,11 @@  discard block
 block discarded – undo
172 172
 
173 173
         // @todo guilhermeblanco Fix this test as changing Entity class should never be allowed.
174 174
         $metadata->setClassName($newClassName);
175
-        $metadata->setCustomRepositoryClassName($newClassName . "Repository");
175
+        $metadata->setCustomRepositoryClassName($newClassName."Repository");
176 176
 
177 177
         $this->generator->writeEntityClass($metadata, $this->tmpDir);
178 178
 
179
-        require $this->tmpDir . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $newClassName) . ".php";
179
+        require $this->tmpDir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $newClassName).".php";
180 180
     }
181 181
 
182 182
     /**
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
     {
189 189
         $this->repositoryGenerator->setDefaultRepositoryName($defaultRepository);
190 190
 
191
-        $this->repositoryGenerator->writeEntityRepositoryClass($className . 'Repository', $this->tmpDir);
191
+        $this->repositoryGenerator->writeEntityRepositoryClass($className.'Repository', $this->tmpDir);
192 192
 
193
-        return $this->tmpDir . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $className) . 'Repository.php';
193
+        return $this->tmpDir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $className).'Repository.php';
194 194
     }
195 195
 
196 196
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/MetadataFilterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Console;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Tools/Console/Command/GenerateRepositoriesCommandTest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Console\Command;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         parent::setUp();
34 34
 
35
-        $this->path = \sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid('doctrine_');
35
+        $this->path = \sys_get_temp_dir().DIRECTORY_SEPARATOR.uniqid('doctrine_');
36 36
 
37 37
         \mkdir($this->path);
38 38
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         $metadataDriver->addPaths(
43 43
             [
44
-            __DIR__ . '/../../../../Models/DDC3231/'
44
+            __DIR__.'/../../../../Models/DDC3231/'
45 45
             ]
46 46
         );
47 47
 
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
         $this->generateRepositories('DDC3231User1');
89 89
 
90 90
         $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User1Repository';
91
-        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php';
91
+        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php';
92 92
 
93
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname);
94
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php');
93
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname);
94
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php');
95 95
 
96
-        require $this->path . DIRECTORY_SEPARATOR . $fname;
97
-        require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User1NoNamespaceRepository.php';
96
+        require $this->path.DIRECTORY_SEPARATOR.$fname;
97
+        require $this->path.DIRECTORY_SEPARATOR.'DDC3231User1NoNamespaceRepository.php';
98 98
 
99 99
         self::assertTrue(class_exists($cname));
100 100
         self::assertTrue(class_exists('DDC3231User1NoNamespaceRepository'));
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
         $this->generateRepositories('DDC3231User2', DDC3231EntityRepository::class);
112 112
 
113 113
         $cname = 'Doctrine\Tests\Models\DDC3231\DDC3231User2Repository';
114
-        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname) . '.php';
114
+        $fname = str_replace('\\', DIRECTORY_SEPARATOR, $cname).'.php';
115 115
 
116
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . $fname);
117
-        self::assertFileExists($this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php');
116
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.$fname);
117
+        self::assertFileExists($this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php');
118 118
 
119
-        require $this->path . DIRECTORY_SEPARATOR . $fname;
120
-        require $this->path . DIRECTORY_SEPARATOR . 'DDC3231User2NoNamespaceRepository.php';
119
+        require $this->path.DIRECTORY_SEPARATOR.$fname;
120
+        require $this->path.DIRECTORY_SEPARATOR.'DDC3231User2NoNamespaceRepository.php';
121 121
 
122 122
         self::assertTrue(class_exists($cname));
123 123
         self::assertTrue(class_exists('DDC3231User2NoNamespaceRepository'));
Please login to merge, or discard this patch.