@@ -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() |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $this->cm = new TestObjectMetadata(); |
| 36 | 36 | $this->om = $this->createMock(ObjectManager::class); |
| 37 | 37 | $this->om->expects($this->any())->method('getClassMetadata') |
| 38 | - ->will($this->returnValue($this->cm)); |
|
| 38 | + ->will($this->returnValue($this->cm)); |
|
| 39 | 39 | $this->object = new TestObject(); |
| 40 | 40 | PersistentObject::setObjectManager($this->om); |
| 41 | 41 | $this->object->injectObjectManager($this->om, $this->cm); |
@@ -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 | |
@@ -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 | } |
@@ -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 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function testGetMetadataForAbsentClass() |
| 46 | 46 | { |
| 47 | 47 | $this->expectException(MappingException::class); |
| 48 | - $this->cmf->getMetadataFor(__NAMESPACE__ . '\AbsentClass'); |
|
| 48 | + $this->cmf->getMetadataFor(__NAMESPACE__.'\AbsentClass'); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public function testGetParentMetadata() |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | $metadata = $this->createMock(ClassMetadata::class); |
| 63 | 63 | $cache = new ArrayCache(); |
| 64 | - $cache->save(ChildEntity::class . '$CLASSMETADATA', $metadata); |
|
| 64 | + $cache->save(ChildEntity::class.'$CLASSMETADATA', $metadata); |
|
| 65 | 65 | |
| 66 | 66 | $this->cmf->setCacheDriver($cache); |
| 67 | 67 | |
@@ -75,14 +75,14 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $loadedMetadata = $this->cmf->getMetadataFor(ChildEntity::class); |
| 77 | 77 | |
| 78 | - self::assertSame($loadedMetadata, $cache->fetch(ChildEntity::class . '$CLASSMETADATA')); |
|
| 78 | + self::assertSame($loadedMetadata, $cache->fetch(ChildEntity::class.'$CLASSMETADATA')); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | public function testGetAliasedMetadata() |
| 82 | 82 | { |
| 83 | 83 | $this->cmf->getMetadataFor('prefix:ChildEntity'); |
| 84 | 84 | |
| 85 | - self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__ . '\ChildEntity')); |
|
| 85 | + self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__.'\ChildEntity')); |
|
| 86 | 86 | self::assertTrue($this->cmf->hasMetadataFor('prefix:ChildEntity')); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | { |
| 112 | 112 | $classMetadata = $this->createMock(ClassMetadata::class); |
| 113 | 113 | |
| 114 | - $this->cmf->fallbackCallback = function () use ($classMetadata) { |
|
| 114 | + $this->cmf->fallbackCallback = function() use ($classMetadata) { |
|
| 115 | 115 | return $classMetadata; |
| 116 | 116 | }; |
| 117 | 117 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | public function testWillFailOnFallbackFailureWithNotLoadedMetadata() |
| 124 | 124 | { |
| 125 | - $this->cmf->fallbackCallback = function () { |
|
| 125 | + $this->cmf->fallbackCallback = function() { |
|
| 126 | 126 | return null; |
| 127 | 127 | }; |
| 128 | 128 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) |
| 187 | 187 | { |
| 188 | - return __NAMESPACE__ . '\\' . $simpleClassName; |
|
| 188 | + return __NAMESPACE__.'\\'.$simpleClassName; |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | protected function initialize() |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | protected function onNotFoundMetadata($className) |
| 218 | 218 | { |
| 219 | - if (! $this->fallbackCallback) { |
|
| 219 | + if (!$this->fallbackCallback) { |
|
| 220 | 220 | return null; |
| 221 | 221 | } |
| 222 | 222 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $locator->expects($this->once()) |
| 37 | 37 | ->method('findMappingFile') |
| 38 | 38 | ->with($this->equalTo('stdClass')) |
| 39 | - ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml')); |
|
| 39 | + ->will($this->returnValue(__DIR__.'/_files/stdClass.yml')); |
|
| 40 | 40 | |
| 41 | 41 | $driver = new TestFileDriver($locator); |
| 42 | 42 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $locator->expects($this->once()) |
| 52 | 52 | ->method('findMappingFile') |
| 53 | 53 | ->with($this->equalTo('stdClass')) |
| 54 | - ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml')); |
|
| 54 | + ->will($this->returnValue(__DIR__.'/_files/stdClass.yml')); |
|
| 55 | 55 | |
| 56 | 56 | $driver = new TestFileDriver($locator); |
| 57 | 57 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | public function testNonLocatorFallback() |
| 134 | 134 | { |
| 135 | - $driver = new TestFileDriver(__DIR__ . '/_files', '.yml'); |
|
| 135 | + $driver = new TestFileDriver(__DIR__.'/_files', '.yml'); |
|
| 136 | 136 | self::assertTrue($driver->isTransient('stdClass2')); |
| 137 | 137 | self::assertFalse($driver->isTransient('stdClass')); |
| 138 | 138 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | { |
| 142 | 142 | $locator = $this->createMock(FileLocator::class); |
| 143 | 143 | $locator->expects($this->any())->method('getFileExtension')->will($this->returnValue('.yml')); |
| 144 | - $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__ . '/_files'])); |
|
| 144 | + $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__.'/_files'])); |
|
| 145 | 145 | return $locator; |
| 146 | 146 | } |
| 147 | 147 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function testGetParentClasses() |
| 33 | 33 | { |
| 34 | 34 | $classes = $this->reflectionService->getParentClasses(__CLASS__); |
| 35 | - self::assertTrue(count($classes) === 0, 'The test class ' . __CLASS__ . ' should have no parents according to static reflection.'); |
|
| 35 | + self::assertTrue(count($classes) === 0, 'The test class '.__CLASS__.' should have no parents according to static reflection.'); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function testGetReflectionClass() |