@@ -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 | |
@@ -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 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | public function testDirectoryAutoload() : void |
| 52 | 52 | { |
| 53 | - Setup::registerAutoloadDirectory(__DIR__ . '/../../../../../vendor/doctrine/common/lib'); |
|
| 53 | + Setup::registerAutoloadDirectory(__DIR__.'/../../../../../vendor/doctrine/common/lib'); |
|
| 54 | 54 | |
| 55 | 55 | self::assertCount($this->originalAutoloaderCount + 2, spl_autoload_functions()); |
| 56 | 56 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $config = Setup::createConfiguration(false, __DIR__); |
| 82 | 82 | $cache = $config->getMetadataCacheImpl(); |
| 83 | 83 | |
| 84 | - self::assertSame('dc2_' . md5(__DIR__) . '_', $cache->getNamespace()); |
|
| 84 | + self::assertSame('dc2_'.md5(__DIR__).'_', $cache->getNamespace()); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $config = Setup::createConfiguration(false, __DIR__, new ArrayCache()); |
| 93 | 93 | $cache = $config->getMetadataCacheImpl(); |
| 94 | 94 | |
| 95 | - self::assertSame('dc2_' . md5(__DIR__) . '_', $cache->getNamespace()); |
|
| 95 | + self::assertSame('dc2_'.md5(__DIR__).'_', $cache->getNamespace()); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $cache = $config->getMetadataCacheImpl(); |
| 108 | 108 | |
| 109 | 109 | self::assertSame($originalCache, $cache); |
| 110 | - self::assertSame('foo:dc2_' . md5(__DIR__) . '_', $cache->getNamespace()); |
|
| 110 | + self::assertSame('foo:dc2_'.md5(__DIR__).'_', $cache->getNamespace()); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -30,8 +30,8 @@ |
||
| 30 | 30 | public function testCmsModelSet(string $path) : void |
| 31 | 31 | { |
| 32 | 32 | $this->em->getConfiguration() |
| 33 | - ->getMetadataDriverImpl() |
|
| 34 | - ->addPaths([$path]); |
|
| 33 | + ->getMetadataDriverImpl() |
|
| 34 | + ->addPaths([$path]); |
|
| 35 | 35 | |
| 36 | 36 | self::assertEmpty($this->validator->validateMapping()); |
| 37 | 37 | } |
@@ -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\Mapping; |
| 6 | 6 | |
@@ -114,9 +114,9 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | public function testHasGetMetadataNamespaceSeparatorIsNotNormalized() : void |
| 116 | 116 | { |
| 117 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 117 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 118 | 118 | |
| 119 | - $metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']); |
|
| 119 | + $metadataDriver = $this->createAnnotationDriver([__DIR__.'/../../Models/Global/']); |
|
| 120 | 120 | |
| 121 | 121 | $entityManager = $this->createEntityManager($metadataDriver); |
| 122 | 122 | |
@@ -124,10 +124,10 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | self::assertSame( |
| 126 | 126 | $mf->getMetadataFor(DoctrineGlobalArticle::class), |
| 127 | - $mf->getMetadataFor('\\' . DoctrineGlobalArticle::class) |
|
| 127 | + $mf->getMetadataFor('\\'.DoctrineGlobalArticle::class) |
|
| 128 | 128 | ); |
| 129 | 129 | self::assertTrue($mf->hasMetadataFor(DoctrineGlobalArticle::class)); |
| 130 | - self::assertTrue($mf->hasMetadataFor('\\' . DoctrineGlobalArticle::class)); |
|
| 130 | + self::assertTrue($mf->hasMetadataFor('\\'.DoctrineGlobalArticle::class)); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | public function testAddDefaultDiscriminatorMap() : void |
| 156 | 156 | { |
| 157 | 157 | $cmf = new ClassMetadataFactory(); |
| 158 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/JoinedInheritanceType/']); |
|
| 158 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/JoinedInheritanceType/']); |
|
| 159 | 159 | $em = $this->createEntityManager($driver); |
| 160 | 160 | $cmf->setEntityManager($em); |
| 161 | 161 | |
@@ -219,10 +219,10 @@ discard block |
||
| 219 | 219 | $driverMock = new DriverMock(); |
| 220 | 220 | $config = new Configuration(); |
| 221 | 221 | |
| 222 | - $config->setProxyDir(__DIR__ . '/../../Proxies'); |
|
| 222 | + $config->setProxyDir(__DIR__.'/../../Proxies'); |
|
| 223 | 223 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 224 | 224 | |
| 225 | - if (! $conn) { |
|
| 225 | + if ( ! $conn) { |
|
| 226 | 226 | $conn = new ConnectionMock([], $driverMock, $config, new EventManager()); |
| 227 | 227 | } |
| 228 | 228 | $eventManager = $conn->getEventManager(); |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | public function testQuoteMetadata() : void |
| 313 | 313 | { |
| 314 | 314 | $cmf = new ClassMetadataFactory(); |
| 315 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Quote/']); |
|
| 315 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/Quote/']); |
|
| 316 | 316 | $em = $this->createEntityManager($driver); |
| 317 | 317 | $cmf->setEntityManager($em); |
| 318 | 318 | |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | $listener |
| 395 | 395 | ->expects($this->any()) |
| 396 | 396 | ->method('onClassMetadataNotFound') |
| 397 | - ->will($this->returnCallback(function (OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em, $test) { |
|
| 397 | + ->will($this->returnCallback(function(OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em, $test) { |
|
| 398 | 398 | $test->assertNull($args->getFoundMetadata()); |
| 399 | 399 | $test->assertSame('Foo', $args->getClassName()); |
| 400 | 400 | $test->assertSame($em, $args->getObjectManager()); |
@@ -456,7 +456,7 @@ discard block |
||
| 456 | 456 | public function testInheritsIdGeneratorMappingFromEmbeddable() : void |
| 457 | 457 | { |
| 458 | 458 | $cmf = new ClassMetadataFactory(); |
| 459 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/DDC4006/']); |
|
| 459 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/DDC4006/']); |
|
| 460 | 460 | $em = $this->createEntityManager($driver); |
| 461 | 461 | $cmf->setEntityManager($em); |
| 462 | 462 | |
@@ -479,7 +479,7 @@ discard block |
||
| 479 | 479 | ) : ClassMetadata { |
| 480 | 480 | $this->requestedClasses[] = $className; |
| 481 | 481 | |
| 482 | - if (! isset($this->mockMetadata[$className])) { |
|
| 482 | + if ( ! isset($this->mockMetadata[$className])) { |
|
| 483 | 483 | throw new \InvalidArgumentException(sprintf('No mock metadata found for class %s.', $className)); |
| 484 | 484 | } |
| 485 | 485 | |
@@ -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\Mapping\Symfony; |
| 6 | 6 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | ] |
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | - touch($filename = $this->dir . '/Foo' . $this->getFileExtension()); |
|
| 29 | + touch($filename = $this->dir.'/Foo'.$this->getFileExtension()); |
|
| 30 | 30 | self::assertEquals($filename, $driver->getLocator()->findMappingFile('MyNamespace\MySubnamespace\Entity\Foo')); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | ] |
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | - touch($filename = $this->dir . '/Foo.Bar' . $this->getFileExtension()); |
|
| 41 | + touch($filename = $this->dir.'/Foo.Bar'.$this->getFileExtension()); |
|
| 42 | 42 | self::assertEquals($filename, $driver->getLocator()->findMappingFile('MyNamespace\MySubnamespace\Entity\Foo\Bar')); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function testFindMappingNamespaceNotFound() : void |
| 60 | 60 | { |
| 61 | 61 | $this->expectException(MappingException::class); |
| 62 | - $this->expectExceptionMessage("No mapping file found named 'Foo" . $this->getFileExtension() . "' for class 'MyOtherNamespace\MySubnamespace\Entity\Foo'."); |
|
| 62 | + $this->expectExceptionMessage("No mapping file found named 'Foo".$this->getFileExtension()."' for class 'MyOtherNamespace\MySubnamespace\Entity\Foo'."); |
|
| 63 | 63 | |
| 64 | 64 | $driver = $this->getDriver( |
| 65 | 65 | [ |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | protected function setUp() : void |
| 74 | 74 | { |
| 75 | - $this->dir = sys_get_temp_dir() . '/abstract_driver_test'; |
|
| 75 | + $this->dir = sys_get_temp_dir().'/abstract_driver_test'; |
|
| 76 | 76 | @mkdir($this->dir, 0777, true); |
| 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\Mapping; |
| 6 | 6 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | protected function loadDriver() |
| 29 | 29 | { |
| 30 | - return new XmlDriver(__DIR__ . DIRECTORY_SEPARATOR . 'xml'); |
|
| 30 | + return new XmlDriver(__DIR__.DIRECTORY_SEPARATOR.'xml'); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function testClassTableInheritanceDiscriminatorMap() : void |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | */ |
| 171 | 171 | public function testValidateXmlSchema($xmlMappingFile) : void |
| 172 | 172 | { |
| 173 | - $xsdSchemaFile = __DIR__ . '/../../../../../doctrine-mapping.xsd'; |
|
| 173 | + $xsdSchemaFile = __DIR__.'/../../../../../doctrine-mapping.xsd'; |
|
| 174 | 174 | $dom = new \DOMDocument('UTF-8'); |
| 175 | 175 | |
| 176 | 176 | $dom->load($xmlMappingFile); |
@@ -180,14 +180,14 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | public static function dataValidSchema() |
| 182 | 182 | { |
| 183 | - $list = glob(__DIR__ . '/xml/*.xml'); |
|
| 183 | + $list = glob(__DIR__.'/xml/*.xml'); |
|
| 184 | 184 | $invalid = ['Doctrine.Tests.Models.DDC889.DDC889Class.dcm']; |
| 185 | 185 | |
| 186 | - $list = array_filter($list, function ($item) use ($invalid) { |
|
| 186 | + $list = array_filter($list, function($item) use ($invalid) { |
|
| 187 | 187 | return ! in_array(pathinfo($item, PATHINFO_FILENAME), $invalid, true); |
| 188 | 188 | }); |
| 189 | 189 | |
| 190 | - return array_map(function ($item) { |
|
| 190 | + return array_map(function($item) { |
|
| 191 | 191 | return [$item]; |
| 192 | 192 | }, $list); |
| 193 | 193 | } |
@@ -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\Mapping; |
| 6 | 6 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | use function strtoupper; |
| 37 | 37 | use function unserialize; |
| 38 | 38 | |
| 39 | -require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 39 | +require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 40 | 40 | |
| 41 | 41 | class ClassMetadataTest extends OrmTestCase |
| 42 | 42 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | */ |
| 180 | 180 | public function testMapAssociationInGlobalNamespace() : void |
| 181 | 181 | { |
| 182 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 182 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 183 | 183 | |
| 184 | 184 | $cm = new ClassMetadata(DoctrineGlobalArticle::class, $this->metadataBuildingContext); |
| 185 | 185 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_article')); |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | */ |
| 276 | 276 | public function testSetDiscriminatorMapInGlobalNamespace() : void |
| 277 | 277 | { |
| 278 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 278 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 279 | 279 | |
| 280 | 280 | $cm = new ClassMetadata('DoctrineGlobalUser', $this->metadataBuildingContext); |
| 281 | 281 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_user')); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | public function testSetSubClassesInGlobalNamespace() : void |
| 293 | 293 | { |
| 294 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 294 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 295 | 295 | |
| 296 | 296 | $cm = new ClassMetadata('DoctrineGlobalUser', $this->metadataBuildingContext); |
| 297 | 297 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_user')); |
@@ -806,7 +806,7 @@ discard block |
||
| 806 | 806 | public function testEmptyFieldNameThrowsException() : void |
| 807 | 807 | { |
| 808 | 808 | $this->expectException(MappingException::class); |
| 809 | - $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '" . CMS\CmsUser::class . "'."); |
|
| 809 | + $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '".CMS\CmsUser::class."'."); |
|
| 810 | 810 | |
| 811 | 811 | $cm = new ClassMetadata(CMS\CmsUser::class, $this->metadataBuildingContext); |
| 812 | 812 | $cm->setTable(new Mapping\TableMetadata('cms_users')); |
@@ -856,7 +856,7 @@ discard block |
||
| 856 | 856 | $cm->addLifecycleCallback('notfound', 'postLoad'); |
| 857 | 857 | |
| 858 | 858 | $this->expectException(MappingException::class); |
| 859 | - $this->expectExceptionMessage("Entity '" . CMS\CmsUser::class . "' has no method 'notfound' to be registered as lifecycle callback."); |
|
| 859 | + $this->expectExceptionMessage("Entity '".CMS\CmsUser::class."' has no method 'notfound' to be registered as lifecycle callback."); |
|
| 860 | 860 | |
| 861 | 861 | $cm->validateLifecycleCallbacks(new RuntimeReflectionService()); |
| 862 | 862 | } |
@@ -876,7 +876,7 @@ discard block |
||
| 876 | 876 | $cm->addProperty($association); |
| 877 | 877 | |
| 878 | 878 | $this->expectException(MappingException::class); |
| 879 | - $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '" . CMS\CmsUser::class . "#address'."); |
|
| 879 | + $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '".CMS\CmsUser::class."#address'."); |
|
| 880 | 880 | |
| 881 | 881 | $cm->validateAssociations(); |
| 882 | 882 | } |
@@ -1122,6 +1122,6 @@ discard block |
||
| 1122 | 1122 | */ |
| 1123 | 1123 | public function propertyToColumnName($propertyName, $className = null) |
| 1124 | 1124 | { |
| 1125 | - return strtolower($this->classToTableName($className)) . '_' . $propertyName; |
|
| 1125 | + return strtolower($this->classToTableName($className)).'_'.$propertyName; |
|
| 1126 | 1126 | } |
| 1127 | 1127 | } |
@@ -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\Mapping; |
| 6 | 6 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | protected function loadDriverForCMSModels() |
| 121 | 121 | { |
| 122 | 122 | $annotationDriver = $this->loadDriver(); |
| 123 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/CMS/']); |
|
| 123 | + $annotationDriver->addPaths([__DIR__.'/../../Models/CMS/']); |
|
| 124 | 124 | return $annotationDriver; |
| 125 | 125 | } |
| 126 | 126 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | public function testJoinTablesWithMappedSuperclassForAnnotationDriver() : void |
| 143 | 143 | { |
| 144 | 144 | $annotationDriver = $this->loadDriver(); |
| 145 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/DirectoryTree/']); |
|
| 145 | + $annotationDriver->addPaths([__DIR__.'/../../Models/DirectoryTree/']); |
|
| 146 | 146 | |
| 147 | 147 | $em = $this->getTestEntityManager(); |
| 148 | 148 | $em->getConfiguration()->setMetadataDriverImpl($annotationDriver); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | $this->expectException(MappingException::class); |
| 174 | 174 | $this->expectExceptionMessage( |
| 175 | - 'It is illegal to put an inverse side one-to-many or many-to-many association on ' . |
|
| 175 | + 'It is illegal to put an inverse side one-to-many or many-to-many association on '. |
|
| 176 | 176 | "mapped superclass 'Doctrine\Tests\ORM\Mapping\InvalidMappedSuperClass#users'" |
| 177 | 177 | ); |
| 178 | 178 | |
@@ -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\Query; |
| 6 | 6 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | $query->free(); |
| 67 | 67 | } catch (\Exception $e) { |
| 68 | - $this->fail($e->getMessage() . "\n" . $e->getTraceAsString()); |
|
| 68 | + $this->fail($e->getMessage()."\n".$e->getTraceAsString()); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | self::assertEquals($sqlToBeConfirmed, $sqlGenerated); |
@@ -1622,7 +1622,7 @@ discard block |
||
| 1622 | 1622 | public function testAliasDoesNotExceedPlatformDefinedLength() : void |
| 1623 | 1623 | { |
| 1624 | 1624 | $this->assertSqlGeneration( |
| 1625 | - 'SELECT m FROM ' . __NAMESPACE__ . '\\DDC1384Model m', |
|
| 1625 | + 'SELECT m FROM '.__NAMESPACE__.'\\DDC1384Model m', |
|
| 1626 | 1626 | 'SELECT t0."aVeryLongIdentifierThatShouldBeShortenedByTheSQLWalker_fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo" AS c0 FROM "DDC1384Model" t0' |
| 1627 | 1627 | ); |
| 1628 | 1628 | } |
@@ -1655,12 +1655,12 @@ discard block |
||
| 1655 | 1655 | public function testSelectWithArithmeticExpressionBeforeField() : void |
| 1656 | 1656 | { |
| 1657 | 1657 | $this->assertSqlGeneration( |
| 1658 | - 'SELECT - e.value AS value, e.id FROM ' . __NAMESPACE__ . '\DDC1474Entity e', |
|
| 1658 | + 'SELECT - e.value AS value, e.id FROM '.__NAMESPACE__.'\DDC1474Entity e', |
|
| 1659 | 1659 | 'SELECT -t0."value" AS c0, t0."id" AS c1 FROM "DDC1474Entity" t0' |
| 1660 | 1660 | ); |
| 1661 | 1661 | |
| 1662 | 1662 | $this->assertSqlGeneration( |
| 1663 | - 'SELECT e.id, + e.value AS value FROM ' . __NAMESPACE__ . '\DDC1474Entity e', |
|
| 1663 | + 'SELECT e.id, + e.value AS value FROM '.__NAMESPACE__.'\DDC1474Entity e', |
|
| 1664 | 1664 | 'SELECT t0."id" AS c0, +t0."value" AS c1 FROM "DDC1474Entity" t0' |
| 1665 | 1665 | ); |
| 1666 | 1666 | } |
@@ -2337,8 +2337,8 @@ discard block |
||
| 2337 | 2337 | public function testHavingRegressionUsingVariableWithMathOperatorsExpression($operator) : void |
| 2338 | 2338 | { |
| 2339 | 2339 | $this->assertSqlGeneration( |
| 2340 | - 'SELECT COUNT(u.name) AS countName FROM Doctrine\Tests\Models\CMS\CmsUser u HAVING 1 ' . $operator . ' countName > 0', |
|
| 2341 | - 'SELECT COUNT(t0."name") AS c0 FROM "cms_users" t0 HAVING 1 ' . $operator . ' c0 > 0' |
|
| 2340 | + 'SELECT COUNT(u.name) AS countName FROM Doctrine\Tests\Models\CMS\CmsUser u HAVING 1 '.$operator.' countName > 0', |
|
| 2341 | + 'SELECT COUNT(t0."name") AS c0 FROM "cms_users" t0 HAVING 1 '.$operator.' c0 > 0' |
|
| 2342 | 2342 | ); |
| 2343 | 2343 | } |
| 2344 | 2344 | |
@@ -2357,7 +2357,7 @@ discard block |
||
| 2357 | 2357 | |
| 2358 | 2358 | public function getSql(SqlWalker $sqlWalker) |
| 2359 | 2359 | { |
| 2360 | - return 'ABS(' . $sqlWalker->walkSimpleArithmeticExpression($this->simpleArithmeticExpression) . ')'; |
|
| 2360 | + return 'ABS('.$sqlWalker->walkSimpleArithmeticExpression($this->simpleArithmeticExpression).')'; |
|
| 2361 | 2361 | } |
| 2362 | 2362 | |
| 2363 | 2363 | public function parse(Parser $parser) |
@@ -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\Query; |
| 6 | 6 | |
@@ -30,9 +30,9 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function testAbstractSchemaNameSupportsClassnamesWithLeadingBackslash() : void |
| 32 | 32 | { |
| 33 | - $parser = $this->createParser('\\' . CmsUser::class); |
|
| 33 | + $parser = $this->createParser('\\'.CmsUser::class); |
|
| 34 | 34 | |
| 35 | - self::assertEquals('\\' . CmsUser::class, $parser->AbstractSchemaName()); |
|
| 35 | + self::assertEquals('\\'.CmsUser::class, $parser->AbstractSchemaName()); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |