@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | public function tearDown() : void |
37 | 37 | { |
38 | - if (! $this->originalIncludePath) { |
|
38 | + if ( ! $this->originalIncludePath) { |
|
39 | 39 | return; |
40 | 40 | } |
41 | 41 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $config = Setup::createConfiguration(false, __DIR__); |
75 | 75 | $cache = $config->getMetadataCacheImpl(); |
76 | 76 | |
77 | - self::assertSame('dc2_' . \md5(__DIR__) . '_', $cache->getNamespace()); |
|
77 | + self::assertSame('dc2_'.\md5(__DIR__).'_', $cache->getNamespace()); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $config = Setup::createConfiguration(false, __DIR__, new ArrayCache()); |
86 | 86 | $cache = $config->getMetadataCacheImpl(); |
87 | 87 | |
88 | - self::assertSame('dc2_' . \md5(__DIR__) . '_', $cache->getNamespace()); |
|
88 | + self::assertSame('dc2_'.\md5(__DIR__).'_', $cache->getNamespace()); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $cache = $config->getMetadataCacheImpl(); |
101 | 101 | |
102 | 102 | self::assertSame($originalCache, $cache); |
103 | - self::assertSame('foo:dc2_' . \md5(__DIR__) . '_', $cache->getNamespace()); |
|
103 | + self::assertSame('foo:dc2_'.\md5(__DIR__).'_', $cache->getNamespace()); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $driver = new DatabaseDriver($sm); |
65 | 65 | |
66 | 66 | foreach ($driver->getAllClassNames() as $className) { |
67 | - if (! \in_array(\strtolower($className), $classNames, true)) { |
|
67 | + if ( ! \in_array(\strtolower($className), $classNames, true)) { |
|
68 | 68 | continue; |
69 | 69 | } |
70 | 70 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | if (\count($metadataList) !== \count($classNames)) { |
77 | - $this->fail("Have not found all classes matching the names '" . \implode(', ', $classNames) . "' only tables " . \implode(', ', \array_keys($metadataList))); |
|
77 | + $this->fail("Have not found all classes matching the names '".\implode(', ', $classNames)."' only tables ".\implode(', ', \array_keys($metadataList))); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | return $metadataList; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | protected function setUp() : void |
26 | 26 | { |
27 | - if (! \class_exists('GearmanClient', false)) { |
|
27 | + if ( ! \class_exists('GearmanClient', false)) { |
|
28 | 28 | $this->markTestSkipped('pecl/gearman is required for this test to run.'); |
29 | 29 | } |
30 | 30 | |
@@ -141,13 +141,13 @@ discard block |
||
141 | 141 | |
142 | 142 | self::assertTrue( |
143 | 143 | $this->maxRunTime > $forTime, |
144 | - 'Because of locking this tests should have run at least ' . $forTime . ' seconds, ' . |
|
145 | - 'but only did for ' . $this->maxRunTime . ' seconds.' |
|
144 | + 'Because of locking this tests should have run at least '.$forTime.' seconds, '. |
|
145 | + 'but only did for '.$this->maxRunTime.' seconds.' |
|
146 | 146 | ); |
147 | 147 | self::assertTrue( |
148 | 148 | $this->maxRunTime < $notLongerThan, |
149 | - 'The longest task should not run longer than ' . $notLongerThan . ' seconds, ' . |
|
150 | - 'but did for ' . $this->maxRunTime . ' seconds.' |
|
149 | + 'The longest task should not run longer than '.$notLongerThan.' seconds, '. |
|
150 | + 'but did for '.$this->maxRunTime.' seconds.' |
|
151 | 151 | ); |
152 | 152 | } |
153 | 153 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | while ($worker->work()) { |
38 | 38 | if ($worker->returnCode() !== GEARMAN_SUCCESS) { |
39 | - echo 'return_code: ' . $worker->returnCode() . "\n"; |
|
39 | + echo 'return_code: '.$worker->returnCode()."\n"; |
|
40 | 40 | break; |
41 | 41 | } |
42 | 42 | } |
@@ -61,14 +61,14 @@ discard block |
||
61 | 61 | |
62 | 62 | public function findWithLock($job) |
63 | 63 | { |
64 | - return $this->process($job, static function ($fixture, $em) { |
|
64 | + return $this->process($job, static function($fixture, $em) { |
|
65 | 65 | $entity = $em->find($fixture['entityName'], $fixture['entityId'], $fixture['lockMode']); |
66 | 66 | }); |
67 | 67 | } |
68 | 68 | |
69 | 69 | public function dqlWithLock($job) |
70 | 70 | { |
71 | - return $this->process($job, static function ($fixture, $em) { |
|
71 | + return $this->process($job, static function($fixture, $em) { |
|
72 | 72 | /** @var Doctrine\ORM\Query $query */ |
73 | 73 | $query = $em->createQuery($fixture['dql']); |
74 | 74 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | public function lock($job) |
82 | 82 | { |
83 | - return $this->process($job, static function ($fixture, $em) { |
|
83 | + return $this->process($job, static function($fixture, $em) { |
|
84 | 84 | $entity = $em->find($fixture['entityName'], $fixture['entityId']); |
85 | 85 | |
86 | 86 | $em->lock($entity, $fixture['lockMode']); |
@@ -89,18 +89,18 @@ discard block |
||
89 | 89 | |
90 | 90 | protected function processWorkload($job) |
91 | 91 | { |
92 | - echo 'Received job: ' . $job->handle() . ' for function ' . $job->functionName() . "\n"; |
|
92 | + echo 'Received job: '.$job->handle().' for function '.$job->functionName()."\n"; |
|
93 | 93 | |
94 | 94 | $workload = $job->workload(); |
95 | 95 | $workload = \unserialize($workload); |
96 | 96 | |
97 | - if (! isset($workload['conn']) || ! \is_array($workload['conn'])) { |
|
97 | + if ( ! isset($workload['conn']) || ! \is_array($workload['conn'])) { |
|
98 | 98 | throw new InvalidArgumentException('Missing Database parameters'); |
99 | 99 | } |
100 | 100 | |
101 | 101 | $this->em = $this->createEntityManager($workload['conn']); |
102 | 102 | |
103 | - if (! isset($workload['fixture'])) { |
|
103 | + if ( ! isset($workload['fixture'])) { |
|
104 | 104 | throw new InvalidArgumentException('Missing Fixture parameters'); |
105 | 105 | } |
106 | 106 | |
@@ -110,11 +110,11 @@ discard block |
||
110 | 110 | protected function createEntityManager($conn) |
111 | 111 | { |
112 | 112 | $config = new Configuration(); |
113 | - $config->setProxyDir(__DIR__ . '/../../../Proxies'); |
|
113 | + $config->setProxyDir(__DIR__.'/../../../Proxies'); |
|
114 | 114 | $config->setProxyNamespace('MyProject\Proxies'); |
115 | 115 | $config->setAutoGenerateProxyClasses(true); |
116 | 116 | |
117 | - $annotDriver = $config->newDefaultAnnotationDriver([__DIR__ . '/../../../Models/']); |
|
117 | + $annotDriver = $config->newDefaultAnnotationDriver([__DIR__.'/../../../Models/']); |
|
118 | 118 | $config->setMetadataDriverImpl($annotDriver); |
119 | 119 | |
120 | 120 | $cache = new ArrayCache(); |
@@ -335,8 +335,8 @@ discard block |
||
335 | 335 | 'locale' => ['value' => 'en', 'type' => DBALType::STRING], |
336 | 336 | ]; |
337 | 337 | |
338 | - self::assertEquals(\serialize($parameters), '' . $filter); |
|
339 | - self::assertEquals('' . $filter, '' . $filter2); |
|
338 | + self::assertEquals(\serialize($parameters), ''.$filter); |
|
339 | + self::assertEquals(''.$filter, ''.$filter2); |
|
340 | 340 | } |
341 | 341 | |
342 | 342 | public function testQueryCacheDependsOnFilters() : void |
@@ -1105,7 +1105,7 @@ discard block |
||
1105 | 1105 | return ''; |
1106 | 1106 | } |
1107 | 1107 | |
1108 | - return $targetTableAlias . '.deleted = 0'; |
|
1108 | + return $targetTableAlias.'.deleted = 0'; |
|
1109 | 1109 | } |
1110 | 1110 | } |
1111 | 1111 | |
@@ -1113,11 +1113,11 @@ discard block |
||
1113 | 1113 | { |
1114 | 1114 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
1115 | 1115 | { |
1116 | - if (! \in_array('LocaleAware', $targetEntity->getReflectionClass()->getInterfaceNames(), true)) { |
|
1116 | + if ( ! \in_array('LocaleAware', $targetEntity->getReflectionClass()->getInterfaceNames(), true)) { |
|
1117 | 1117 | return ''; |
1118 | 1118 | } |
1119 | 1119 | |
1120 | - return $targetTableAlias . '.locale = ' . $this->getParameter('locale'); // getParam uses connection to quote the value. |
|
1120 | + return $targetTableAlias.'.locale = '.$this->getParameter('locale'); // getParam uses connection to quote the value. |
|
1121 | 1121 | } |
1122 | 1122 | } |
1123 | 1123 | |
@@ -1129,7 +1129,7 @@ discard block |
||
1129 | 1129 | return ''; |
1130 | 1130 | } |
1131 | 1131 | |
1132 | - return $targetTableAlias . '.country = ' . $this->getParameter('country'); // getParam uses connection to quote the value. |
|
1132 | + return $targetTableAlias.'.country = '.$this->getParameter('country'); // getParam uses connection to quote the value. |
|
1133 | 1133 | } |
1134 | 1134 | } |
1135 | 1135 | |
@@ -1141,7 +1141,7 @@ discard block |
||
1141 | 1141 | return ''; |
1142 | 1142 | } |
1143 | 1143 | |
1144 | - return $targetTableAlias . '.name LIKE ' . $this->getParameter('prefix'); // getParam uses connection to quote the value. |
|
1144 | + return $targetTableAlias.'.name LIKE '.$this->getParameter('prefix'); // getParam uses connection to quote the value. |
|
1145 | 1145 | } |
1146 | 1146 | } |
1147 | 1147 | |
@@ -1153,7 +1153,7 @@ discard block |
||
1153 | 1153 | return ''; |
1154 | 1154 | } |
1155 | 1155 | |
1156 | - return $targetTableAlias . '.topic = ' . $this->getParameter('topic'); // getParam uses connection to quote the value. |
|
1156 | + return $targetTableAlias.'.topic = '.$this->getParameter('topic'); // getParam uses connection to quote the value. |
|
1157 | 1157 | } |
1158 | 1158 | } |
1159 | 1159 | |
@@ -1165,7 +1165,7 @@ discard block |
||
1165 | 1165 | return ''; |
1166 | 1166 | } |
1167 | 1167 | |
1168 | - return $targetTableAlias . '.name LIKE ' . $this->getParameter('name'); |
|
1168 | + return $targetTableAlias.'.name LIKE '.$this->getParameter('name'); |
|
1169 | 1169 | } |
1170 | 1170 | } |
1171 | 1171 | |
@@ -1177,7 +1177,7 @@ discard block |
||
1177 | 1177 | return ''; |
1178 | 1178 | } |
1179 | 1179 | |
1180 | - return $targetTableAlias . '."completed" = ' . $this->getParameter('completed'); |
|
1180 | + return $targetTableAlias.'."completed" = '.$this->getParameter('completed'); |
|
1181 | 1181 | } |
1182 | 1182 | } |
1183 | 1183 | |
@@ -1189,6 +1189,6 @@ discard block |
||
1189 | 1189 | return ''; |
1190 | 1190 | } |
1191 | 1191 | |
1192 | - return $targetTableAlias . '.id = ' . $this->getParameter('id'); |
|
1192 | + return $targetTableAlias.'.id = '.$this->getParameter('id'); |
|
1193 | 1193 | } |
1194 | 1194 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $iter = $paginator->getIterator(); |
136 | 136 | self::assertCount(9, $iter); |
137 | 137 | $result = \iterator_to_array($iter); |
138 | - self::assertEquals($checkField . '0', $result[0]->{$checkField}); |
|
138 | + self::assertEquals($checkField.'0', $result[0]->{$checkField}); |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | private function iterateWithOrderAscWithLimit($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField) |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $iter = $paginator->getIterator(); |
152 | 152 | self::assertCount(3, $iter); |
153 | 153 | $result = \iterator_to_array($iter); |
154 | - self::assertEquals($checkField . '0', $result[0]->{$checkField}); |
|
154 | + self::assertEquals($checkField.'0', $result[0]->{$checkField}); |
|
155 | 155 | } |
156 | 156 | |
157 | 157 | private function iterateWithOrderAscWithLimitAndOffset($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField) |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $iter = $paginator->getIterator(); |
168 | 168 | self::assertCount(3, $iter); |
169 | 169 | $result = \iterator_to_array($iter); |
170 | - self::assertEquals($checkField . '3', $result[0]->{$checkField}); |
|
170 | + self::assertEquals($checkField.'3', $result[0]->{$checkField}); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | private function iterateWithOrderDesc($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField) |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | $iter = $paginator->getIterator(); |
181 | 181 | self::assertCount(9, $iter); |
182 | 182 | $result = \iterator_to_array($iter); |
183 | - self::assertEquals($checkField . '8', $result[0]->{$checkField}); |
|
183 | + self::assertEquals($checkField.'8', $result[0]->{$checkField}); |
|
184 | 184 | } |
185 | 185 | |
186 | 186 | private function iterateWithOrderDescWithLimit($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField) |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $iter = $paginator->getIterator(); |
196 | 196 | self::assertCount(3, $iter); |
197 | 197 | $result = \iterator_to_array($iter); |
198 | - self::assertEquals($checkField . '8', $result[0]->{$checkField}); |
|
198 | + self::assertEquals($checkField.'8', $result[0]->{$checkField}); |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | private function iterateWithOrderDescWithLimitAndOffset($useOutputWalkers, $fetchJoinCollection, $baseDql, $checkField) |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $iter = $paginator->getIterator(); |
211 | 211 | self::assertCount(3, $iter); |
212 | 212 | $result = \iterator_to_array($iter); |
213 | - self::assertEquals($checkField . '5', $result[0]->{$checkField}); |
|
213 | + self::assertEquals($checkField.'5', $result[0]->{$checkField}); |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | /** |
@@ -483,8 +483,8 @@ discard block |
||
483 | 483 | public function testIterateWithFetchJoinOneToManyWithOrderByColumnFromBoth($useOutputWalkers) : void |
484 | 484 | { |
485 | 485 | $dql = 'SELECT c, d FROM Doctrine\Tests\Models\Pagination\Company c JOIN c.departments d ORDER BY c.name'; |
486 | - $dqlAsc = $dql . ' ASC, d.name'; |
|
487 | - $dqlDesc = $dql . ' DESC, d.name'; |
|
486 | + $dqlAsc = $dql.' ASC, d.name'; |
|
487 | + $dqlDesc = $dql.' DESC, d.name'; |
|
488 | 488 | $this->iterateWithOrderAsc($useOutputWalkers, true, $dqlAsc, 'name'); |
489 | 489 | $this->iterateWithOrderDesc($useOutputWalkers, true, $dqlDesc, 'name'); |
490 | 490 | } |
@@ -492,8 +492,8 @@ discard block |
||
492 | 492 | public function testIterateWithFetchJoinOneToManyWithOrderByColumnFromBothWithLimitWithOutputWalker() : void |
493 | 493 | { |
494 | 494 | $dql = 'SELECT c, d FROM Doctrine\Tests\Models\Pagination\Company c JOIN c.departments d ORDER BY c.name'; |
495 | - $dqlAsc = $dql . ' ASC, d.name'; |
|
496 | - $dqlDesc = $dql . ' DESC, d.name'; |
|
495 | + $dqlAsc = $dql.' ASC, d.name'; |
|
496 | + $dqlDesc = $dql.' DESC, d.name'; |
|
497 | 497 | $this->iterateWithOrderAscWithLimit(true, true, $dqlAsc, 'name'); |
498 | 498 | $this->iterateWithOrderDescWithLimit(true, true, $dqlDesc, 'name'); |
499 | 499 | } |
@@ -504,8 +504,8 @@ discard block |
||
504 | 504 | $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.'); |
505 | 505 | |
506 | 506 | $dql = 'SELECT c, d FROM Doctrine\Tests\Models\Pagination\Company c JOIN c.departments d ORDER BY c.name'; |
507 | - $dqlAsc = $dql . ' ASC, d.name'; |
|
508 | - $dqlDesc = $dql . ' DESC, d.name'; |
|
507 | + $dqlAsc = $dql.' ASC, d.name'; |
|
508 | + $dqlDesc = $dql.' DESC, d.name'; |
|
509 | 509 | $this->iterateWithOrderAscWithLimit(false, true, $dqlAsc, 'name'); |
510 | 510 | $this->iterateWithOrderDescWithLimit(false, true, $dqlDesc, 'name'); |
511 | 511 | } |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | $users = \iterator_to_array($paginator->getIterator()); |
590 | 590 | self::assertCount(9, $users); |
591 | 591 | foreach ($users as $i => $user) { |
592 | - self::assertEquals('username' . (8 - $i), $user->username); |
|
592 | + self::assertEquals('username'.(8 - $i), $user->username); |
|
593 | 593 | } |
594 | 594 | } |
595 | 595 | |
@@ -739,7 +739,7 @@ discard block |
||
739 | 739 | $company->logo->image_width = 100 + $i; |
740 | 740 | $company->logo->image_height = 100 + $i; |
741 | 741 | $company->logo->company = $company; |
742 | - for ($j=0; $j<3; $j++) { |
|
742 | + for ($j = 0; $j < 3; $j++) { |
|
743 | 743 | $department = new Department(); |
744 | 744 | $department->name = \sprintf('name%d%d', $i, $j); |
745 | 745 | $department->company = $company; |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | |
234 | 234 | $contracts = $this->em->createQuery('SELECT c FROM Doctrine\Tests\Models\Company\CompanyContract c ORDER BY c.id')->getScalarResult(); |
235 | 235 | |
236 | - $discrValues = \array_map(static function ($a) { |
|
236 | + $discrValues = \array_map(static function($a) { |
|
237 | 237 | return $a['c_discr']; |
238 | 238 | }, $contracts); |
239 | 239 | |
@@ -335,19 +335,19 @@ discard block |
||
335 | 335 | |
336 | 336 | $repos = $this->em->getRepository(CompanyContract::class); |
337 | 337 | $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]); |
338 | - self::assertCount(3, $contracts, 'There should be 3 entities related to ' . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyContract'"); |
|
338 | + self::assertCount(3, $contracts, 'There should be 3 entities related to '.$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyContract'"); |
|
339 | 339 | |
340 | 340 | $repos = $this->em->getRepository(CompanyFixContract::class); |
341 | 341 | $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]); |
342 | - self::assertCount(1, $contracts, 'There should be 1 entities related to ' . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFixContract'"); |
|
342 | + self::assertCount(1, $contracts, 'There should be 1 entities related to '.$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFixContract'"); |
|
343 | 343 | |
344 | 344 | $repos = $this->em->getRepository(CompanyFlexContract::class); |
345 | 345 | $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]); |
346 | - self::assertCount(2, $contracts, 'There should be 2 entities related to ' . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFlexContract'"); |
|
346 | + self::assertCount(2, $contracts, 'There should be 2 entities related to '.$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFlexContract'"); |
|
347 | 347 | |
348 | 348 | $repos = $this->em->getRepository(CompanyFlexUltraContract::class); |
349 | 349 | $contracts = $repos->findBy(['salesPerson' => $this->salesPerson->getId()]); |
350 | - self::assertCount(1, $contracts, 'There should be 1 entities related to ' . $this->salesPerson->getId() . " for 'Doctrine\Tests\Models\Company\CompanyFlexUltraContract'"); |
|
350 | + self::assertCount(1, $contracts, 'There should be 1 entities related to '.$this->salesPerson->getId()." for 'Doctrine\Tests\Models\Company\CompanyFlexUltraContract'"); |
|
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | { |
204 | 204 | $listener = new ListenerSecondLevelCacheTest( |
205 | 205 | [ |
206 | - Events::postFlush => static function () { |
|
206 | + Events::postFlush => static function() { |
|
207 | 207 | throw new RuntimeException('post flush failure'); |
208 | 208 | }, |
209 | 209 | ] |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $listener = new ListenerSecondLevelCacheTest( |
237 | 237 | [ |
238 | - Events::postUpdate => static function () { |
|
238 | + Events::postUpdate => static function() { |
|
239 | 239 | throw new RuntimeException('post update failure'); |
240 | 240 | }, |
241 | 241 | ] |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | self::assertInstanceOf(State::class, $state); |
255 | 255 | self::assertEquals($stateName, $state->getName()); |
256 | 256 | |
257 | - $state->setName($stateName . \uniqid()); |
|
257 | + $state->setName($stateName.\uniqid()); |
|
258 | 258 | |
259 | 259 | $this->em->persist($state); |
260 | 260 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | $this->em->clear(); |
282 | 282 | |
283 | 283 | $listener = new ListenerSecondLevelCacheTest([ |
284 | - Events::postRemove => static function () { |
|
284 | + Events::postRemove => static function() { |
|
285 | 285 | throw new RuntimeException('post remove failure'); |
286 | 286 | }, |
287 | 287 | ]); |
@@ -36,7 +36,7 @@ discard block |
||
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); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | foreach ($classes as $class) { |
74 | 74 | $ce = $validator->validateClass($class); |
75 | 75 | |
76 | - self::assertEmpty($ce, 'Invalid Modelset: ' . $modelSet . ' class ' . $class->getClassName() . ': ' . \implode("\n", $ce)); |
|
76 | + self::assertEmpty($ce, 'Invalid Modelset: '.$modelSet.' class '.$class->getClassName().': '.\implode("\n", $ce)); |
|
77 | 77 | } |
78 | 78 | } |
79 | 79 | } |