@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function getParentClasses(string $class) |
| 37 | 37 | { |
| 38 | - if (! class_exists($class)) { |
|
| 38 | + if (!class_exists($class)) { |
|
| 39 | 39 | throw MappingException::nonExistingClass($class); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | if ($reflectionProperty->isPublic()) { |
| 81 | 81 | $reflectionProperty = new RuntimePublicReflectionProperty($class, $property); |
| 82 | - } elseif ($this->supportsTypedPropertiesWorkaround && ! array_key_exists($property, $this->getClass($class)->getDefaultProperties())) { |
|
| 82 | + } elseif ($this->supportsTypedPropertiesWorkaround && !array_key_exists($property, $this->getClass($class)->getDefaultProperties())) { |
|
| 83 | 83 | $reflectionProperty = new TypedNoDefaultReflectionProperty($class, $property); |
| 84 | 84 | } |
| 85 | 85 | |
@@ -40,13 +40,13 @@ |
||
| 40 | 40 | public function testGetParentClasses() : void |
| 41 | 41 | { |
| 42 | 42 | $classes = $this->reflectionService->getParentClasses(self::class); |
| 43 | - self::assertTrue(count($classes) >= 1, 'The test class ' . self::class . ' should have at least one parent.'); |
|
| 43 | + self::assertTrue(count($classes) >= 1, 'The test class '.self::class.' should have at least one parent.'); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function testGetParentClassesForAbsentClass() : void |
| 47 | 47 | { |
| 48 | 48 | $this->expectException(MappingException::class); |
| 49 | - $this->reflectionService->getParentClasses(__NAMESPACE__ . '\AbsentClass'); |
|
| 49 | + $this->reflectionService->getParentClasses(__NAMESPACE__.'\AbsentClass'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function testGetMethods() : void |