Completed
Push — master ( 5e1554...b3861e )
by Neomerx
10:42
created
src/Authorization/PolicyAdministration/Method.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function __construct(callable $staticMethod)
35 35
     {
36 36
         assert(
37
-            is_array($staticMethod) === true && count((array)$staticMethod) === 2 &&
37
+            is_array($staticMethod) === true && count((array) $staticMethod) === 2 &&
38 38
             is_string($staticMethod[0]) === true && is_string($staticMethod[1]) === true,
39 39
             'Only array form of static callable method is supported.'
40 40
         );
Please login to merge, or discard this patch.
src/Contracts/Authorization/PolicyAdministration/EvaluationEnum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     const PERMIT = (1 << 0);
28 28
 
29 29
     /** Combine result */
30
-    const DENY =  (1 << 1);
30
+    const DENY = (1 << 1);
31 31
 
32 32
     /** Combine result */
33 33
     const INDETERMINATE = (1 << 2);
Please login to merge, or discard this patch.
src/Contracts/Authorization/PolicyAdministration/TargetMatchEnum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
     const MATCH = 0;
28 28
 
29 29
     /** Combine result */
30
-    const NOT_MATCH =  self::MATCH + 1;
30
+    const NOT_MATCH = self::MATCH + 1;
31 31
 
32 32
     /** Combine result */
33
-    const NO_TARGET =  self::NOT_MATCH + 1;
33
+    const NO_TARGET = self::NOT_MATCH + 1;
34 34
 
35 35
     /** Combine result */
36 36
     const INDETERMINATE = self::NO_TARGET + 1;
Please login to merge, or discard this patch.
src/Authorization/PolicyAdministration/Policy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
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
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Authorization/PolicyAdministration/Rule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      *
91 91
      * @return self
92 92
      */
93
-    public function setName(?string $name): self
93
+    public function setName(?string $name) : self
94 94
     {
95 95
         $this->name = $name;
96 96
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @return self
112 112
      */
113
-    public function setTarget(?TargetInterface $target): self
113
+    public function setTarget(?TargetInterface $target) : self
114 114
     {
115 115
         $this->target = $target;
116 116
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @return self
132 132
      */
133
-    public function setCondition(?MethodInterface $condition): self
133
+    public function setCondition(?MethodInterface $condition) : self
134 134
     {
135 135
         $this->condition = $condition;
136 136
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @return self
152 152
      */
153
-    public function setEffect(?MethodInterface $effect): self
153
+    public function setEffect(?MethodInterface $effect) : self
154 154
     {
155 155
         $this->effect = $effect;
156 156
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         // check every item is Obligation (debug mode only)
176 176
         assert(call_user_func(
177
-            function () use ($obligations) {
177
+            function() use ($obligations) {
178 178
                 foreach ($obligations as $item) {
179 179
                     assert($item instanceof ObligationInterface);
180 180
                 }
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         // check every item is Obligation (debug mode only)
206 206
         assert(call_user_func(
207
-            function () use ($advice) {
207
+            function() use ($advice) {
208 208
                 foreach ($advice as $item) {
209 209
                     assert($item instanceof AdviceInterface);
210 210
                 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/RulesDenyOverrides.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::evaluateDenyOverrides($context, $optimizedTargets, $serializedRules, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/Encoder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Authorization/PolicyDecision/Algorithms/PoliciesOrSetsDenyOverrides.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::evaluateDenyOverrides($context, $optimizedTargets, $encPoliciesOrSets, $logger);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
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.