@@ -56,16 +56,16 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * @var bool |
| 58 | 58 | */ |
| 59 | - private $disabledConstructor ; |
|
| 59 | + private $disabledConstructor; |
|
| 60 | 60 | |
| 61 | 61 | public function __construct(bool $publicOnly = true, bool $disabledConstructor = false) |
| 62 | 62 | { |
| 63 | 63 | $this->methodFlags = $publicOnly |
| 64 | 64 | ? ReflectionMethod::IS_PUBLIC |
| 65 | - : (ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE); |
|
| 65 | + : (ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE); |
|
| 66 | 66 | $this->propertyFlags = $publicOnly |
| 67 | 67 | ? ReflectionProperty::IS_PUBLIC |
| 68 | - : (ReflectionProperty::IS_PUBLIC|ReflectionProperty::IS_PROTECTED|ReflectionProperty::IS_PRIVATE); |
|
| 68 | + : (ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PRIVATE); |
|
| 69 | 69 | $this->disabledConstructor = $disabledConstructor; |
| 70 | 70 | $this->phpDocExtractor = new PhpDocExtractor(); |
| 71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | protected function sort(array& $options) |
| 79 | 79 | { |
| 80 | - usort($options, function (PriorityAwareInterface $a, PriorityAwareInterface $b) { |
|
| 80 | + usort($options, function(PriorityAwareInterface $a, PriorityAwareInterface $b) { |
|
| 81 | 81 | return $b->getPriority() <=> $a->getPriority(); |
| 82 | 82 | }); |
| 83 | 83 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | protected function getGetterMapping(ReflectionClass $reflectionClass): array |
| 104 | 104 | { |
| 105 | - $className= $reflectionClass->getName(); |
|
| 105 | + $className = $reflectionClass->getName(); |
|
| 106 | 106 | if (isset($this->getterCache[$className])) { |
| 107 | 107 | return $this->getterCache[$className]; |
| 108 | 108 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | protected function getSetterMapping(ReflectionClass $reflectionClass): array |
| 142 | 142 | { |
| 143 | - $className= $reflectionClass->getName(); |
|
| 143 | + $className = $reflectionClass->getName(); |
|
| 144 | 144 | if (isset($this->setterCache[$className])) { |
| 145 | 145 | return $this->setterCache[$className]; |
| 146 | 146 | } |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | } else { |
| 387 | 387 | $res = $this->getGetterTypes($reflectionClass, $parameter->name); |
| 388 | 388 | } |
| 389 | - return reset($res) ? : null; |
|
| 389 | + return reset($res) ?: null; |
|
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | /** |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | bool $publicOnly = true, |
| 14 | 14 | bool $disabledConstructor = false |
| 15 | 15 | ) { |
| 16 | - $conversionFn = static function ($locale) { |
|
| 16 | + $conversionFn = static function($locale) { |
|
| 17 | 17 | return $locale === null ? 'en' : ((string) $locale); |
| 18 | 18 | }; |
| 19 | 19 | parent::__construct($localizationAware, $conversionFn, $publicOnly, $disabledConstructor); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | protected function getGetterMapping(ReflectionClass $reflectionClass): array |
| 42 | 42 | { |
| 43 | - $className= $reflectionClass->getName(); |
|
| 43 | + $className = $reflectionClass->getName(); |
|
| 44 | 44 | if (isset($this->getterCache[$className])) { |
| 45 | 45 | return $this->getterCache[$className]; |
| 46 | 46 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | protected function getSetterMapping(ReflectionClass $reflectionClass): array |
| 72 | 72 | { |
| 73 | - $className= $reflectionClass->getName(); |
|
| 73 | + $className = $reflectionClass->getName(); |
|
| 74 | 74 | if (isset($this->setterCache[$className])) { |
| 75 | 75 | return $this->setterCache[$className]; |
| 76 | 76 | } |