@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $this->em->persist($group); |
| 38 | 38 | $this->em->flush(); |
| 39 | 39 | |
| 40 | - if (! $user->getGroups()->contains($group)) { |
|
| 40 | + if ( ! $user->getGroups()->contains($group)) { |
|
| 41 | 41 | $user->getGroups()->add($group); |
| 42 | 42 | $group->getUsers()->add($user); |
| 43 | 43 | $this->em->flush(); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Ticket; |
| 6 | 6 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | public function convertToDatabaseValue($value, AbstractPlatform $platform) |
| 80 | 80 | { |
| 81 | - if (! $value instanceof GH6141People) { |
|
| 81 | + if ( ! $value instanceof GH6141People) { |
|
| 82 | 82 | $value = GH6141People::get($value); |
| 83 | 83 | } |
| 84 | 84 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public static function get($value) |
| 123 | 123 | { |
| 124 | - if (! self::isValid($value)) { |
|
| 124 | + if ( ! self::isValid($value)) { |
|
| 125 | 125 | throw new \InvalidArgumentException(); |
| 126 | 126 | } |
| 127 | 127 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\Locking; |
| 6 | 6 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $article = new CmsArticle(); |
| 90 | 90 | |
| 91 | 91 | $this->expectException(\InvalidArgumentException::class); |
| 92 | - $this->expectExceptionMessage('Entity ' . CmsArticle::class); |
|
| 92 | + $this->expectExceptionMessage('Entity '.CmsArticle::class); |
|
| 93 | 93 | |
| 94 | 94 | $this->em->lock($article, LockMode::OPTIMISTIC, $article->version + 1); |
| 95 | 95 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | { |
| 139 | 139 | $writeLockSql = $this->em->getConnection()->getDatabasePlatform()->getWriteLockSQL(); |
| 140 | 140 | |
| 141 | - if (! $writeLockSql) { |
|
| 141 | + if ( ! $writeLockSql) { |
|
| 142 | 142 | $this->markTestSkipped('Database Driver has no Write Lock support.'); |
| 143 | 143 | } |
| 144 | 144 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | { |
| 174 | 174 | $readLockSql = $this->em->getConnection()->getDatabasePlatform()->getReadLockSQL(); |
| 175 | 175 | |
| 176 | - if (! $readLockSql) { |
|
| 176 | + if ( ! $readLockSql) { |
|
| 177 | 177 | $this->markTestSkipped('Database Driver has no Write Lock support.'); |
| 178 | 178 | } |
| 179 | 179 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | */ |
| 207 | 207 | public function testLockOptimisticNonVersionedThrowsExceptionInDQL() |
| 208 | 208 | { |
| 209 | - $dql = 'SELECT u FROM ' . CmsUser::class . " u WHERE u.username = 'gblanco'"; |
|
| 209 | + $dql = 'SELECT u FROM '.CmsUser::class." u WHERE u.username = 'gblanco'"; |
|
| 210 | 210 | |
| 211 | 211 | $this->expectException(OptimisticLockException::class); |
| 212 | 212 | $this->expectExceptionMessage('The optimistic lock on an entity failed.'); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\SchemaTool; |
| 6 | 6 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function testDropPartSchemaWithForeignKeys() |
| 59 | 59 | { |
| 60 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 60 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 61 | 61 | $this->markTestSkipped('Foreign Key test'); |
| 62 | 62 | } |
| 63 | 63 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Functional\SchemaTool; |
| 6 | 6 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | parent::setUp(); |
| 17 | 17 | if ($this->em->getConnection()->getDatabasePlatform()->getName() !== 'mysql') { |
| 18 | - $this->markTestSkipped('The ' . __CLASS__ . ' requires the use of mysql.'); |
|
| 18 | + $this->markTestSkipped('The '.__CLASS__.' requires the use of mysql.'); |
|
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 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 | |
@@ -334,8 +334,8 @@ discard block |
||
| 334 | 334 | 'locale' => ['value' => 'en', 'type' => DBALType::STRING], |
| 335 | 335 | ]; |
| 336 | 336 | |
| 337 | - self::assertEquals(serialize($parameters), '' . $filter); |
|
| 338 | - self::assertEquals('' . $filter, '' . $filter2); |
|
| 337 | + self::assertEquals(serialize($parameters), ''.$filter); |
|
| 338 | + self::assertEquals(''.$filter, ''.$filter2); |
|
| 339 | 339 | } |
| 340 | 340 | |
| 341 | 341 | public function testQueryCache_DependsOnFilters() |
@@ -1104,7 +1104,7 @@ discard block |
||
| 1104 | 1104 | return ''; |
| 1105 | 1105 | } |
| 1106 | 1106 | |
| 1107 | - return $targetTableAlias . '.deleted = 0'; |
|
| 1107 | + return $targetTableAlias.'.deleted = 0'; |
|
| 1108 | 1108 | } |
| 1109 | 1109 | } |
| 1110 | 1110 | |
@@ -1112,11 +1112,11 @@ discard block |
||
| 1112 | 1112 | { |
| 1113 | 1113 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
| 1114 | 1114 | { |
| 1115 | - if (! in_array('LocaleAware', $targetEntity->getReflectionClass()->getInterfaceNames(), true)) { |
|
| 1115 | + if ( ! in_array('LocaleAware', $targetEntity->getReflectionClass()->getInterfaceNames(), true)) { |
|
| 1116 | 1116 | return ''; |
| 1117 | 1117 | } |
| 1118 | 1118 | |
| 1119 | - return $targetTableAlias . '.locale = ' . $this->getParameter('locale'); // getParam uses connection to quote the value. |
|
| 1119 | + return $targetTableAlias.'.locale = '.$this->getParameter('locale'); // getParam uses connection to quote the value. |
|
| 1120 | 1120 | } |
| 1121 | 1121 | } |
| 1122 | 1122 | |
@@ -1128,7 +1128,7 @@ discard block |
||
| 1128 | 1128 | return ''; |
| 1129 | 1129 | } |
| 1130 | 1130 | |
| 1131 | - return $targetTableAlias . '.country = ' . $this->getParameter('country'); // getParam uses connection to quote the value. |
|
| 1131 | + return $targetTableAlias.'.country = '.$this->getParameter('country'); // getParam uses connection to quote the value. |
|
| 1132 | 1132 | } |
| 1133 | 1133 | } |
| 1134 | 1134 | |
@@ -1140,7 +1140,7 @@ discard block |
||
| 1140 | 1140 | return ''; |
| 1141 | 1141 | } |
| 1142 | 1142 | |
| 1143 | - return $targetTableAlias . '.name LIKE ' . $this->getParameter('prefix'); // getParam uses connection to quote the value. |
|
| 1143 | + return $targetTableAlias.'.name LIKE '.$this->getParameter('prefix'); // getParam uses connection to quote the value. |
|
| 1144 | 1144 | } |
| 1145 | 1145 | } |
| 1146 | 1146 | |
@@ -1152,7 +1152,7 @@ discard block |
||
| 1152 | 1152 | return ''; |
| 1153 | 1153 | } |
| 1154 | 1154 | |
| 1155 | - return $targetTableAlias . '.topic = ' . $this->getParameter('topic'); // getParam uses connection to quote the value. |
|
| 1155 | + return $targetTableAlias.'.topic = '.$this->getParameter('topic'); // getParam uses connection to quote the value. |
|
| 1156 | 1156 | } |
| 1157 | 1157 | } |
| 1158 | 1158 | |
@@ -1164,7 +1164,7 @@ discard block |
||
| 1164 | 1164 | return ''; |
| 1165 | 1165 | } |
| 1166 | 1166 | |
| 1167 | - return $targetTableAlias . '.name LIKE ' . $this->getParameter('name'); |
|
| 1167 | + return $targetTableAlias.'.name LIKE '.$this->getParameter('name'); |
|
| 1168 | 1168 | } |
| 1169 | 1169 | } |
| 1170 | 1170 | |
@@ -1176,7 +1176,7 @@ discard block |
||
| 1176 | 1176 | return ''; |
| 1177 | 1177 | } |
| 1178 | 1178 | |
| 1179 | - return $targetTableAlias . '."completed" = ' . $this->getParameter('completed'); |
|
| 1179 | + return $targetTableAlias.'."completed" = '.$this->getParameter('completed'); |
|
| 1180 | 1180 | } |
| 1181 | 1181 | } |
| 1182 | 1182 | |
@@ -1188,6 +1188,6 @@ discard block |
||
| 1188 | 1188 | return ''; |
| 1189 | 1189 | } |
| 1190 | 1190 | |
| 1191 | - return $targetTableAlias . '.id = ' . $this->getParameter('id'); |
|
| 1191 | + return $targetTableAlias.'.id = '.$this->getParameter('id'); |
|
| 1192 | 1192 | } |
| 1193 | 1193 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Doctrine\Tests\ORM\Cache; |
| 6 | 6 | |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | $uow->registerManaged($state, ['id' => $state->getId()], ['name' => $city->getName()]); |
| 398 | 398 | $uow->registerManaged($city, ['id' => $city->getId()], ['name' => $city->getName(), 'state' => $state]); |
| 399 | 399 | |
| 400 | - $this->region->addReturn('put', true); // put root entity |
|
| 400 | + $this->region->addReturn('put', true); // put root entity |
|
| 401 | 401 | $this->region->addReturn('put', false); // association fails |
| 402 | 402 | |
| 403 | 403 | self::assertFalse($this->queryCache->put($key, $rsm, $result)); |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | $uow->registerManaged($city2, ['id' => $city2->getId()], ['name' => $city2->getName(), 'state' => $state]); |
| 431 | 431 | $uow->registerManaged($state, ['id' => $state->getId()], ['name' => $state->getName(), 'cities' => $state->getCities()]); |
| 432 | 432 | |
| 433 | - $this->region->addReturn('put', true); // put root entity |
|
| 433 | + $this->region->addReturn('put', true); // put root entity |
|
| 434 | 434 | $this->region->addReturn('put', false); // collection association fails |
| 435 | 435 | |
| 436 | 436 | self::assertFalse($this->queryCache->put($key, $rsm, $result)); |
@@ -33,10 +33,10 @@ discard block |
||
| 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 |
||
| 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); |