Completed
Push — master ( 91621e...87af8d )
by Neomerx
03:43
created
src/Authorization/PolicyDecision/Algorithms/RulesPermitUnlessDeny.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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::evaluatePermitUnlessDeny($context, $optimizedTargets, $encodedRules, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/PoliciesOrSetsDenyOverrides.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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 static::evaluateDenyOverrides($context, $optimizedTargets, $encPoliciesOrSets, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/BaseAlgorithm.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/BaseAlgorithmInterface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
52 52
         ContextInterface $context,
53 53
         int $match,
54 54
         array $encodedItem,
55
-        ?LoggerInterface $logger
56
-    ): array;
55
+        ? LoggerInterface $logger
56
+    ) : array;
57 57
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesDenyOverrides.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/BaseRuleAlgorithm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesFirstApplicable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesDenyUnlessPermit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Authorization/PolicyDecision/Algorithms/PoliciesOrSetsPermitUnlessDeny.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.