Completed
Push — master ( 5e1554...b3861e )
by Neomerx
10:42
created
Authorization/PolicyDecision/Algorithms/PoliciesOrSetsPermitUnlessDeny.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         array $optimizedTargets,
43 43
         array $encPoliciesOrSets,
44 44
         ?LoggerInterface $logger
45
-    ): array {
45
+    ) : array {
46 46
         return self::evaluatePermitUnlessDeny($context, $optimizedTargets, $encPoliciesOrSets, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/BaseRuleAlgorithm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         int $match,
104 104
         array $encodedItem,
105 105
         ?LoggerInterface $logger
106
-    ): array {
106
+    ) : array {
107 107
         return static::evaluateRule($context, $match, $encodedItem, $logger);
108 108
     }
109 109
 
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/BaseAlgorithmInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         ContextInterface $context,
39 39
         array $optimizedTargets,
40 40
         ?LoggerInterface $logger
41
-    ): Generator;
41
+    ) : Generator;
42 42
 
43 43
     /**
44 44
      * @param ContextInterface     $context
@@ -53,5 +53,5 @@  discard block
 block discarded – undo
53 53
         int $match,
54 54
         array $encodedItem,
55 55
         ?LoggerInterface $logger
56
-    ): array;
56
+    ) : array;
57 57
 }
Please login to merge, or discard this patch.
Authorization/PolicyDecision/Algorithms/PoliciesOrSetsDenyUnlessPermit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         array $optimizedTargets,
43 43
         array $encPoliciesOrSets,
44 44
         ?LoggerInterface $logger
45
-    ): array {
45
+    ) : array {
46 46
         return self::evaluateDenyUnlessPermit($context, $optimizedTargets, $encPoliciesOrSets, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesDenyUnlessPermit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         array $optimizedTargets,
43 43
         array $encodedRules,
44 44
         ?LoggerInterface $logger
45
-    ): array {
45
+    ) : array {
46 46
         return self::evaluateDenyUnlessPermit($context, $optimizedTargets, $encodedRules, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/DefaultTargetSerializeTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Authorization/PolicyDecision/Algorithms/PoliciesOrSetsPermitOverrides.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         array $optimizedTargets,
43 43
         array $encPoliciesOrSets,
44 44
         ?LoggerInterface $logger
45
-    ): array {
45
+    ) : array {
46 46
         return static::evaluatePermitOverrides($context, $optimizedTargets, $encPoliciesOrSets, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesPermitUnlessDeny.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         array $optimizedTargets,
43 43
         array $encodedRules,
44 44
         ?LoggerInterface $logger
45
-    ): array {
45
+    ) : array {
46 46
         return self::evaluatePermitUnlessDeny($context, $optimizedTargets, $encodedRules, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesPermitOverrides.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         array $optimizedTargets,
43 43
         array $serializedRules,
44 44
         ?LoggerInterface $logger
45
-    ): array {
45
+    ) : array {
46 46
         return static::evaluatePermitOverrides($context, $optimizedTargets, $serializedRules, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.