@@ -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; |
| 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\Utility; |
| 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\Proxy; |
| 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\Mapping; |
| 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\Mapping; |
| 6 | 6 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | protected function loadDriver() |
| 22 | 22 | { |
| 23 | - return new XmlDriver(__DIR__ . DIRECTORY_SEPARATOR . 'xml'); |
|
| 23 | + return new XmlDriver(__DIR__.DIRECTORY_SEPARATOR.'xml'); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | 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 | static public function dataValidSchema() |
| 174 | 174 | { |
| 175 | - $list = glob(__DIR__ . '/xml/*.xml'); |
|
| 175 | + $list = glob(__DIR__.'/xml/*.xml'); |
|
| 176 | 176 | $invalid = [ |
| 177 | 177 | 'Doctrine.Tests.Models.DDC889.DDC889Class.dcm' |
| 178 | 178 | ]; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | return ! in_array(pathinfo($item, PATHINFO_FILENAME), $invalid); |
| 182 | 182 | }); |
| 183 | 183 | |
| 184 | - return array_map(function($item){ |
|
| 184 | + return array_map(function($item) { |
|
| 185 | 185 | return [$item]; |
| 186 | 186 | }, $list); |
| 187 | 187 | } |
@@ -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 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected function loadDriver() |
| 15 | 15 | { |
| 16 | - $path = __DIR__ . DIRECTORY_SEPARATOR . 'php'; |
|
| 16 | + $path = __DIR__.DIRECTORY_SEPARATOR.'php'; |
|
| 17 | 17 | |
| 18 | 18 | // Convert Annotation mapping information to PHP |
| 19 | 19 | // Uncomment this code if annotations changed and you want to update the PHP code |
@@ -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 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | protected function loadDriver() |
| 14 | 14 | { |
| 15 | - return new StaticPHPDriver(__DIR__ . DIRECTORY_SEPARATOR . 'php'); |
|
| 15 | + return new StaticPHPDriver(__DIR__.DIRECTORY_SEPARATOR.'php'); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | /** |
@@ -1241,7 +1241,7 @@ |
||
| 1241 | 1241 | $association->setCascade(['invalid']); |
| 1242 | 1242 | |
| 1243 | 1243 | $cm->addProperty($association); |
| 1244 | - } |
|
| 1244 | + } |
|
| 1245 | 1245 | |
| 1246 | 1246 | /** |
| 1247 | 1247 | * @group DDC-964 |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | use Doctrine\Tests\OrmTestCase; |
| 31 | 31 | use DoctrineGlobal_Article; |
| 32 | 32 | |
| 33 | -require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 33 | +require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 34 | 34 | |
| 35 | 35 | class ClassMetadataTest extends OrmTestCase |
| 36 | 36 | { |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | public function testEmptyFieldNameThrowsException() |
| 764 | 764 | { |
| 765 | 765 | $this->expectException(MappingException::class); |
| 766 | - $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '" . CMS\CmsUser::class . "'."); |
|
| 766 | + $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '".CMS\CmsUser::class."'."); |
|
| 767 | 767 | |
| 768 | 768 | $metadata = new ClassMetadata(CMS\CmsUser::class); |
| 769 | 769 | $metadata->initializeReflection(new RuntimeReflectionService()); |
@@ -909,12 +909,12 @@ discard block |
||
| 909 | 909 | $mapping = $cm->getSqlResultSetMapping('find-all'); |
| 910 | 910 | |
| 911 | 911 | self::assertEquals('__CLASS__', $mapping['entities'][0]['entityClass']); |
| 912 | - self::assertEquals(['name'=>'id','column'=>'id'], $mapping['entities'][0]['fields'][0]); |
|
| 913 | - self::assertEquals(['name'=>'name','column'=>'name'], $mapping['entities'][0]['fields'][1]); |
|
| 912 | + self::assertEquals(['name'=>'id', 'column'=>'id'], $mapping['entities'][0]['fields'][0]); |
|
| 913 | + self::assertEquals(['name'=>'name', 'column'=>'name'], $mapping['entities'][0]['fields'][1]); |
|
| 914 | 914 | |
| 915 | 915 | self::assertEquals(CMS\CmsEmail::class, $mapping['entities'][1]['entityClass']); |
| 916 | - self::assertEquals(['name'=>'id','column'=>'id'], $mapping['entities'][1]['fields'][0]); |
|
| 917 | - self::assertEquals(['name'=>'email','column'=>'email'], $mapping['entities'][1]['fields'][1]); |
|
| 916 | + self::assertEquals(['name'=>'id', 'column'=>'id'], $mapping['entities'][1]['fields'][0]); |
|
| 917 | + self::assertEquals(['name'=>'email', 'column'=>'email'], $mapping['entities'][1]['fields'][1]); |
|
| 918 | 918 | |
| 919 | 919 | self::assertEquals('scalarColumn', $mapping['columns'][0]['name']); |
| 920 | 920 | } |
@@ -1112,7 +1112,7 @@ discard block |
||
| 1112 | 1112 | $cm->addLifecycleCallback('notfound', 'postLoad'); |
| 1113 | 1113 | |
| 1114 | 1114 | $this->expectException(MappingException::class); |
| 1115 | - $this->expectExceptionMessage("Entity '" . CMS\CmsUser::class . "' has no method 'notfound' to be registered as lifecycle callback."); |
|
| 1115 | + $this->expectExceptionMessage("Entity '".CMS\CmsUser::class."' has no method 'notfound' to be registered as lifecycle callback."); |
|
| 1116 | 1116 | |
| 1117 | 1117 | $cm->validateLifecycleCallbacks(new RuntimeReflectionService()); |
| 1118 | 1118 | } |
@@ -1132,7 +1132,7 @@ discard block |
||
| 1132 | 1132 | $cm->addProperty($association); |
| 1133 | 1133 | |
| 1134 | 1134 | $this->expectException(MappingException::class); |
| 1135 | - $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '" . CMS\CmsUser::class . "#address'."); |
|
| 1135 | + $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '".CMS\CmsUser::class."#address'."); |
|
| 1136 | 1136 | |
| 1137 | 1137 | $cm->validateAssociations(); |
| 1138 | 1138 | } |
@@ -1458,6 +1458,6 @@ discard block |
||
| 1458 | 1458 | */ |
| 1459 | 1459 | public function propertyToColumnName($propertyName, $className = null) |
| 1460 | 1460 | { |
| 1461 | - return strtolower($this->classToTableName($className)) . '_' . $propertyName; |
|
| 1461 | + return strtolower($this->classToTableName($className)).'_'.$propertyName; |
|
| 1462 | 1462 | } |
| 1463 | 1463 | } |
@@ -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 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | protected function setUp() |
| 22 | 22 | { |
| 23 | 23 | parent::setUp(); |
| 24 | - $this->resolver = new DefaultEntityListenerResolver(); |
|
| 24 | + $this->resolver = new DefaultEntityListenerResolver(); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function testResolve() |