@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | $reflectionClass = new \ReflectionClass($className); |
| 46 | 46 | |
| 47 | - return (bool) $reflectionClass->isInstantiable(); |
|
| 47 | + return (bool)$reflectionClass->isInstantiable(); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | $reflectionService = GeneralUtility::makeInstance(\HDNET\Autoloader\Service\ReflectionService::class); |
| 85 | 85 | $values = $reflectionService->getClassTagValues($className, $tag); |
| 86 | - if($values === false) { |
|
| 86 | + if ($values === false) { |
|
| 87 | 87 | return false; |
| 88 | 88 | } |
| 89 | 89 | } else { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | if (\is_array($values)) { |
| 98 | - return \trim((string) $values[0]); |
|
| 98 | + return \trim((string)$values[0]); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | return false; |
@@ -275,12 +275,12 @@ discard block |
||
| 275 | 275 | public static function getDeclaringProperties(string $className) |
| 276 | 276 | { |
| 277 | 277 | $classReflection = new \ReflectionClass($className); |
| 278 | - $own = \array_filter($classReflection->getProperties(), function ($property) use ($className) { |
|
| 279 | - return \trim((string) $property->class, '\\') === \trim($className, '\\'); |
|
| 278 | + $own = \array_filter($classReflection->getProperties(), function($property) use ($className) { |
|
| 279 | + return \trim((string)$property->class, '\\') === \trim($className, '\\'); |
|
| 280 | 280 | }); |
| 281 | 281 | |
| 282 | - return \array_map(function ($item) { |
|
| 283 | - return (string) $item->name; |
|
| 282 | + return \array_map(function($item) { |
|
| 283 | + return (string)$item->name; |
|
| 284 | 284 | }, $own); |
| 285 | 285 | } |
| 286 | 286 | |