@@ -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\Models\DDC3597\Embeddable; |
| 6 | 6 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function setWidth($width) |
| 46 | 46 | { |
| 47 | - $this->width = (int)$width; |
|
| 47 | + $this->width = (int) $width; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -60,6 +60,6 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | public function setHeight($height) |
| 62 | 62 | { |
| 63 | - $this->height = (int)$height; |
|
| 63 | + $this->height = (int) $height; |
|
| 64 | 64 | } |
| 65 | 65 | } |
@@ -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 | |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | if (isset($this->usedModelSets['directorytree'])) { |
| 414 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("file")); |
|
| 414 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("file")); |
|
| 415 | 415 | // MySQL doesn't know deferred deletions therefore only executing the second query gives errors. |
| 416 | 416 | $conn->executeUpdate('DELETE FROM Directory WHERE parentDirectory_id IS NOT NULL'); |
| 417 | 417 | $conn->executeUpdate('DELETE FROM Directory'); |
@@ -504,12 +504,12 @@ discard block |
||
| 504 | 504 | ) |
| 505 | 505 | ); |
| 506 | 506 | |
| 507 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-users-groups')); |
|
| 508 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-group")); |
|
| 509 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-phone")); |
|
| 510 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-user")); |
|
| 511 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier("quote-address")); |
|
| 512 | - $conn->executeUpdate('DELETE FROM ' . $platform->quoteIdentifier('quote-city')); |
|
| 507 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-users-groups')); |
|
| 508 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-group")); |
|
| 509 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-phone")); |
|
| 510 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-user")); |
|
| 511 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier("quote-address")); |
|
| 512 | + $conn->executeUpdate('DELETE FROM '.$platform->quoteIdentifier('quote-city')); |
|
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | if (isset($this->usedModelSets['vct_onetoone'])) { |
@@ -644,15 +644,15 @@ discard block |
||
| 644 | 644 | { |
| 645 | 645 | $this->setUpDBALTypes(); |
| 646 | 646 | |
| 647 | - if (! isset(static::$sharedConn)) { |
|
| 647 | + if ( ! isset(static::$sharedConn)) { |
|
| 648 | 648 | static::$sharedConn = TestUtil::getConnection(); |
| 649 | 649 | } |
| 650 | 650 | |
| 651 | 651 | if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) { |
| 652 | 652 | if (in_array(static::$sharedConn->getDatabasePlatform()->getName(), ["mysql", "postgresql"])) { |
| 653 | - static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/'); |
|
| 653 | + static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/'); |
|
| 654 | 654 | } elseif (static::$sharedConn->getDatabasePlatform()->getName() === "oracle") { |
| 655 | - static::$sharedConn->executeQuery('SELECT 1 /*' . get_class($this) . '*/ FROM dual'); |
|
| 655 | + static::$sharedConn->executeQuery('SELECT 1 /*'.get_class($this).'*/ FROM dual'); |
|
| 656 | 656 | } |
| 657 | 657 | } |
| 658 | 658 | |
@@ -662,7 +662,7 @@ discard block |
||
| 662 | 662 | } |
| 663 | 663 | |
| 664 | 664 | foreach ($this->usedModelSets as $setName => $bool) { |
| 665 | - if (! isset(static::$tablesCreated[$setName])) { |
|
| 665 | + if ( ! isset(static::$tablesCreated[$setName])) { |
|
| 666 | 666 | $this->setUpEntitySchema(static::$modelSets[$setName]); |
| 667 | 667 | |
| 668 | 668 | static::$tablesCreated[$setName] = true; |
@@ -737,8 +737,8 @@ discard block |
||
| 737 | 737 | |
| 738 | 738 | $config->setMetadataDriverImpl( |
| 739 | 739 | $mappingDriver ?? $config->newDefaultAnnotationDriver([ |
| 740 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 741 | - realpath(__DIR__ . '/Models/GeoNames') |
|
| 740 | + realpath(__DIR__.'/Models/Cache'), |
|
| 741 | + realpath(__DIR__.'/Models/GeoNames') |
|
| 742 | 742 | ]) |
| 743 | 743 | ); |
| 744 | 744 | |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | |
| 816 | 816 | $message = "[".get_class($e)."] ".$e->getMessage().PHP_EOL.PHP_EOL."With queries:".PHP_EOL.$queries.PHP_EOL."Trace:".PHP_EOL.$traceMsg; |
| 817 | 817 | |
| 818 | - throw new \Exception($message, (int)$e->getCode(), $e); |
|
| 818 | + throw new \Exception($message, (int) $e->getCode(), $e); |
|
| 819 | 819 | } |
| 820 | 820 | |
| 821 | 821 | throw $e; |