@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | parent::setUp(); |
| 18 | 18 | |
| 19 | - if (! $this->em->getConnection()->getDatabasePlatform()->supportsSequences()) { |
|
| 19 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->supportsSequences()) { |
|
| 20 | 20 | $this->markTestSkipped('Only working for Databases that support sequences.'); |
| 21 | 21 | } |
| 22 | 22 | |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function testAbstractSchemaNameSupportsClassnamesWithLeadingBackslash() : void |
| 32 | 32 | { |
| 33 | - $parser = $this->createParser('\\' . CmsUser::class); |
|
| 33 | + $parser = $this->createParser('\\'.CmsUser::class); |
|
| 34 | 34 | |
| 35 | - self::assertEquals('\\' . CmsUser::class, $parser->AbstractSchemaName()); |
|
| 35 | + self::assertEquals('\\'.CmsUser::class, $parser->AbstractSchemaName()); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | ] |
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | - touch($filename = $this->dir . '/Foo' . $this->getFileExtension()); |
|
| 29 | + touch($filename = $this->dir.'/Foo'.$this->getFileExtension()); |
|
| 30 | 30 | self::assertEquals($filename, $driver->getLocator()->findMappingFile('MyNamespace\MySubnamespace\Entity\Foo')); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | ] |
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | - touch($filename = $this->dir . '/Foo.Bar' . $this->getFileExtension()); |
|
| 41 | + touch($filename = $this->dir.'/Foo.Bar'.$this->getFileExtension()); |
|
| 42 | 42 | self::assertEquals($filename, $driver->getLocator()->findMappingFile('MyNamespace\MySubnamespace\Entity\Foo\Bar')); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function testFindMappingNamespaceNotFound() : void |
| 60 | 60 | { |
| 61 | 61 | $this->expectException(MappingException::class); |
| 62 | - $this->expectExceptionMessage("No mapping file found named 'Foo" . $this->getFileExtension() . "' for class 'MyOtherNamespace\MySubnamespace\Entity\Foo'."); |
|
| 62 | + $this->expectExceptionMessage("No mapping file found named 'Foo".$this->getFileExtension()."' for class 'MyOtherNamespace\MySubnamespace\Entity\Foo'."); |
|
| 63 | 63 | |
| 64 | 64 | $driver = $this->getDriver( |
| 65 | 65 | [ |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | protected function setUp() : void |
| 74 | 74 | { |
| 75 | - $this->dir = sys_get_temp_dir() . '/abstract_driver_test'; |
|
| 75 | + $this->dir = sys_get_temp_dir().'/abstract_driver_test'; |
|
| 76 | 76 | @mkdir($this->dir, 0777, true); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | use function strtoupper; |
| 37 | 37 | use function unserialize; |
| 38 | 38 | |
| 39 | -require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 39 | +require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 40 | 40 | |
| 41 | 41 | class ClassMetadataTest extends OrmTestCase |
| 42 | 42 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | */ |
| 180 | 180 | public function testMapAssociationInGlobalNamespace() : void |
| 181 | 181 | { |
| 182 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 182 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 183 | 183 | |
| 184 | 184 | $cm = new ClassMetadata(DoctrineGlobalArticle::class, $this->metadataBuildingContext); |
| 185 | 185 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_article')); |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | */ |
| 276 | 276 | public function testSetDiscriminatorMapInGlobalNamespace() : void |
| 277 | 277 | { |
| 278 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 278 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 279 | 279 | |
| 280 | 280 | $cm = new ClassMetadata('DoctrineGlobalUser', $this->metadataBuildingContext); |
| 281 | 281 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_user')); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | public function testSetSubClassesInGlobalNamespace() : void |
| 293 | 293 | { |
| 294 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 294 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
| 295 | 295 | |
| 296 | 296 | $cm = new ClassMetadata('DoctrineGlobalUser', $this->metadataBuildingContext); |
| 297 | 297 | $cm->setTable(new Mapping\TableMetadata('doctrine_global_user')); |
@@ -806,7 +806,7 @@ discard block |
||
| 806 | 806 | public function testEmptyFieldNameThrowsException() : void |
| 807 | 807 | { |
| 808 | 808 | $this->expectException(MappingException::class); |
| 809 | - $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '" . CMS\CmsUser::class . "'."); |
|
| 809 | + $this->expectExceptionMessage("The field or association mapping misses the 'fieldName' attribute in entity '".CMS\CmsUser::class."'."); |
|
| 810 | 810 | |
| 811 | 811 | $cm = new ClassMetadata(CMS\CmsUser::class, $this->metadataBuildingContext); |
| 812 | 812 | $cm->setTable(new Mapping\TableMetadata('cms_users')); |
@@ -856,7 +856,7 @@ discard block |
||
| 856 | 856 | $cm->addLifecycleCallback('notfound', 'postLoad'); |
| 857 | 857 | |
| 858 | 858 | $this->expectException(MappingException::class); |
| 859 | - $this->expectExceptionMessage("Entity '" . CMS\CmsUser::class . "' has no method 'notfound' to be registered as lifecycle callback."); |
|
| 859 | + $this->expectExceptionMessage("Entity '".CMS\CmsUser::class."' has no method 'notfound' to be registered as lifecycle callback."); |
|
| 860 | 860 | |
| 861 | 861 | $cm->validateLifecycleCallbacks(new RuntimeReflectionService()); |
| 862 | 862 | } |
@@ -876,7 +876,7 @@ discard block |
||
| 876 | 876 | $cm->addProperty($association); |
| 877 | 877 | |
| 878 | 878 | $this->expectException(MappingException::class); |
| 879 | - $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '" . CMS\CmsUser::class . "#address'."); |
|
| 879 | + $this->expectExceptionMessage("The target-entity 'UnknownClass' cannot be found in '".CMS\CmsUser::class."#address'."); |
|
| 880 | 880 | |
| 881 | 881 | $cm->validateAssociations(); |
| 882 | 882 | } |
@@ -1122,6 +1122,6 @@ discard block |
||
| 1122 | 1122 | */ |
| 1123 | 1123 | public function propertyToColumnName($propertyName, $className = null) |
| 1124 | 1124 | { |
| 1125 | - return strtolower($this->classToTableName($className)) . '_' . $propertyName; |
|
| 1125 | + return strtolower($this->classToTableName($className)).'_'.$propertyName; |
|
| 1126 | 1126 | } |
| 1127 | 1127 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | protected function loadDriverForCMSModels() |
| 121 | 121 | { |
| 122 | 122 | $annotationDriver = $this->loadDriver(); |
| 123 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/CMS/']); |
|
| 123 | + $annotationDriver->addPaths([__DIR__.'/../../Models/CMS/']); |
|
| 124 | 124 | return $annotationDriver; |
| 125 | 125 | } |
| 126 | 126 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | public function testJoinTablesWithMappedSuperclassForAnnotationDriver() : void |
| 143 | 143 | { |
| 144 | 144 | $annotationDriver = $this->loadDriver(); |
| 145 | - $annotationDriver->addPaths([__DIR__ . '/../../Models/DirectoryTree/']); |
|
| 145 | + $annotationDriver->addPaths([__DIR__.'/../../Models/DirectoryTree/']); |
|
| 146 | 146 | |
| 147 | 147 | $em = $this->getTestEntityManager(); |
| 148 | 148 | $em->getConfiguration()->setMetadataDriverImpl($annotationDriver); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | $this->expectException(MappingException::class); |
| 174 | 174 | $this->expectExceptionMessage( |
| 175 | - 'It is illegal to put an inverse side one-to-many or many-to-many association on ' . |
|
| 175 | + 'It is illegal to put an inverse side one-to-many or many-to-many association on '. |
|
| 176 | 176 | "mapped superclass 'Doctrine\Tests\ORM\Mapping\InvalidMappedSuperClass#users'" |
| 177 | 177 | ); |
| 178 | 178 | |
@@ -506,7 +506,7 @@ |
||
| 506 | 506 | 'empty string, single field' => [$emptyString, ''], |
| 507 | 507 | 'non-empty string, single field' => [$nonEmptyString, $nonEmptyString->id], |
| 508 | 508 | 'empty strings, two fields' => [$emptyStrings, ' '], |
| 509 | - 'non-empty strings, two fields' => [$nonEmptyStrings, $nonEmptyStrings->id1 . ' ' . $nonEmptyStrings->id2], |
|
| 509 | + 'non-empty strings, two fields' => [$nonEmptyStrings, $nonEmptyStrings->id1.' '.$nonEmptyStrings->id2], |
|
| 510 | 510 | 'boolean true' => [$booleanTrue, '1'], |
| 511 | 511 | 'boolean false' => [$booleanFalse, ''], |
| 512 | 512 | ]; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | self::assertSame(array_keys($expectedId), array_keys($id)); |
| 62 | 62 | |
| 63 | 63 | foreach ($expectedId as $field => $value) { |
| 64 | - if (! is_object($value)) { |
|
| 64 | + if ( ! is_object($value)) { |
|
| 65 | 65 | self::assertSame($id[$field], $value); |
| 66 | 66 | |
| 67 | 67 | continue; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $className = array_pop($namespaceParts); |
| 46 | 46 | $namespace = implode('\\', $namespaceParts); |
| 47 | 47 | |
| 48 | - eval('namespace ' . $namespace . ' { class ' . $className . ' {} }'); |
|
| 48 | + eval('namespace '.$namespace.' { class '.$className.' {} }'); |
|
| 49 | 49 | |
| 50 | 50 | self::assertSame($expectedClassName, StaticClassNameConverter::getClass(new $givenClassName())); |
| 51 | 51 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | public function addInfo(AttractionInfo $info) |
| 89 | 89 | { |
| 90 | - if (! $this->infos->contains($info)) { |
|
| 90 | + if ( ! $this->infos->contains($info)) { |
|
| 91 | 91 | $this->infos->add($info); |
| 92 | 92 | } |
| 93 | 93 | } |