@@ -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 | } |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | public static function evaluateTargets( |
| 41 | 41 | ContextInterface $context, |
| 42 | 42 | array $optimizedTargets, |
| 43 | - ?LoggerInterface $logger |
|
| 44 | - ): Generator { |
|
| 43 | + ? LoggerInterface $logger |
|
| 44 | + ) : Generator { |
|
| 45 | 45 | foreach ($optimizedTargets as $ruleId => $anyOf) { |
| 46 | 46 | $match = static::evaluateTarget($context, $anyOf, $logger); |
| 47 | 47 | |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | protected static function evaluateTarget( |
| 64 | 64 | ContextInterface $context, |
| 65 | 65 | array $target, |
| 66 | - ?LoggerInterface $logger |
|
| 67 | - ): int { |
|
| 66 | + ? LoggerInterface $logger |
|
| 67 | + ) : int { |
|
| 68 | 68 | /** @see http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html #7.11 (table 4) */ |
| 69 | 69 | |
| 70 | 70 | assert(Encoder::isTarget($target) === true); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @return array |
| 126 | 126 | */ |
| 127 | - protected static function encodeTarget(?TargetInterface $target): array |
|
| 127 | + protected static function encodeTarget(? TargetInterface $target) : array |
|
| 128 | 128 | { |
| 129 | 129 | $name = null; |
| 130 | 130 | $anyOfs = null; |
@@ -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::evaluateDenyUnlessPermit($context, $optimizedTargets, $encPoliciesOrSets, $logger); |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -24,12 +24,12 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @return string|null |
| 26 | 26 | */ |
| 27 | - public function getName(): ?string; |
|
| 27 | + public function getName(): ? string; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @return TargetInterface|null |
| 31 | 31 | */ |
| 32 | - public function getTarget(): ?TargetInterface; |
|
| 32 | + public function getTarget(): ? TargetInterface; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @return PolicyInterface[]|PolicySetInterface[] |
@@ -24,24 +24,24 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @return string|null |
| 26 | 26 | */ |
| 27 | - public function getName(): ?string; |
|
| 27 | + public function getName(): ? string; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @return TargetInterface|null |
| 31 | 31 | */ |
| 32 | - public function getTarget(): ?TargetInterface; |
|
| 32 | + public function getTarget(): ? TargetInterface; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Optional extra check if rule matches incoming request. |
| 36 | 36 | * |
| 37 | 37 | * @return MethodInterface|null |
| 38 | 38 | */ |
| 39 | - public function getCondition(): ?MethodInterface; |
|
| 39 | + public function getCondition(): ? MethodInterface; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @return MethodInterface|null |
| 43 | 43 | */ |
| 44 | - public function effect(): ?MethodInterface; |
|
| 44 | + public function effect(): ? MethodInterface; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @return ObligationInterface[] |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @return string|null |
| 26 | 26 | */ |
| 27 | - public function getName(): ?string; |
|
| 27 | + public function getName(): ? string; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @return AnyOfInterface |
@@ -24,12 +24,12 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @return string|null |
| 26 | 26 | */ |
| 27 | - public function getName(): ?string; |
|
| 27 | + public function getName(): ? string; |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @return TargetInterface|null |
| 31 | 31 | */ |
| 32 | - public function getTarget(): ?TargetInterface; |
|
| 32 | + public function getTarget(): ? TargetInterface; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @return RuleInterface[] |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * @inheritdoc |
| 83 | 83 | */ |
| 84 | - public function getName(): ?string |
|
| 84 | + public function getName(): ? string |
|
| 85 | 85 | { |
| 86 | 86 | return $this->name; |
| 87 | 87 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * |
| 92 | 92 | * @return self |
| 93 | 93 | */ |
| 94 | - public function setName(?string $name): self |
|
| 94 | + public function setName(? string $name) : self |
|
| 95 | 95 | { |
| 96 | 96 | $this->name = $name; |
| 97 | 97 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | /** |
| 102 | 102 | * @inheritdoc |
| 103 | 103 | */ |
| 104 | - public function getTarget(): ?TargetInterface |
|
| 104 | + public function getTarget(): ? TargetInterface |
|
| 105 | 105 | { |
| 106 | 106 | return $this->target; |
| 107 | 107 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @return self |
| 113 | 113 | */ |
| 114 | - public function setTarget(?TargetInterface $target): self |
|
| 114 | + public function setTarget(? TargetInterface $target) : self |
|
| 115 | 115 | { |
| 116 | 116 | $this->target = $target; |
| 117 | 117 | |