@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | { |
49 | 49 | $this->methodFlags = $publicOnly |
50 | 50 | ? ReflectionMethod::IS_PUBLIC |
51 | - : (ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE); |
|
51 | + : (ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE); |
|
52 | 52 | $this->propertyFlags = $publicOnly |
53 | 53 | ? ReflectionProperty::IS_PUBLIC |
54 | - : (ReflectionProperty::IS_PUBLIC|ReflectionProperty::IS_PROTECTED|ReflectionProperty::IS_PRIVATE); |
|
54 | + : (ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); |
|
55 | 55 | $this->phpDocExtractor = new PhpDocExtractor(); |
56 | 56 | } |
57 | 57 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | private function sort(array& $options) |
68 | 68 | { |
69 | - usort($options, function ($a, $b) { |
|
69 | + usort($options, function($a, $b) { |
|
70 | 70 | if ($a instanceof ReflectionProperty) { |
71 | 71 | return 1; |
72 | 72 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | protected function getGetterMapping(ReflectionClass $reflectionClass): array |
99 | 99 | { |
100 | - $className= $reflectionClass->getName(); |
|
100 | + $className = $reflectionClass->getName(); |
|
101 | 101 | if (isset($this->getterCache[$className])) { |
102 | 102 | return $this->getterCache[$className]; |
103 | 103 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | protected function getSetterMapping(ReflectionClass $reflectionClass): array |
137 | 137 | { |
138 | - $className= $reflectionClass->getName(); |
|
138 | + $className = $reflectionClass->getName(); |
|
139 | 139 | if (isset($this->setterCache[$className])) { |
140 | 140 | return $this->setterCache[$className]; |
141 | 141 | } |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | } else { |
389 | 389 | $res = $this->getGetterTypes($reflectionClass, $parameter->name); |
390 | 390 | } |
391 | - return reset($res) ? : null; |
|
391 | + return reset($res) ?: null; |
|
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |