@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -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\Hydration; |
| 6 | 6 | |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $rms = $this->rsm; |
| 86 | 86 | |
| 87 | - $this->rsm->addEntityResult(CmsUser::class,'u'); |
|
| 88 | - $this->rsm->addJoinedEntityResult(CmsPhonenumber::class,'p','u','phonenumbers'); |
|
| 87 | + $this->rsm->addEntityResult(CmsUser::class, 'u'); |
|
| 88 | + $this->rsm->addJoinedEntityResult(CmsPhonenumber::class, 'p', 'u', 'phonenumbers'); |
|
| 89 | 89 | $this->rsm->addFieldResult('u', 'id', 'id'); |
| 90 | 90 | $this->rsm->addFieldResult('u', 'name', 'name'); |
| 91 | 91 | $this->rsm->setDiscriminatorColumn('name', 'name'); |
@@ -278,8 +278,8 @@ discard block |
||
| 278 | 278 | { |
| 279 | 279 | $this->rsm->addEntityResult(LegacyUser::class, 'u'); |
| 280 | 280 | $this->rsm->addJoinedEntityResult(LegacyUserReference::class, 'lu', 'u', '_references'); |
| 281 | - $this->rsm->addMetaResult('lu', '_source', '_source', true, Type::getType('integer')); |
|
| 282 | - $this->rsm->addMetaResult('lu', '_target', '_target', true, Type::getType('integer')); |
|
| 281 | + $this->rsm->addMetaResult('lu', '_source', '_source', true, Type::getType('integer')); |
|
| 282 | + $this->rsm->addMetaResult('lu', '_target', '_target', true, Type::getType('integer')); |
|
| 283 | 283 | $this->rsm->addIndexBy('lu', '_source'); |
| 284 | 284 | |
| 285 | 285 | self::assertTrue($this->rsm->hasIndexBy('lu')); |
@@ -203,8 +203,8 @@ |
||
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | - * @group DDC-1663 |
|
| 207 | - */ |
|
| 206 | + * @group DDC-1663 |
|
| 207 | + */ |
|
| 208 | 208 | public function testAddNamedNativeQueryResultSetMappingWithoutFields() |
| 209 | 209 | { |
| 210 | 210 | $cm = new ClassMetadata(CmsUser::class, $this->metadataBuildingContext); |
@@ -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); |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -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\Tools; |
| 6 | 6 | |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -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\Tools\Console\Command; |
| 6 | 6 | |
@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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')); |
@@ -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\Tools\Console\Command; |
| 6 | 6 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | ], ['decorated' => false] |
| 56 | 56 | ); |
| 57 | 57 | |
| 58 | - self::assertEquals('Clearing all second-level cache collection regions' . PHP_EOL, $tester->getDisplay()); |
|
| 58 | + self::assertEquals('Clearing all second-level cache collection regions'.PHP_EOL, $tester->getDisplay()); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public function testClearByOwnerEntityClassName() |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | ], ['decorated' => false] |
| 71 | 71 | ); |
| 72 | 72 | |
| 73 | - self::assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay()); |
|
| 73 | + self::assertEquals('Clearing second-level cache for collection "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay()); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public function testClearCacheEntryName() |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ], ['decorated' => false] |
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | - self::assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"' . PHP_EOL, $tester->getDisplay()); |
|
| 89 | + self::assertEquals('Clearing second-level cache entry for collection "Doctrine\Tests\Models\Cache\State#cities" owner entity identified by "1"'.PHP_EOL, $tester->getDisplay()); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | public function testFlushRegionName() |
@@ -102,6 +102,6 @@ discard block |
||
| 102 | 102 | ], ['decorated' => false] |
| 103 | 103 | ); |
| 104 | 104 | |
| 105 | - self::assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"' . PHP_EOL, $tester->getDisplay()); |
|
| 105 | + self::assertEquals('Flushing cache provider configured for "Doctrine\Tests\Models\Cache\State#cities"'.PHP_EOL, $tester->getDisplay()); |
|
| 106 | 106 | } |
| 107 | 107 | } |
@@ -1,6 +1,6 @@ |
||
| 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 | |