@@ -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 | |
@@ -35,9 +35,9 @@ discard block |
||
| 35 | 35 | $this->em->clear(); |
| 36 | 36 | |
| 37 | 37 | $query = $this->em->createQuery( |
| 38 | - 'SELECT b, h' . |
|
| 39 | - ' FROM Doctrine\Tests\ORM\Functional\Ticket\DDC3330_Building b' . |
|
| 40 | - ' LEFT JOIN b.halls h' . |
|
| 38 | + 'SELECT b, h'. |
|
| 39 | + ' FROM Doctrine\Tests\ORM\Functional\Ticket\DDC3330_Building b'. |
|
| 40 | + ' LEFT JOIN b.halls h'. |
|
| 41 | 41 | ' ORDER BY b.id ASC, h.name DESC' |
| 42 | 42 | ) |
| 43 | 43 | ->setMaxResults(3); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | for ($i = 0; $i < 10; $i++) { |
| 58 | 58 | $hall = new DDC3330_Hall(); |
| 59 | - $hall->name = 'HALL-' . $i; |
|
| 59 | + $hall->name = 'HALL-'.$i; |
|
| 60 | 60 | $building->addHall($hall); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -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 | |
@@ -81,14 +81,14 @@ discard block |
||
| 81 | 81 | $this->em->clear(); |
| 82 | 82 | |
| 83 | 83 | // fetch-join that foreign-key/primary-key entity association |
| 84 | - $dql = 'SELECT c, p FROM ' . DDC881PhoneCall::class . ' c JOIN c.phonenumber p'; |
|
| 84 | + $dql = 'SELECT c, p FROM '.DDC881PhoneCall::class.' c JOIN c.phonenumber p'; |
|
| 85 | 85 | $calls = $this->em->createQuery($dql)->getResult(); |
| 86 | 86 | |
| 87 | 87 | self::assertCount(2, $calls); |
| 88 | 88 | self::assertNotInstanceOf(GhostObjectInterface::class, $calls[0]->getPhoneNumber()); |
| 89 | 89 | self::assertNotInstanceOf(GhostObjectInterface::class, $calls[1]->getPhoneNumber()); |
| 90 | 90 | |
| 91 | - $dql = 'SELECT p, c FROM ' . DDC881PhoneNumber::class . ' p JOIN p.calls c'; |
|
| 91 | + $dql = 'SELECT p, c FROM '.DDC881PhoneNumber::class.' p JOIN p.calls c'; |
|
| 92 | 92 | $numbers = $this->em->createQuery($dql)->getResult(); |
| 93 | 93 | |
| 94 | 94 | self::assertCount(2, $numbers); |
@@ -135,13 +135,13 @@ |
||
| 135 | 135 | $cmf = new ClassMetadataFactory(); |
| 136 | 136 | $driver = $this->createMock(MappingDriver::class); |
| 137 | 137 | $driver->expects($this->at(0)) |
| 138 | - ->method('isTransient') |
|
| 139 | - ->with($this->equalTo(CmsUser::class)) |
|
| 140 | - ->will($this->returnValue(true)); |
|
| 138 | + ->method('isTransient') |
|
| 139 | + ->with($this->equalTo(CmsUser::class)) |
|
| 140 | + ->will($this->returnValue(true)); |
|
| 141 | 141 | $driver->expects($this->at(1)) |
| 142 | - ->method('isTransient') |
|
| 143 | - ->with($this->equalTo(CmsArticle::class)) |
|
| 144 | - ->will($this->returnValue(false)); |
|
| 142 | + ->method('isTransient') |
|
| 143 | + ->with($this->equalTo(CmsArticle::class)) |
|
| 144 | + ->will($this->returnValue(false)); |
|
| 145 | 145 | |
| 146 | 146 | $em = $this->createEntityManager($driver); |
| 147 | 147 | |
@@ -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 | |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | public function testHasGetMetadata_NamespaceSeparatorIsNotNormalized() |
| 113 | 113 | { |
| 114 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 114 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 115 | 115 | |
| 116 | - $metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']); |
|
| 116 | + $metadataDriver = $this->createAnnotationDriver([__DIR__.'/../../Models/Global/']); |
|
| 117 | 117 | |
| 118 | 118 | $entityManager = $this->createEntityManager($metadataDriver); |
| 119 | 119 | |
@@ -121,10 +121,10 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | self::assertSame( |
| 123 | 123 | $mf->getMetadataFor(DoctrineGlobal_Article::class), |
| 124 | - $mf->getMetadataFor('\\' . DoctrineGlobal_Article::class) |
|
| 124 | + $mf->getMetadataFor('\\'.DoctrineGlobal_Article::class) |
|
| 125 | 125 | ); |
| 126 | 126 | self::assertTrue($mf->hasMetadataFor(DoctrineGlobal_Article::class)); |
| 127 | - self::assertTrue($mf->hasMetadataFor('\\' . DoctrineGlobal_Article::class)); |
|
| 127 | + self::assertTrue($mf->hasMetadataFor('\\'.DoctrineGlobal_Article::class)); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | public function testAddDefaultDiscriminatorMap() |
| 153 | 153 | { |
| 154 | 154 | $cmf = new ClassMetadataFactory(); |
| 155 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/JoinedInheritanceType/']); |
|
| 155 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/JoinedInheritanceType/']); |
|
| 156 | 156 | $em = $this->createEntityManager($driver); |
| 157 | 157 | $cmf->setEntityManager($em); |
| 158 | 158 | |
@@ -216,10 +216,10 @@ discard block |
||
| 216 | 216 | $driverMock = new DriverMock(); |
| 217 | 217 | $config = new Configuration(); |
| 218 | 218 | |
| 219 | - $config->setProxyDir(__DIR__ . '/../../Proxies'); |
|
| 219 | + $config->setProxyDir(__DIR__.'/../../Proxies'); |
|
| 220 | 220 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 221 | 221 | |
| 222 | - if (! $conn) { |
|
| 222 | + if ( ! $conn) { |
|
| 223 | 223 | $conn = new ConnectionMock([], $driverMock, $config, new EventManager()); |
| 224 | 224 | } |
| 225 | 225 | $eventManager = $conn->getEventManager(); |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | public function testQuoteMetadata() |
| 311 | 311 | { |
| 312 | 312 | $cmf = new ClassMetadataFactory(); |
| 313 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Quote/']); |
|
| 313 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/Quote/']); |
|
| 314 | 314 | $em = $this->createEntityManager($driver); |
| 315 | 315 | $cmf->setEntityManager($em); |
| 316 | 316 | |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | $listener |
| 400 | 400 | ->expects($this->any()) |
| 401 | 401 | ->method('onClassMetadataNotFound') |
| 402 | - ->will($this->returnCallback(function (OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em, $test) { |
|
| 402 | + ->will($this->returnCallback(function(OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em, $test) { |
|
| 403 | 403 | $test->assertNull($args->getFoundMetadata()); |
| 404 | 404 | $test->assertSame('Foo', $args->getClassName()); |
| 405 | 405 | $test->assertSame($em, $args->getObjectManager()); |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | public function testInheritsIdGeneratorMappingFromEmbeddable() |
| 462 | 462 | { |
| 463 | 463 | $cmf = new ClassMetadataFactory(); |
| 464 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/DDC4006/']); |
|
| 464 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/DDC4006/']); |
|
| 465 | 465 | $em = $this->createEntityManager($driver); |
| 466 | 466 | $cmf->setEntityManager($em); |
| 467 | 467 | |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | { |
| 486 | 486 | $this->requestedClasses[] = $className; |
| 487 | 487 | |
| 488 | - if (! isset($this->mockMetadata[$className])) { |
|
| 488 | + if ( ! isset($this->mockMetadata[$className])) { |
|
| 489 | 489 | throw new \InvalidArgumentException("No mock metadata found for class $className."); |
| 490 | 490 | } |
| 491 | 491 | |
@@ -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 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | protected function loadDriver() |
| 21 | 21 | { |
| 22 | - return new XmlDriver(__DIR__ . DIRECTORY_SEPARATOR . 'xml'); |
|
| 22 | + return new XmlDriver(__DIR__.DIRECTORY_SEPARATOR.'xml'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public function testClassTableInheritanceDiscriminatorMap() |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function testValidateXmlSchema($xmlMappingFile) |
| 164 | 164 | { |
| 165 | - $xsdSchemaFile = __DIR__ . '/../../../../../doctrine-mapping.xsd'; |
|
| 165 | + $xsdSchemaFile = __DIR__.'/../../../../../doctrine-mapping.xsd'; |
|
| 166 | 166 | $dom = new \DOMDocument('UTF-8'); |
| 167 | 167 | |
| 168 | 168 | $dom->load($xmlMappingFile); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | public static function dataValidSchema() |
| 174 | 174 | { |
| 175 | - $list = glob(__DIR__ . '/xml/*.xml'); |
|
| 175 | + $list = glob(__DIR__.'/xml/*.xml'); |
|
| 176 | 176 | $invalid = ['Doctrine.Tests.Models.DDC889.DDC889Class.dcm']; |
| 177 | 177 | |
| 178 | 178 | $list = array_filter($list, function($item) use ($invalid) { |
@@ -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\Performance; |
| 6 | 6 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $size = 500; |
| 133 | 133 | $startPersist = microtime(true); |
| 134 | 134 | |
| 135 | - echo PHP_EOL . $label; |
|
| 135 | + echo PHP_EOL.$label; |
|
| 136 | 136 | |
| 137 | 137 | for ($i = 0; $i < $size; $i++) { |
| 138 | 138 | $em->persist(new Country("Country $i")); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $startPersist = microtime(true); |
| 167 | 167 | $country = new Country('Country'); |
| 168 | 168 | |
| 169 | - echo PHP_EOL . $label; |
|
| 169 | + echo PHP_EOL.$label; |
|
| 170 | 170 | |
| 171 | 171 | $em->persist($country); |
| 172 | 172 | $em->flush(); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $em->flush(); |
| 197 | 197 | $em->clear(); |
| 198 | 198 | |
| 199 | - printf("\n[%s] persist %s states and %s cities", number_format( microtime(true) - $startPersist, 6), count($states), count($cities)); |
|
| 199 | + printf("\n[%s] persist %s states and %s cities", number_format(microtime(true) - $startPersist, 6), count($states), count($cities)); |
|
| 200 | 200 | |
| 201 | 201 | $startFind = microtime(true); |
| 202 | 202 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $countries = []; |
| 222 | 222 | $startPersist = microtime(true); |
| 223 | 223 | |
| 224 | - echo PHP_EOL . $label; |
|
| 224 | + echo PHP_EOL.$label; |
|
| 225 | 225 | |
| 226 | 226 | for ($i = 0; $i < $size; $i++) { |
| 227 | 227 | $country = new Country("Country $i"); |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | $startPersist = microtime(true); |
| 257 | 257 | $rep = $em->getRepository(Country::class); |
| 258 | 258 | |
| 259 | - echo PHP_EOL . $label; |
|
| 259 | + echo PHP_EOL.$label; |
|
| 260 | 260 | |
| 261 | 261 | for ($i = 0; $i < $size; $i++) { |
| 262 | 262 | $em->persist(new Country("Country $i")); |
@@ -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; |
| 6 | 6 | |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | $conn = static::$sharedConn; |
| 335 | 335 | |
| 336 | 336 | // In case test is skipped, tearDown is called, but no setup may have run |
| 337 | - if (! $conn) { |
|
| 337 | + if ( ! $conn) { |
|
| 338 | 338 | return; |
| 339 | 339 | } |
| 340 | 340 | |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | if (isset($this->usedModelSets['directorytree'])) { |
| 411 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('file')); |
|
| 411 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('file')); |
|
| 412 | 412 | // MySQL doesn't know deferred deletions therefore only executing the second query gives errors. |
| 413 | 413 | $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL'); |
| 414 | 414 | $conn->executeUpdate('DELETE FROM Directory'); |
@@ -501,12 +501,12 @@ discard block |
||
| 501 | 501 | ) |
| 502 | 502 | ); |
| 503 | 503 | |
| 504 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups')); |
|
| 505 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-group')); |
|
| 506 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-phone')); |
|
| 507 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-user')); |
|
| 508 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-address')); |
|
| 509 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city')); |
|
| 504 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups')); |
|
| 505 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-group')); |
|
| 506 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-phone')); |
|
| 507 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-user')); |
|
| 508 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-address')); |
|
| 509 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city')); |
|
| 510 | 510 | } |
| 511 | 511 | |
| 512 | 512 | if (isset($this->usedModelSets['vct_onetoone'])) { |
@@ -619,7 +619,7 @@ discard block |
||
| 619 | 619 | $classes = []; |
| 620 | 620 | |
| 621 | 621 | foreach ($classNames as $className) { |
| 622 | - if (! isset(static::$entityTablesCreated[$className])) { |
|
| 622 | + if ( ! isset(static::$entityTablesCreated[$className])) { |
|
| 623 | 623 | static::$entityTablesCreated[$className] = true; |
| 624 | 624 | $classes[] = $this->em->getClassMetadata($className); |
| 625 | 625 | } |
@@ -639,25 +639,25 @@ discard block |
||
| 639 | 639 | { |
| 640 | 640 | $this->setUpDBALTypes(); |
| 641 | 641 | |
| 642 | - if (! isset(static::$sharedConn)) { |
|
| 642 | + if ( ! isset(static::$sharedConn)) { |
|
| 643 | 643 | static::$sharedConn = TestUtil::getConnection(); |
| 644 | 644 | } |
| 645 | 645 | |
| 646 | 646 | if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) { |
| 647 | 647 | if (in_array(static::$sharedConn->getDatabasePlatform()->getName(), ['mysql', 'postgresql'], true)) { |
| 648 | - static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/'); |
|
| 648 | + static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/'); |
|
| 649 | 649 | } elseif (static::$sharedConn->getDatabasePlatform()->getName() === 'oracle') { |
| 650 | - static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual'); |
|
| 650 | + static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual'); |
|
| 651 | 651 | } |
| 652 | 652 | } |
| 653 | 653 | |
| 654 | - if (! $this->em) { |
|
| 654 | + if ( ! $this->em) { |
|
| 655 | 655 | $this->em = $this->getEntityManager(); |
| 656 | 656 | $this->schemaTool = new SchemaTool($this->em); |
| 657 | 657 | } |
| 658 | 658 | |
| 659 | 659 | foreach ($this->usedModelSets as $setName => $bool) { |
| 660 | - if (! isset(static::$tablesCreated[$setName])) { |
|
| 660 | + if ( ! isset(static::$tablesCreated[$setName])) { |
|
| 661 | 661 | $this->setUpEntitySchema(static::$modelSets[$setName]); |
| 662 | 662 | |
| 663 | 663 | static::$tablesCreated[$setName] = true; |
@@ -732,8 +732,8 @@ discard block |
||
| 732 | 732 | |
| 733 | 733 | $config->setMetadataDriverImpl( |
| 734 | 734 | $mappingDriver ?? $config->newDefaultAnnotationDriver([ |
| 735 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 736 | - realpath(__DIR__ . '/Models/GeoNames'), |
|
| 735 | + realpath(__DIR__.'/Models/Cache'), |
|
| 736 | + realpath(__DIR__.'/Models/GeoNames'), |
|
| 737 | 737 | ]) |
| 738 | 738 | ); |
| 739 | 739 | |
@@ -789,7 +789,7 @@ discard block |
||
| 789 | 789 | $query['params'] ?: [] |
| 790 | 790 | ); |
| 791 | 791 | |
| 792 | - $queries .= $i . ". SQL: '" . $query['sql'] . "' Params: " . implode(', ', $params) . PHP_EOL; |
|
| 792 | + $queries .= $i.". SQL: '".$query['sql']."' Params: ".implode(', ', $params).PHP_EOL; |
|
| 793 | 793 | } |
| 794 | 794 | |
| 795 | 795 | $trace = $e->getTrace(); |
@@ -802,11 +802,11 @@ discard block |
||
| 802 | 802 | break; |
| 803 | 803 | } |
| 804 | 804 | |
| 805 | - $traceMsg .= $part['file'] . ':' . $part['line'] . PHP_EOL; |
|
| 805 | + $traceMsg .= $part['file'].':'.$part['line'].PHP_EOL; |
|
| 806 | 806 | } |
| 807 | 807 | } |
| 808 | 808 | |
| 809 | - $message = '[' . get_class($e) . '] ' . $e->getMessage() . PHP_EOL . PHP_EOL . 'With queries:' . PHP_EOL . $queries . PHP_EOL . 'Trace:' . PHP_EOL . $traceMsg; |
|
| 809 | + $message = '['.get_class($e).'] '.$e->getMessage().PHP_EOL.PHP_EOL.'With queries:'.PHP_EOL.$queries.PHP_EOL.'Trace:'.PHP_EOL.$traceMsg; |
|
| 810 | 810 | |
| 811 | 811 | throw new \Exception($message, (int) $e->getCode(), $e); |
| 812 | 812 | } |
@@ -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\Functional\Ticket; |
| 6 | 6 | use Doctrine\Tests\OrmFunctionalTestCase; |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function testIssue2059() |
| 32 | 32 | { |
| 33 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 33 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 34 | 34 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public function testLoadMetadataFromDatabase() |
| 54 | 54 | { |
| 55 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 55 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 56 | 56 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | public function testLoadMetadataWithForeignKeyFromDatabase() |
| 92 | 92 | { |
| 93 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 93 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 94 | 94 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 95 | 95 | } |
| 96 | 96 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | public function testDetectManyToManyTables() |
| 125 | 125 | { |
| 126 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 126 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 127 | 127 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 128 | 128 | } |
| 129 | 129 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | public function testLoadMetadataFromDatabaseDetail() |
| 165 | 165 | { |
| 166 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 166 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsForeignKeyConstraints()) { |
|
| 167 | 167 | $this->markTestSkipped('Platform does not support foreign keys.'); |
| 168 | 168 | } |
| 169 | 169 | |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | |
| 203 | 203 | // FIXME: Condition here is fugly. |
| 204 | 204 | // NOTE: PostgreSQL and SQL SERVER do not support UNSIGNED integer |
| 205 | - if (! $this->em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform and |
|
| 205 | + if ( ! $this->em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform and |
|
| 206 | 206 | ! $this->em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) { |
| 207 | 207 | self::assertNotNull($metadata->getProperty('columnUnsigned')); |
| 208 | 208 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | self::assertNotEmpty($indexes['index1']['columns']); |
| 246 | 246 | self::assertEquals( |
| 247 | - ['column_index1','column_index2'], |
|
| 247 | + ['column_index1', 'column_index2'], |
|
| 248 | 248 | $indexes['index1']['columns'] |
| 249 | 249 | ); |
| 250 | 250 | |
@@ -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 | |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | public function testCanRetrieveRepositoryFromClassNameWithLeadingBackslash() |
| 612 | 612 | { |
| 613 | 613 | self::assertSame( |
| 614 | - $this->em->getRepository('\\' . CmsUser::class), |
|
| 614 | + $this->em->getRepository('\\'.CmsUser::class), |
|
| 615 | 615 | $this->em->getRepository(CmsUser::class) |
| 616 | 616 | ); |
| 617 | 617 | } |