@@ -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 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $this->em->flush(); |
| 44 | 44 | $this->em->clear(); |
| 45 | 45 | |
| 46 | - $children = $this->em->createQuery('select c,p from ' . __NAMESPACE__ . '\DDC371Child c ' |
|
| 46 | + $children = $this->em->createQuery('select c,p from '.__NAMESPACE__.'\DDC371Child c ' |
|
| 47 | 47 | . 'left join c.parent p where c.id = 1 and p.id = 1') |
| 48 | 48 | ->setHint(Query::HINT_REFRESH, true) |
| 49 | 49 | ->getResult(); |
@@ -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; |
| 6 | 6 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $driver = new DatabaseDriver($sm); |
| 57 | 57 | |
| 58 | 58 | foreach ($driver->getAllClassNames() as $className) { |
| 59 | - if (! in_array(strtolower($className), $classNames, true)) { |
|
| 59 | + if ( ! in_array(strtolower($className), $classNames, true)) { |
|
| 60 | 60 | continue; |
| 61 | 61 | } |
| 62 | 62 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if (count($metadatas) != count($classNames)) { |
| 71 | - $this->fail("Have not found all classes matching the names '" . implode(', ', $classNames) . "' only tables " . implode(', ', array_keys($metadatas))); |
|
| 71 | + $this->fail("Have not found all classes matching the names '".implode(', ', $classNames)."' only tables ".implode(', ', array_keys($metadatas))); |
|
| 72 | 72 | } |
| 73 | 73 | return $metadatas; |
| 74 | 74 | } |
@@ -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\Locking; |
| 6 | 6 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | protected function setUp() |
| 21 | 21 | { |
| 22 | - if (! class_exists('GearmanClient', false)) { |
|
| 22 | + if ( ! class_exists('GearmanClient', false)) { |
|
| 23 | 23 | $this->markTestSkipped('pecl/gearman is required for this test to run.'); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -135,11 +135,11 @@ discard block |
||
| 135 | 135 | $this->gearman->runTasks(); |
| 136 | 136 | |
| 137 | 137 | self::assertTrue($this->maxRunTime > $forTime, |
| 138 | - 'Because of locking this tests should have run at least ' . $forTime . ' seconds, ' . |
|
| 139 | - 'but only did for ' . $this->maxRunTime . ' seconds.'); |
|
| 138 | + 'Because of locking this tests should have run at least '.$forTime.' seconds, '. |
|
| 139 | + 'but only did for '.$this->maxRunTime.' seconds.'); |
|
| 140 | 140 | self::assertTrue($this->maxRunTime < $notLongerThan, |
| 141 | - 'The longest task should not run longer than ' . $notLongerThan . ' seconds, ' . |
|
| 142 | - 'but did for ' . $this->maxRunTime . ' seconds.' |
|
| 141 | + 'The longest task should not run longer than '.$notLongerThan.' seconds, '. |
|
| 142 | + 'but did for '.$this->maxRunTime.' seconds.' |
|
| 143 | 143 | ); |
| 144 | 144 | } |
| 145 | 145 | |
@@ -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 | } |