Passed
Push — master ( c412ae...78c728 )
by Tim
01:31
created
src/XML/md/SPSSODescriptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         Assert::maxCount(
101 101
             array_filter(
102 102
                 $attributeConsumingService,
103
-                function (AttributeConsumingService $acs) {
103
+                function(AttributeConsumingService $acs) {
104 104
                     return $acs->getIsDefault()?->toBoolean() === true;
105 105
                 },
106 106
             ),
Please login to merge, or discard this patch.
src/XML/md/AbstractMetadataDocument.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             /**
46 46
              * MDUI 2.1: this element MUST NOT appear more than once within a given <md:Extensions> element.
47 47
              */
48
-            $uiInfo = array_values(array_filter($exts, function ($ext) {
48
+            $uiInfo = array_values(array_filter($exts, function($ext) {
49 49
                 return $ext instanceof UIInfo;
50 50
             }));
51 51
             Assert::maxCount($uiInfo, 1, ProtocolViolationException::class);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             /**
54 54
              * MDUI 2.2: this element MUST NOT appear more than once within a given <md:Extensions> element.
55 55
              */
56
-            $discoHints = array_values(array_filter($exts, function ($ext) {
56
+            $discoHints = array_values(array_filter($exts, function($ext) {
57 57
                 return $ext instanceof DiscoHints;
58 58
             }));
59 59
             Assert::maxCount($discoHints, 1, ProtocolViolationException::class);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             /**
62 62
              * MDRPI 2.1: this element MUST NOT appear more than once within a given <md:Extensions> element.
63 63
              */
64
-            $regInfo = array_values(array_filter($exts, function ($ext) {
64
+            $regInfo = array_values(array_filter($exts, function($ext) {
65 65
                 return $ext instanceof RegistrationInfo;
66 66
             }));
67 67
             Assert::maxCount($regInfo, 1, ProtocolViolationException::class);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             /**
70 70
              * MDRPI 2.2: this element MUST NOT appear more than once within a given <md:Extensions> element.
71 71
              */
72
-            $pubInfo = array_values(array_filter($exts, function ($ext) {
72
+            $pubInfo = array_values(array_filter($exts, function($ext) {
73 73
                 return $ext instanceof PublicationInfo;
74 74
             }));
75 75
             Assert::maxCount($regInfo, 1, ProtocolViolationException::class);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
              * MDRPI 2.3: The <mdrpi:PublicationPath> element MUST NOT appear more than once within the
79 79
              * <md:Extensions> element of a given <md:EntitiesDescriptor> or <md:EntityDescriptor> element.
80 80
              */
81
-            $pubPath = array_values(array_filter($exts, function ($ext) {
81
+            $pubPath = array_values(array_filter($exts, function($ext) {
82 82
                 return $ext instanceof PublicationPath;
83 83
             }));
84 84
             Assert::maxCount($pubPath, 1, ProtocolViolationException::class);
Please login to merge, or discard this patch.
src/XML/saml/NameIDType.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
      * @param \SimpleSAML\SAML2\Type\SAMLStringValue|null $SPNameQualifier
38 38
      */
39 39
     protected function __construct(
40
-        SAMLStringValue|SAMLAnyURIValue $value,
40
+        SAMLStringValue | SAMLAnyURIValue $value,
41 41
         protected ?SAMLStringValue $NameQualifier = null,
42 42
         protected ?SAMLStringValue $SPNameQualifier = null,
43 43
         protected ?SAMLAnyURIValue $Format = null,
Please login to merge, or discard this patch.
Validation/ConstraintValidator/SubjectConfirmationRecipientMatches.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
     {
33 33
         $recipient = $subjectConfirmation->getSubjectConfirmationData()?->getRecipient();
34 34
 
35
-        if ($recipient !== null && !$recipient->equals((string)$this->destination)) {
35
+        if ($recipient !== null && !$recipient->equals((string) $this->destination)) {
36 36
             $result->addError(sprintf(
37 37
                 'Recipient in SubjectConfirmationData ("%s") does not match the current destination ("%s")',
38 38
                 $recipient,
39
-                (string)$this->destination,
39
+                (string) $this->destination,
40 40
             ));
41 41
         }
42 42
     }
Please login to merge, or discard this patch.
src/XML/shibmd/KeyAuthority.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      *
54 54
      * @return \SimpleSAML\XMLSchema\Type\UnsignedByteValue|null
55 55
      */
56
-    public function getVerifyDepth(): UnsignedByteValue|null
56
+    public function getVerifyDepth(): UnsignedByteValue | null
57 57
     {
58 58
         return $this->VerifyDepth;
59 59
     }
Please login to merge, or discard this patch.
src/Binding/SOAP.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @throws \Exception
41 41
      */
42
-    public function getOutputToSend(AbstractMessage $message): string|false
42
+    public function getOutputToSend(AbstractMessage $message): string | false
43 43
     {
44 44
         $header = new Header();
45 45
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * @return string|false
116 116
      */
117
-    protected function getInputStream(): string|false
117
+    protected function getInputStream(): string | false
118 118
     {
119 119
         return file_get_contents('php://input');
120 120
     }
Please login to merge, or discard this patch.
src/Certificate/KeyLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      * Loads the keys given, optionally excluding keys when a usage is given and they
91 91
      * are not configured to be used with the usage given
92 92
      */
93
-    public function loadKeys(array|Traversable $configuredKeys, ?string $usage = null): void
93
+    public function loadKeys(array | Traversable $configuredKeys, ?string $usage = null): void
94 94
     {
95 95
         foreach ($configuredKeys as $keyData) {
96 96
             if (isset($keyData['X509Certificate'])) {
Please login to merge, or discard this patch.
src/Compat/MockContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * @param array $data
61 61
      */
62 62
     public function getPOSTRedirectURL(
63
-        /** @scrutinizer ignore-unused */?string $url = null,
63
+        /** @scrutinizer ignore-unused */ ?string $url = null,
64 64
         /** @scrutinizer ignore-unused */array $data = [],
65 65
     ): string {
66 66
         return strval($url);
Please login to merge, or discard this patch.
src/XML/saml/Assertion.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
         Assert::maxCount($statements, C::UNBOUNDED_LIMIT);
91 91
         Assert::allIsInstanceOf($statements, AbstractStatementType::class);
92 92
 
93
-        $authnStatements = array_values(array_filter($statements, function ($statement) {
93
+        $authnStatements = array_values(array_filter($statements, function($statement) {
94 94
             return $statement instanceof AuthnStatement;
95 95
         }));
96 96
 
97
-        $attributeStatements = array_values(array_filter($statements, function ($statement) {
97
+        $attributeStatements = array_values(array_filter($statements, function($statement) {
98 98
             return $statement instanceof AttributeStatement;
99 99
         }));
100 100
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function getAttributeStatements(): array
137 137
     {
138
-        return array_values(array_filter($this->statements, function ($statement) {
138
+        return array_values(array_filter($this->statements, function($statement) {
139 139
             return $statement instanceof AttributeStatement;
140 140
         }));
141 141
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function getAuthnStatements(): array
148 148
     {
149
-        return array_values(array_filter($this->statements, function ($statement) {
149
+        return array_values(array_filter($this->statements, function($statement) {
150 150
             return $statement instanceof AuthnStatement;
151 151
         }));
152 152
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function getStatements(): array
159 159
     {
160
-        return array_values(array_filter($this->statements, function ($statement) {
160
+        return array_values(array_filter($this->statements, function($statement) {
161 161
             return $statement instanceof AbstractStatement;
162 162
         }));
163 163
     }
Please login to merge, or discard this patch.