@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | ContextInterface $context, |
| 43 | 43 | array $optimizedTargets, |
| 44 | 44 | ?LoggerInterface $logger |
| 45 | - ): Generator { |
|
| 45 | + ) : Generator { |
|
| 46 | 46 | list($isOptimizedForSwitch, $data) = $optimizedTargets; |
| 47 | 47 | if ($isOptimizedForSwitch === true) { |
| 48 | 48 | assert(count($data) === 2); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | ContextInterface $context, |
| 97 | 97 | array $target, |
| 98 | 98 | ?LoggerInterface $logger |
| 99 | - ): int { |
|
| 99 | + ) : int { |
|
| 100 | 100 | /** @see http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html #7.11 (table 4) */ |
| 101 | 101 | |
| 102 | 102 | assert(Encoder::isTarget($target) === true); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * |
| 165 | 165 | * @return array |
| 166 | 166 | */ |
| 167 | - protected static function encodeTarget(?TargetInterface $target): array |
|
| 167 | + protected static function encodeTarget(?TargetInterface $target) : array |
|
| 168 | 168 | { |
| 169 | 169 | $name = null; |
| 170 | 170 | $anyOfs = null; |
@@ -191,11 +191,11 @@ discard block |
||
| 191 | 191 | * @SuppressWarnings(PHPMD.ElseExpression) |
| 192 | 192 | * @SuppressWarnings(PHPMD.CyclomaticComplexity) |
| 193 | 193 | */ |
| 194 | - private function tryToEncodeTargetsAsSwitch(array $targets): ?array |
|
| 194 | + private function tryToEncodeTargetsAsSwitch(array $targets): ? array |
|
| 195 | 195 | { |
| 196 | 196 | $result = count($targets) > 1; |
| 197 | 197 | |
| 198 | - $contextKey = null; |
|
| 198 | + $contextKey = null; |
|
| 199 | 199 | $valueRuleIdMap = []; |
| 200 | 200 | |
| 201 | 201 | foreach ($targets as $ruleId => $nullableTarget) { |