@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | ContextInterface $context, |
| 133 | 133 | array $optimizedTargets, |
| 134 | 134 | array $encodedItems, |
| 135 | - ?LoggerInterface $logger |
|
| 136 | - ): array { |
|
| 135 | + ? LoggerInterface $logger |
|
| 136 | + ) : array { |
|
| 137 | 137 | foreach (static::evaluateTargets($context, $optimizedTargets, $logger) as $match => $itemId) { |
| 138 | 138 | $encodedItem = $encodedItems[$itemId]; |
| 139 | 139 | $packedEvaluation = static::evaluateItem($context, $match, $encodedItem, $logger); |
@@ -161,8 +161,8 @@ discard block |
||
| 161 | 161 | ContextInterface $context, |
| 162 | 162 | array $optimizedTargets, |
| 163 | 163 | array $encodedItems, |
| 164 | - ?LoggerInterface $logger |
|
| 165 | - ): array { |
|
| 164 | + ? LoggerInterface $logger |
|
| 165 | + ) : array { |
|
| 166 | 166 | foreach (static::evaluateTargets($context, $optimizedTargets, $logger) as $match => $itemId) { |
| 167 | 167 | $encodedItem = $encodedItems[$itemId]; |
| 168 | 168 | $packedEvaluation = static::evaluateItem($context, $match, $encodedItem, $logger); |
@@ -190,8 +190,8 @@ discard block |
||
| 190 | 190 | ContextInterface $context, |
| 191 | 191 | array $optimizedTargets, |
| 192 | 192 | array $encodedItems, |
| 193 | - ?LoggerInterface $logger |
|
| 194 | - ): array { |
|
| 193 | + ? LoggerInterface $logger |
|
| 194 | + ) : array { |
|
| 195 | 195 | foreach (static::evaluateTargets($context, $optimizedTargets, $logger) as $match => $itemId) { |
| 196 | 196 | $encodedItem = $encodedItems[$itemId]; |
| 197 | 197 | $packedEvaluation = static::evaluateItem($context, $match, $encodedItem, $logger); |
@@ -223,8 +223,8 @@ discard block |
||
| 223 | 223 | ContextInterface $context, |
| 224 | 224 | array $optimizedTargets, |
| 225 | 225 | array $encodedItems, |
| 226 | - ?LoggerInterface $logger |
|
| 227 | - ): array { |
|
| 226 | + ? LoggerInterface $logger |
|
| 227 | + ) : array { |
|
| 228 | 228 | $foundDeny = false; |
| 229 | 229 | $foundPermit = false; |
| 230 | 230 | $foundIntDeny = false; |
@@ -301,8 +301,8 @@ discard block |
||
| 301 | 301 | ContextInterface $context, |
| 302 | 302 | array $optimizedTargets, |
| 303 | 303 | array $encodedItems, |
| 304 | - ?LoggerInterface $logger |
|
| 305 | - ): array { |
|
| 304 | + ? LoggerInterface $logger |
|
| 305 | + ) : array { |
|
| 306 | 306 | $foundDeny = false; |
| 307 | 307 | $foundPermit = false; |
| 308 | 308 | $foundIntDeny = false; |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | public static function evaluateTargets( |
| 38 | 38 | ContextInterface $context, |
| 39 | 39 | array $optimizedTargets, |
| 40 | - ?LoggerInterface $logger |
|
| 41 | - ): Generator; |
|
| 40 | + ? LoggerInterface $logger |
|
| 41 | + ) : Generator; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param ContextInterface $context |
@@ -52,6 +52,6 @@ discard block |
||
| 52 | 52 | ContextInterface $context, |
| 53 | 53 | int $match, |
| 54 | 54 | array $encodedItem, |
| 55 | - ?LoggerInterface $logger |
|
| 56 | - ): array; |
|
| 55 | + ? LoggerInterface $logger |
|
| 56 | + ) : array; |
|
| 57 | 57 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | ContextInterface $context, |
| 42 | 42 | array $optimizedTargets, |
| 43 | 43 | array $serializedRules, |
| 44 | - ?LoggerInterface $logger |
|
| 45 | - ): array { |
|
| 44 | + ? LoggerInterface $logger |
|
| 45 | + ) : array { |
|
| 46 | 46 | return static::evaluateDenyOverrides($context, $optimizedTargets, $serializedRules, $logger); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -102,8 +102,8 @@ |
||
| 102 | 102 | ContextInterface $context, |
| 103 | 103 | int $match, |
| 104 | 104 | array $encodedItem, |
| 105 | - ?LoggerInterface $logger |
|
| 106 | - ): array { |
|
| 105 | + ? LoggerInterface $logger |
|
| 106 | + ) : array { |
|
| 107 | 107 | return static::evaluateRule($context, $match, $encodedItem, $logger); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | ContextInterface $context, |
| 42 | 42 | array $optimizedTargets, |
| 43 | 43 | array $encodedRules, |
| 44 | - ?LoggerInterface $logger |
|
| 45 | - ): array { |
|
| 44 | + ? LoggerInterface $logger |
|
| 45 | + ) : array { |
|
| 46 | 46 | return self::evaluateFirstApplicable($context, $optimizedTargets, $encodedRules, $logger); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | ContextInterface $context, |
| 42 | 42 | array $optimizedTargets, |
| 43 | 43 | array $encodedRules, |
| 44 | - ?LoggerInterface $logger |
|
| 45 | - ): array { |
|
| 44 | + ? LoggerInterface $logger |
|
| 45 | + ) : array { |
|
| 46 | 46 | return self::evaluateDenyUnlessPermit($context, $optimizedTargets, $encodedRules, $logger); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | ContextInterface $context, |
| 42 | 42 | array $optimizedTargets, |
| 43 | 43 | array $encPoliciesOrSets, |
| 44 | - ?LoggerInterface $logger |
|
| 45 | - ): array { |
|
| 44 | + ? LoggerInterface $logger |
|
| 45 | + ) : array { |
|
| 46 | 46 | return self::evaluatePermitUnlessDeny($context, $optimizedTargets, $encPoliciesOrSets, $logger); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | ContextInterface $context, |
| 42 | 42 | array $optimizedTargets, |
| 43 | 43 | array $serializedRules, |
| 44 | - ?LoggerInterface $logger |
|
| 45 | - ): array { |
|
| 44 | + ? LoggerInterface $logger |
|
| 45 | + ) : array { |
|
| 46 | 46 | return static::evaluatePermitOverrides($context, $optimizedTargets, $serializedRules, $logger); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @return string|null |
| 239 | 239 | */ |
| 240 | - public static function targetName(array $encodedTarget): ?string |
|
| 240 | + public static function targetName(array $encodedTarget): ? string |
|
| 241 | 241 | { |
| 242 | 242 | assert(static::isTarget($encodedTarget)); |
| 243 | 243 | |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | * |
| 250 | 250 | * @return array|null |
| 251 | 251 | */ |
| 252 | - public static function targetAnyOfs(array $encodedTarget): ?array |
|
| 252 | + public static function targetAnyOfs(array $encodedTarget): ? array |
|
| 253 | 253 | { |
| 254 | 254 | assert(static::isTarget($encodedTarget)); |
| 255 | 255 | |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * |
| 286 | 286 | * @return array|null |
| 287 | 287 | */ |
| 288 | - public static function ruleEffect(array $encodedRule): ?array |
|
| 288 | + public static function ruleEffect(array $encodedRule): ? array |
|
| 289 | 289 | { |
| 290 | 290 | assert(static::isRule($encodedRule)); |
| 291 | 291 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | * |
| 298 | 298 | * @return callable|null |
| 299 | 299 | */ |
| 300 | - public static function ruleCondition(array $encodedRule): ?callable |
|
| 300 | + public static function ruleCondition(array $encodedRule): ? callable |
|
| 301 | 301 | { |
| 302 | 302 | assert(static::isRule($encodedRule)); |
| 303 | 303 | |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | * |
| 334 | 334 | * @return string|null |
| 335 | 335 | */ |
| 336 | - public static function policyName(array $encodedPolicy): ?string |
|
| 336 | + public static function policyName(array $encodedPolicy): ? string |
|
| 337 | 337 | { |
| 338 | 338 | assert(static::isPolicy($encodedPolicy)); |
| 339 | 339 | |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * |
| 504 | 504 | * @return callable|null |
| 505 | 505 | */ |
| 506 | - private static function serializeMethod(MethodInterface $method = null): ?callable |
|
| 506 | + private static function serializeMethod(MethodInterface $method = null): ? callable |
|
| 507 | 507 | { |
| 508 | 508 | return $method === null ? null : $method->getCallable(); |
| 509 | 509 | } |