@@ -30,16 +30,16 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | $this->methodFlags = $publicOnly |
| 32 | 32 | ? ReflectionMethod::IS_PUBLIC |
| 33 | - : (ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE); |
|
| 33 | + : (ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE); |
|
| 34 | 34 | $this->propertyFlags = $publicOnly |
| 35 | 35 | ? ReflectionProperty::IS_PUBLIC |
| 36 | - : (ReflectionProperty::IS_PUBLIC|ReflectionProperty::IS_PROTECTED|ReflectionProperty::IS_PRIVATE); |
|
| 36 | + : (ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); |
|
| 37 | 37 | $this->phpDocExtractor = new PhpDocExtractor(); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | private function sort(array& $options) |
| 41 | 41 | { |
| 42 | - usort($options, function ($a, $b) { |
|
| 42 | + usort($options, function($a, $b) { |
|
| 43 | 43 | if ($a instanceof ReflectionProperty) { |
| 44 | 44 | return 1; |
| 45 | 45 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | protected function getGetterMapping(ReflectionClass $reflectionClass): array |
| 66 | 66 | { |
| 67 | - $className= $reflectionClass->getName(); |
|
| 67 | + $className = $reflectionClass->getName(); |
|
| 68 | 68 | if (isset($this->getterCache[$className])) { |
| 69 | 69 | return $this->getterCache[$className]; |
| 70 | 70 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | protected function getSetterMapping(ReflectionClass $reflectionClass): array |
| 98 | 98 | { |
| 99 | - $className= $reflectionClass->getName(); |
|
| 99 | + $className = $reflectionClass->getName(); |
|
| 100 | 100 | if (isset($this->setterCache[$className])) { |
| 101 | 101 | return $this->setterCache[$className]; |
| 102 | 102 | } |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | } else { |
| 349 | 349 | $res = $this->getGetterTypes($reflectionClass, $parameter->name); |
| 350 | 350 | } |
| 351 | - return reset($res) ? : null; |
|
| 351 | + return reset($res) ?: null; |
|
| 352 | 352 | } |
| 353 | 353 | |
| 354 | 354 | public function instantiate(ReflectionClass $reflectionClass, array $constructorArgs): object |