@@ -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 | |
@@ -1115,11 +1115,11 @@ discard block |
||
1115 | 1115 | { |
1116 | 1116 | public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) |
1117 | 1117 | { |
1118 | - if (!in_array("LocaleAware", $targetEntity->getReflectionClass()->getInterfaceNames(), true)) { |
|
1118 | + if ( ! in_array("LocaleAware", $targetEntity->getReflectionClass()->getInterfaceNames(), true)) { |
|
1119 | 1119 | return ""; |
1120 | 1120 | } |
1121 | 1121 | |
1122 | - return $targetTableAlias.'.locale = ' . $this->getParameter('locale'); // getParam uses connection to quote the value. |
|
1122 | + return $targetTableAlias.'.locale = '.$this->getParameter('locale'); // getParam uses connection to quote the value. |
|
1123 | 1123 | } |
1124 | 1124 | } |
1125 | 1125 | |
@@ -1131,7 +1131,7 @@ discard block |
||
1131 | 1131 | return ""; |
1132 | 1132 | } |
1133 | 1133 | |
1134 | - return $targetTableAlias.'.country = ' . $this->getParameter('country'); // getParam uses connection to quote the value. |
|
1134 | + return $targetTableAlias.'.country = '.$this->getParameter('country'); // getParam uses connection to quote the value. |
|
1135 | 1135 | } |
1136 | 1136 | } |
1137 | 1137 | |
@@ -1143,7 +1143,7 @@ discard block |
||
1143 | 1143 | return ""; |
1144 | 1144 | } |
1145 | 1145 | |
1146 | - return $targetTableAlias.'.name LIKE ' . $this->getParameter('prefix'); // getParam uses connection to quote the value. |
|
1146 | + return $targetTableAlias.'.name LIKE '.$this->getParameter('prefix'); // getParam uses connection to quote the value. |
|
1147 | 1147 | } |
1148 | 1148 | } |
1149 | 1149 | |
@@ -1155,7 +1155,7 @@ discard block |
||
1155 | 1155 | return ""; |
1156 | 1156 | } |
1157 | 1157 | |
1158 | - return $targetTableAlias.'.topic = ' . $this->getParameter('topic'); // getParam uses connection to quote the value. |
|
1158 | + return $targetTableAlias.'.topic = '.$this->getParameter('topic'); // getParam uses connection to quote the value. |
|
1159 | 1159 | } |
1160 | 1160 | } |
1161 | 1161 | |
@@ -1167,7 +1167,7 @@ discard block |
||
1167 | 1167 | return ""; |
1168 | 1168 | } |
1169 | 1169 | |
1170 | - return $targetTableAlias.'.name LIKE ' . $this->getParameter('name'); |
|
1170 | + return $targetTableAlias.'.name LIKE '.$this->getParameter('name'); |
|
1171 | 1171 | } |
1172 | 1172 | } |
1173 | 1173 | |
@@ -1179,7 +1179,7 @@ discard block |
||
1179 | 1179 | return ""; |
1180 | 1180 | } |
1181 | 1181 | |
1182 | - return $targetTableAlias.'."completed" = ' . $this->getParameter('completed'); |
|
1182 | + return $targetTableAlias.'."completed" = '.$this->getParameter('completed'); |
|
1183 | 1183 | } |
1184 | 1184 | } |
1185 | 1185 | |
@@ -1191,6 +1191,6 @@ discard block |
||
1191 | 1191 | return ""; |
1192 | 1192 | } |
1193 | 1193 | |
1194 | - return $targetTableAlias.'.id = ' . $this->getParameter('id'); |
|
1194 | + return $targetTableAlias.'.id = '.$this->getParameter('id'); |
|
1195 | 1195 | } |
1196 | 1196 | } |
@@ -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 | |
@@ -153,10 +153,10 @@ discard block |
||
153 | 153 | foreach ($content as $selection) { |
154 | 154 | $field = $result[$selection->field]; |
155 | 155 | $choiceList = $selection->choiceList; |
156 | - $fieldSelection = new DDC2602FieldSelection(); |
|
156 | + $fieldSelection = new DDC2602FieldSelection(); |
|
157 | 157 | |
158 | 158 | $fieldSelection->field = $field; |
159 | - $fieldSelection->choiceList = $field->choiceList->filter(function ($choice) use ($choiceList) { |
|
159 | + $fieldSelection->choiceList = $field->choiceList->filter(function($choice) use ($choiceList) { |
|
160 | 160 | return in_array($choice->id, $choiceList, true); |
161 | 161 | }); |
162 | 162 |
@@ -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"], true)) { |
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; |