@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | private function extractFromReflection(\ReflectionClass $class, callable $filter): array |
32 | 32 | { |
33 | 33 | $properties = $this->mapClassToProperties($class, $filter); |
34 | - $parentProperties = $class->getParentClass() ? $this->extractFromReflection($class->getParentClass(), $filter) : []; |
|
34 | + $parentProperties = $class->getParentClass() ? $this->extractFromReflection($class->getParentClass(), $filter) : [ ]; |
|
35 | 35 | |
36 | 36 | return \array_merge($properties, $parentProperties); |
37 | 37 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | private function propertyFactory(\ReflectionClass $class, $docBlockFactory, $classContext): callable |
54 | 54 | { |
55 | - return function (\ReflectionProperty $propertyReflection) use ($docBlockFactory, $classContext, $class): ?Property { |
|
55 | + return function(\ReflectionProperty $propertyReflection) use ($docBlockFactory, $classContext, $class): ?Property { |
|
56 | 56 | $context = $this->getTraitContextIfExists($propertyReflection) ?? $classContext; |
57 | 57 | |
58 | 58 | if ($propertyReflection->getDeclaringClass()->getName() === $class->getName()) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | private function buildFilter(callable $filter): callable |
67 | 67 | { |
68 | - return function ($property) use ($filter): bool { |
|
68 | + return function($property) use ($filter): bool { |
|
69 | 69 | return $property instanceof Property && $filter($property); |
70 | 70 | }; |
71 | 71 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | return null !== $var ? new Property( |
90 | 90 | $propertyReflection->getName(), |
91 | 91 | \array_map( |
92 | - function ($type) { |
|
92 | + function($type) { |
|
93 | 93 | return \ltrim($type, '\\'); |
94 | 94 | }, |
95 | 95 | \explode('|', $var) |
@@ -111,6 +111,6 @@ discard block |
||
111 | 111 | { |
112 | 112 | $tags = $docBlock->getTagsByName($name); |
113 | 113 | |
114 | - return $tags[0] ?? null; |
|
114 | + return $tags[ 0 ] ?? null; |
|
115 | 115 | } |
116 | 116 | } |