@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | public function testAllMethodCallsAreDelegatedToTheWrappedInstance($method, array $parameters, $isVoidMethod) |
| 63 | 63 | { |
| 64 | - $returnedValue = $isVoidMethod ? null : 'INNER VALUE FROM ' . $method; |
|
| 64 | + $returnedValue = $isVoidMethod ? null : 'INNER VALUE FROM '.$method; |
|
| 65 | 65 | $stub = $this->wrapped |
| 66 | 66 | ->expects($this->once()) |
| 67 | 67 | ->method($method) |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | public function getAssociationTargetClass($assocName) |
| 179 | 179 | { |
| 180 | - return __NAMESPACE__ . '\TestObject'; |
|
| 180 | + return __NAMESPACE__.'\TestObject'; |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | public function getFieldNames() |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | |
| 193 | 193 | public function getName() |
| 194 | 194 | { |
| 195 | - return __NAMESPACE__ . '\TestObject'; |
|
| 195 | + return __NAMESPACE__.'\TestObject'; |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | public function getReflectionClass() |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function testGetAllClassNames() |
| 14 | 14 | { |
| 15 | 15 | $reader = new AnnotationReader(); |
| 16 | - $driver = new SimpleAnnotationDriver($reader, [__DIR__ . '/_files/annotation']); |
|
| 16 | + $driver = new SimpleAnnotationDriver($reader, [__DIR__.'/_files/annotation']); |
|
| 17 | 17 | |
| 18 | 18 | $classes = $driver->getAllClassNames(); |
| 19 | 19 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | foreach ($this->drivers as $namespace => $driver) { |
| 94 | 94 | $oid = spl_object_hash($driver); |
| 95 | 95 | |
| 96 | - if (! isset($driverClasses[$oid])) { |
|
| 96 | + if (!isset($driverClasses[$oid])) { |
|
| 97 | 97 | $driverClasses[$oid] = $driver->getAllClassNames(); |
| 98 | 98 | } |
| 99 | 99 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $name = $this->getName(); |
| 25 | 25 | |
| 26 | - if ($object instanceof Proxy && ! $object->__isInitialized()) { |
|
| 26 | + if ($object instanceof Proxy && !$object->__isInitialized()) { |
|
| 27 | 27 | $originalInitializer = $object->__getInitializer(); |
| 28 | 28 | $object->__setInitializer(null); |
| 29 | 29 | $val = $object->$name ?? null; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public function setValue($object, $value = null) |
| 46 | 46 | { |
| 47 | - if (! ($object instanceof Proxy && ! $object->__isInitialized())) { |
|
| 47 | + if (!($object instanceof Proxy && !$object->__isInitialized())) { |
|
| 48 | 48 | parent::setValue($object, $value); |
| 49 | 49 | |
| 50 | 50 | return; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | $metadata = $this->createMock(ClassMetadata::class); |
| 17 | 17 | $metadata->expects($this->once())->method('getFieldNames'); |
| 18 | 18 | |
| 19 | - $driver = new PHPDriver([__DIR__ . '/_files']); |
|
| 19 | + $driver = new PHPDriver([__DIR__.'/_files']); |
|
| 20 | 20 | $driver->loadMetadataForClass('TestEntity', $metadata); |
| 21 | 21 | } |
| 22 | 22 | } |
@@ -18,9 +18,9 @@ |
||
| 18 | 18 | return [ |
| 19 | 19 | [\stdClass::class, \stdClass::class], |
| 20 | 20 | [ClassUtils::class, ClassUtils::class], |
| 21 | - [ 'MyProject\Proxies\__CG__\stdClass', \stdClass::class], |
|
| 22 | - [ 'MyProject\Proxies\__CG__\OtherProject\Proxies\__CG__\stdClass', \stdClass::class], |
|
| 23 | - [ 'MyProject\Proxies\__CG__\Doctrine\Tests\Common\Util\ChildObject', ChildObject::class], |
|
| 21 | + ['MyProject\Proxies\__CG__\stdClass', \stdClass::class], |
|
| 22 | + ['MyProject\Proxies\__CG__\OtherProject\Proxies\__CG__\stdClass', \stdClass::class], |
|
| 23 | + ['MyProject\Proxies\__CG__\Doctrine\Tests\Common\Util\ChildObject', ChildObject::class], |
|
| 24 | 24 | ]; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | private function getManagerFactory() |
| 81 | 81 | { |
| 82 | - return function () { |
|
| 82 | + return function() { |
|
| 83 | 83 | $mock = $this->createMock(ObjectManager::class); |
| 84 | 84 | $driver = $this->createMock(MappingDriver::class); |
| 85 | 85 | $metadata = $this->createMock(ClassMetadata::class); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | protected function getService($name) |
| 120 | 120 | { |
| 121 | - if (! isset($this->services[$name])) { |
|
| 121 | + if (!isset($this->services[$name])) { |
|
| 122 | 122 | $this->services[$name] = call_user_func($this->managerFactory); |
| 123 | 123 | } |
| 124 | 124 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | public function testGetPaths() |
| 15 | 15 | { |
| 16 | - $path = __DIR__ . '/_files'; |
|
| 16 | + $path = __DIR__.'/_files'; |
|
| 17 | 17 | $prefix = 'Foo'; |
| 18 | 18 | |
| 19 | 19 | $locator = new SymfonyFileLocator([$path => $prefix]); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function testGetPrefixes() |
| 27 | 27 | { |
| 28 | - $path = __DIR__ . '/_files'; |
|
| 28 | + $path = __DIR__.'/_files'; |
|
| 29 | 29 | $prefix = 'Foo'; |
| 30 | 30 | |
| 31 | 31 | $locator = new SymfonyFileLocator([$path => $prefix]); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | public function testFileExists() |
| 44 | 44 | { |
| 45 | - $path = __DIR__ . '/_files'; |
|
| 45 | + $path = __DIR__.'/_files'; |
|
| 46 | 46 | $prefix = 'Foo'; |
| 47 | 47 | |
| 48 | 48 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | public function testGetAllClassNames() |
| 57 | 57 | { |
| 58 | - $path = __DIR__ . '/_files'; |
|
| 58 | + $path = __DIR__.'/_files'; |
|
| 59 | 59 | $prefix = 'Foo'; |
| 60 | 60 | |
| 61 | 61 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function testInvalidCustomNamespaceSeparator() |
| 82 | 82 | { |
| 83 | - $path = __DIR__ . '/_files'; |
|
| 83 | + $path = __DIR__.'/_files'; |
|
| 84 | 84 | $prefix = 'Foo'; |
| 85 | 85 | |
| 86 | 86 | new SymfonyFileLocator([$path => $prefix], '.yml', null); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public function testGetClassNamesWithCustomNsSeparator($separator, $dir) |
| 106 | 106 | { |
| 107 | - $path = __DIR__ . $dir; |
|
| 107 | + $path = __DIR__.$dir; |
|
| 108 | 108 | $prefix = 'Foo'; |
| 109 | 109 | |
| 110 | 110 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml', $separator); |
@@ -147,30 +147,30 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | public function testFindMappingFileWithCustomNsSeparator($separator, $dir, $files) |
| 149 | 149 | { |
| 150 | - $path = __DIR__ . $dir; |
|
| 150 | + $path = __DIR__.$dir; |
|
| 151 | 151 | $prefix = 'Foo'; |
| 152 | 152 | |
| 153 | 153 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml', $separator); |
| 154 | 154 | |
| 155 | 155 | foreach ($files as $filePath => $className) { |
| 156 | - self::assertEquals(realpath($path . '/' . $filePath), realpath($locator->findMappingFile($className))); |
|
| 156 | + self::assertEquals(realpath($path.'/'.$filePath), realpath($locator->findMappingFile($className))); |
|
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | |
| 161 | 161 | public function testFindMappingFile() |
| 162 | 162 | { |
| 163 | - $path = __DIR__ . '/_files'; |
|
| 163 | + $path = __DIR__.'/_files'; |
|
| 164 | 164 | $prefix = 'Foo'; |
| 165 | 165 | |
| 166 | 166 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
| 167 | 167 | |
| 168 | - self::assertEquals(__DIR__ . '/_files/stdClass.yml', $locator->findMappingFile('Foo\\stdClass')); |
|
| 168 | + self::assertEquals(__DIR__.'/_files/stdClass.yml', $locator->findMappingFile('Foo\\stdClass')); |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | public function testFindMappingFileNotFound() |
| 172 | 172 | { |
| 173 | - $path = __DIR__ . '/_files'; |
|
| 173 | + $path = __DIR__.'/_files'; |
|
| 174 | 174 | $prefix = 'Foo'; |
| 175 | 175 | |
| 176 | 176 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
@@ -184,13 +184,13 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | // Low -> High |
| 186 | 186 | $prefixes = []; |
| 187 | - $prefixes[__DIR__ . '/_match_ns'] = 'Foo'; |
|
| 188 | - $prefixes[__DIR__ . '/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 187 | + $prefixes[__DIR__.'/_match_ns'] = 'Foo'; |
|
| 188 | + $prefixes[__DIR__.'/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 189 | 189 | |
| 190 | 190 | $locator = new SymfonyFileLocator($prefixes, '.yml'); |
| 191 | 191 | |
| 192 | 192 | self::assertEquals( |
| 193 | - __DIR__ . '/_match_ns/Bar/barEntity.yml', |
|
| 193 | + __DIR__.'/_match_ns/Bar/barEntity.yml', |
|
| 194 | 194 | $locator->findMappingFile("Foo\\Bar\\barEntity") |
| 195 | 195 | ); |
| 196 | 196 | } |
@@ -198,13 +198,13 @@ discard block |
||
| 198 | 198 | public function testFindMappingFileMostSpecificNamespaceFirst() |
| 199 | 199 | { |
| 200 | 200 | $prefixes = []; |
| 201 | - $prefixes[__DIR__ . '/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 202 | - $prefixes[__DIR__ . '/_match_ns'] = 'Foo'; |
|
| 201 | + $prefixes[__DIR__.'/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 202 | + $prefixes[__DIR__.'/_match_ns'] = 'Foo'; |
|
| 203 | 203 | |
| 204 | 204 | $locator = new SymfonyFileLocator($prefixes, '.yml'); |
| 205 | 205 | |
| 206 | 206 | self::assertEquals( |
| 207 | - __DIR__ . '/_match_ns/Bar/barEntity.yml', |
|
| 207 | + __DIR__.'/_match_ns/Bar/barEntity.yml', |
|
| 208 | 208 | $locator->findMappingFile("Foo\\Bar\\barEntity") |
| 209 | 209 | ); |
| 210 | 210 | } |