Passed
Push — master ( 39ab84...adabfe )
by Tim
01:46
created
src/Signature/PublicKeyValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         Assert::notEmpty($this->configuredKeys);
69 69
 
70 70
         $logger = $this->logger;
71
-        $pemCandidates = $this->configuredKeys->filter(function (Key $key) use ($logger) {
71
+        $pemCandidates = $this->configuredKeys->filter(function(Key $key) use ($logger) {
72 72
             if (!$key instanceof X509) {
73 73
                 $logger->debug(sprintf('Skipping unknown key type: "%s"', $key['type']));
74 74
                 return false;
Please login to merge, or discard this patch.
src/XML/mdattr/EntityAttributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         Assert::maxCount($children, C::UNBOUNDED_LIMIT);
41 41
         Assert::allIsInstanceOfAny($children, [Assertion::class, Attribute::class]);
42 42
 
43
-        $assertions = array_filter($children, function ($child) {
43
+        $assertions = array_filter($children, function($child) {
44 44
             return $child instanceof Assertion;
45 45
         });
46 46
 
Please login to merge, or discard this patch.
src/XML/mdui/UIInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
             Assert::maxCount(array_unique($types), 1, 'Multiple class types cannot be used.');
230 230
 
231 231
             $languages = array_map(
232
-                function ($elt) {
232
+                function($elt) {
233 233
                     return $elt->getLanguage();
234 234
                 },
235 235
                 $elements,
Please login to merge, or discard this patch.
src/XML/mdrpi/PublicationInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
          *         within a given <mdrpi:UsageInfo>, for a given language
40 40
          */
41 41
         $languages = array_map(
42
-            function ($up) {
42
+            function($up) {
43 43
                 return $up->getLanguage();
44 44
             },
45 45
             $usagePolicy,
Please login to merge, or discard this patch.
src/XML/mdrpi/RegistrationInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
          *         within a given <mdrpi:RegistrationInfo>, for a given language
38 38
          */
39 39
         $languages = array_map(
40
-            function ($rp) {
40
+            function($rp) {
41 41
                 return $rp->getLanguage();
42 42
             },
43 43
             $registrationPolicy,
Please login to merge, or discard this patch.
src/Configuration/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             $required = false;
77 77
         }
78 78
         $privateKeys = $this->get('privateKeys');
79
-        $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) {
79
+        $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) {
80 80
             return $key->getName() === $name;
81 81
         });
82 82
 
Please login to merge, or discard this patch.
src/Configuration/IdentityProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             $required = false;
77 77
         }
78 78
         $privateKeys = $this->get('privateKeys');
79
-        $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) {
79
+        $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) {
80 80
             return $key->getName() === $name;
81 81
         });
82 82
 
Please login to merge, or discard this patch.
src/Assertion/Transformer/NameIdDecryptionTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             return $assertion;
70 70
         }
71 71
 
72
-        $decryptionKeys  = $this->privateKeyLoader->loadDecryptionKeys($this->identityProvider, $this->serviceProvider);
72
+        $decryptionKeys = $this->privateKeyLoader->loadDecryptionKeys($this->identityProvider, $this->serviceProvider);
73 73
 
74 74
         $decrypted = null;
75 75
         foreach ($decryptionKeys as $index => $key) {
Please login to merge, or discard this patch.
src/XML/md/EntitiesDescriptor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
              * manner, descendant <md:EntitiesDescriptor> and <md:EntityDescriptor> elements MUST
69 69
              * NOT contain a <mdrpi:RegistrationInfo> element in their <md:Extensions> element.
70 70
              */
71
-            $toplevel_regInfo = array_values(array_filter($extensions->getList(), function ($ext) {
71
+            $toplevel_regInfo = array_values(array_filter($extensions->getList(), function($ext) {
72 72
                 return $ext instanceof RegistrationInfo;
73 73
             }));
74 74
 
75 75
             /**
76 76
              * The <mdrpi:PublicationInfo> element SHOULD only be used on the root element of a metadata document.
77 77
              */
78
-            $toplevel_pubInfo = array_values(array_filter($extensions->getList(), function ($ext) {
78
+            $toplevel_pubInfo = array_values(array_filter($extensions->getList(), function($ext) {
79 79
                 return $ext instanceof PublicationInfo;
80 80
             }));
81 81
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
              * When used in this manner, descendant <md:EntitiesDescriptor> and <md:EntityDescriptor>
88 88
              * elements MUST NOT contain a <mdrpi:PublicationPath> element in their <md:Extensions> element.
89 89
              */
90
-            $toplevel_pubPath = array_values(array_filter($extensions->getList(), function ($ext) {
90
+            $toplevel_pubPath = array_values(array_filter($extensions->getList(), function($ext) {
91 91
                 return $ext instanceof PublicationPath;
92 92
             }));
93 93
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 }
99 99
 
100 100
                 if (count($toplevel_regInfo) > 0) {
101
-                    $nested_regInfo = array_values(array_filter($nestedExtensions, function ($ext) {
101
+                    $nested_regInfo = array_values(array_filter($nestedExtensions, function($ext) {
102 102
                         return $ext instanceof RegistrationInfo;
103 103
                     }));
104 104
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 }
112 112
 
113 113
                 if (count($toplevel_pubInfo) > 0) {
114
-                    $nested_pubInfo = array_values(array_filter($nestedExtensions, function ($ext) {
114
+                    $nested_pubInfo = array_values(array_filter($nestedExtensions, function($ext) {
115 115
                         return $ext instanceof PublicationInfo;
116 116
                     }));
117 117
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 }
125 125
 
126 126
                 if (count($toplevel_pubPath) > 0) {
127
-                    $nested_pubPath = array_values(array_filter($nestedExtensions, function ($ext) {
127
+                    $nested_pubPath = array_values(array_filter($nestedExtensions, function($ext) {
128 128
                         return $ext instanceof PublicationPath;
129 129
                     }));
130 130
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     /**
146 146
      * Get all extensions from all nested entity/entities descriptors
147 147
      */
148
-    private function getRecursiveExtensions(EntityDescriptor|EntitiesDescriptor $descriptor): array
148
+    private function getRecursiveExtensions(EntityDescriptor | EntitiesDescriptor $descriptor): array
149 149
     {
150 150
         $extensions = [];
151 151
         if ($descriptor->getExtensions() !== null) {
Please login to merge, or discard this patch.