@@ -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 |
@@ -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 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | public function addTravel(Travel $item) |
90 | 90 | { |
91 | - if (! $this->travels->contains($item)) { |
|
91 | + if ( ! $this->travels->contains($item)) { |
|
92 | 92 | $this->travels->add($item); |
93 | 93 | } |
94 | 94 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | public function addFriend(CompanyPerson $friend) |
86 | 86 | { |
87 | - if (! $this->friends->contains($friend)) { |
|
87 | + if ( ! $this->friends->contains($friend)) { |
|
88 | 88 | $this->friends->add($friend); |
89 | 89 | $friend->addFriend($this); |
90 | 90 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | public function addProduct(ECommerceProduct $product) |
68 | 68 | { |
69 | - if (! $this->products->contains($product)) { |
|
69 | + if ( ! $this->products->contains($product)) { |
|
70 | 70 | $this->products[] = $product; |
71 | 71 | $product->addCategory($this); |
72 | 72 | } |