@@ -28,16 +28,16 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | $this->methodFlags = $publicOnly |
| 30 | 30 | ? ReflectionMethod::IS_PUBLIC |
| 31 | - : (ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE); |
|
| 31 | + : (ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE); |
|
| 32 | 32 | $this->propertyFlags = $publicOnly |
| 33 | 33 | ? ReflectionProperty::IS_PUBLIC |
| 34 | - : (ReflectionProperty::IS_PUBLIC|ReflectionProperty::IS_PROTECTED|ReflectionProperty::IS_PRIVATE); |
|
| 34 | + : (ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); |
|
| 35 | 35 | $this->phpDocExtractor = new PhpDocExtractor(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | private function sort(array& $options) |
| 39 | 39 | { |
| 40 | - usort($options, function ($a, $b) { |
|
| 40 | + usort($options, function($a, $b) { |
|
| 41 | 41 | if ($a instanceof ReflectionProperty) { |
| 42 | 42 | return 1; |
| 43 | 43 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | protected function getGetterMapping(ReflectionClass $reflectionClass): array |
| 64 | 64 | { |
| 65 | - $className= $reflectionClass->getName(); |
|
| 65 | + $className = $reflectionClass->getName(); |
|
| 66 | 66 | if (isset($this->getterCache[$className])) { |
| 67 | 67 | return $this->getterCache[$className]; |
| 68 | 68 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | protected function getSetterMapping(ReflectionClass $reflectionClass): array |
| 96 | 96 | { |
| 97 | - $className= $reflectionClass->getName(); |
|
| 97 | + $className = $reflectionClass->getName(); |
|
| 98 | 98 | if (isset($this->setterCache[$className])) { |
| 99 | 99 | return $this->setterCache[$className]; |
| 100 | 100 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public function getGetterFields(ReflectionClass $reflectionClass): array |
| 33 | 33 | { |
| 34 | 34 | $result = $this->objectAccess->getGetterFields($reflectionClass); |
| 35 | - return array_values(array_filter($result, function (string $fieldName) { |
|
| 35 | + return array_values(array_filter($result, function(string $fieldName) { |
|
| 36 | 36 | return isset($this->filteredFields[$fieldName]); |
| 37 | 37 | })); |
| 38 | 38 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | public function getSetterFields(ReflectionClass $reflectionClass): array |
| 41 | 41 | { |
| 42 | 42 | $result = $this->objectAccess->getSetterFields($reflectionClass); |
| 43 | - return array_values(array_filter($result, function (string $fieldName) { |
|
| 43 | + return array_values(array_filter($result, function(string $fieldName) { |
|
| 44 | 44 | return isset($this->filteredFields[$fieldName]); |
| 45 | 45 | })); |
| 46 | 46 | } |