@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | use function strtoupper; |
40 | 40 | use function unserialize; |
41 | 41 | |
42 | -require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
42 | +require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
43 | 43 | |
44 | 44 | class ClassMetadataTest extends OrmTestCase |
45 | 45 | { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function testMapAssociationInGlobalNamespace() : void |
184 | 184 | { |
185 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
185 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
186 | 186 | |
187 | 187 | $cm = new ClassMetadata(DoctrineGlobalArticle::class, null, $this->metadataBuildingContext); |
188 | 188 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_article')); |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | public function testSetDiscriminatorMapInGlobalNamespace() : void |
280 | 280 | { |
281 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
281 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
282 | 282 | |
283 | 283 | $cm = new ClassMetadata('DoctrineGlobalUser', null, $this->metadataBuildingContext); |
284 | 284 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_user')); |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | */ |
295 | 295 | public function testSetSubClassesInGlobalNamespace() : void |
296 | 296 | { |
297 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
297 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
298 | 298 | |
299 | 299 | $cm = new ClassMetadata('DoctrineGlobalUser', null, $this->metadataBuildingContext); |
300 | 300 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_user')); |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | public function testEmptyFieldNameThrowsException() : void |
810 | 810 | { |
811 | 811 | $this->expectException(MappingException::class); |
812 | - $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '" . CMS\CmsUser::class . "'."); |
|
812 | + $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '".CMS\CmsUser::class."'."); |
|
813 | 813 | |
814 | 814 | $cm = new ClassMetadata(CMS\CmsUser::class, null, $this->metadataBuildingContext); |
815 | 815 | $cm->setTable(new Mapping\TableMetadata('cms_users')); |
@@ -859,7 +859,7 @@ discard block |
||
859 | 859 | $cm->addLifecycleCallback('notfound', 'postLoad'); |
860 | 860 | |
861 | 861 | $this->expectException(MappingException::class); |
862 | - $this->expectExceptionMessage("Entity '" . CMS\CmsUser::class . "' has no method 'notfound' to be registered as lifecycle callback."); |
|
862 | + $this->expectExceptionMessage("Entity '".CMS\CmsUser::class."' has no method 'notfound' to be registered as lifecycle callback."); |
|
863 | 863 | |
864 | 864 | $cm->validateLifecycleCallbacks(new RuntimeReflectionService()); |
865 | 865 | } |
@@ -879,7 +879,7 @@ discard block |
||
879 | 879 | $cm->addProperty($association); |
880 | 880 | |
881 | 881 | $this->expectException(MappingException::class); |
882 | - $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '" . CMS\CmsUser::class . "#address'."); |
|
882 | + $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '".CMS\CmsUser::class."#address'."); |
|
883 | 883 | |
884 | 884 | $cm->validateAssociations(); |
885 | 885 | } |
@@ -1123,6 +1123,6 @@ discard block |
||
1123 | 1123 | */ |
1124 | 1124 | public function propertyToColumnName(string $propertyName, ?string $className = null) : string |
1125 | 1125 | { |
1126 | - return strtolower($this->classToTableName($className)) . '_' . $propertyName; |
|
1126 | + return strtolower($this->classToTableName($className)).'_'.$propertyName; |
|
1127 | 1127 | } |
1128 | 1128 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $driver = new DatabaseDriver($sm); |
62 | 62 | |
63 | 63 | foreach ($driver->getAllClassNames() as $className) { |
64 | - if (! in_array(strtolower($className), $classNames, true)) { |
|
64 | + if ( ! in_array(strtolower($className), $classNames, true)) { |
|
65 | 65 | continue; |
66 | 66 | } |
67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | if (count($metadataList) !== count($classNames)) { |
74 | - $this->fail("Have not found all classes matching the names '" . implode(', ', $classNames) . "' only tables " . implode(', ', array_keys($metadataList))); |
|
74 | + $this->fail("Have not found all classes matching the names '".implode(', ', $classNames)."' only tables ".implode(', ', array_keys($metadataList))); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | return $metadataList; |