Completed
Branch gettersetter (d9b5dd)
by Tim
01:59
created
src/SAML2/Configuration/SimpleSAMLConverter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@
 block discarded – undo
67 67
 
68 68
         // ported from
69 69
         // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/lib/SimpleSAML/Configuration.php#L1119
70
-        if ($configuration->hasValue($prefix . 'certificate')) {
70
+        if ($configuration->hasValue($prefix.'certificate')) {
71 71
             $extracted['certificateData'] = $configuration->getString($prefix.'certificate');
72 72
         }
73 73
 
74 74
         // ported from
75 75
         // https://github.com/simplesamlphp/simplesamlphp/blob/3d735912342767d391297cc5e13272a76730aca0/modules/saml/lib/Message.php#L161
76
-        if ($configuration->hasValue($prefix . 'certFingerprint')) {
76
+        if ($configuration->hasValue($prefix.'certFingerprint')) {
77 77
             $extracted['certificateFingerprint'] = $configuration->getArrayizeString('certFingerprint');
78 78
         }
79 79
 
Please login to merge, or discard this patch.
src/SAML2/HTTPArtifact.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         if (array_key_exists('SAMLart', $_REQUEST)) {
83 83
             $artifact = base64_decode($_REQUEST['SAMLart']);
84
-            $endpointIndex =  bin2hex(substr($artifact, 2, 2));
84
+            $endpointIndex = bin2hex(substr($artifact, 2, 2));
85 85
             $sourceId = bin2hex(substr($artifact, 4, 20));
86 86
         } else {
87 87
             throw new \Exception('Missing SAMLart parameter.');
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
         $endpoint = null;
99 99
         foreach ($idpMetadata->getEndpoints('ArtifactResolutionService') as $ep) {
100
-            if ($ep['index'] ===  hexdec($endpointIndex)) {
100
+            if ($ep['index'] === hexdec($endpointIndex)) {
101 101
                 $endpoint = $ep;
102 102
                 break;
103 103
             }
Please login to merge, or discard this patch.
src/SAML2/LogoutRequest.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Check whether the NameId is encrypted.
110 110
      *
111
-     * @return true if the NameId is encrypted, false if not.
111
+     * @return boolean if the NameId is encrypted, false if not.
112 112
      */
113 113
     public function isNameIdEncrypted()
114 114
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Set the name identifier of the session that should be terminated.
189 189
      *
190
-     * @param \SAML2\XML\saml\NameID|array|null $nameId The name identifier of the session that should be terminated.
190
+     * @param NameID|null $nameId The name identifier of the session that should be terminated.
191 191
      */
192 192
     public function setNameId($nameId)
193 193
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
         if ($this->getEncryptedNameId() === null) {
285 285
             $this->nameId->toXML($root);
286 286
         } else {
287
-            $eid = $root->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:' . 'EncryptedID');
287
+            $eid = $root->ownerDocument->createElementNS(Constants::NS_SAML, 'saml:'.'EncryptedID');
288 288
             $root->appendChild($eid);
289 289
             $eid->appendChild($root->ownerDocument->importNode($this->getEncryptedNameId(), true));
290 290
         }
Please login to merge, or discard this patch.
src/SAML2/XML/ecp/Response.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * Set the value of the AssertionConsumerServiceURL-property
65
-     * @param string $AssertionConsumerServiceURL
65
+     * @param string $assertionConsumerServiceURL
66 66
      */
67 67
     public function setAssertionConsumerServiceURL($assertionConsumerServiceURL)
68 68
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use DOMElement;
6 6
 use InvalidArgumentException;
7
-
8 7
 use SAML2\Constants;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/SAML2/XML/md/AffiliationDescriptor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
 
199 199
     /**
200 200
      * Set the value of the Extensions-property
201
-     * @param array $extensions
201
+     * @param \SAML2\XML\Chunk[] $extensions
202 202
      */
203 203
     public function setExtensions(array $extensions)
204 204
     {
Please login to merge, or discard this patch.
src/SAML2/XML/md/EntityDescriptor.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
     /**
269 269
      * Set the value of the Extensions-property
270
-     * @param array $extensions
270
+     * @param \SAML2\XML\Chunk[] $extensions
271 271
      */
272 272
     public function setExtensions(array $extensions)
273 273
     {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 
313 313
     /**
314 314
      * Set the value of the AffliationDescriptor-property
315
-     * @param \SAML2\XML\md\AffiliationDescriptor $affiliationDescriptor|null
315
+     * @param \SAML2\XML\md\AffiliationDescriptor $affiliationDescriptor
316 316
      */
317 317
     public function setAffiliationDescriptor(AffiliationDescriptor $affiliationDescriptor = null)
318 318
     {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
     /**
332 332
      * Set the value of the Organization-property
333
-     * @param \SAML2\XML\md\Organization $organization|null
333
+     * @param \SAML2\XML\md\Organization $organization
334 334
      */
335 335
     public function setOrganization(Organization $organization = null)
336 336
     {
Please login to merge, or discard this patch.
src/SAML2/XML/md/PDPDescriptor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
     /**
80 80
      * Set the value of the AuthzService-property
81
-     * @param \SAML2\XML\md\EndpointType[] $AuthzService
81
+     * @param \SAML2\XML\md\EndpointType[] $authzService
82 82
      */
83 83
     public function setAuthzService(array $authzService = [])
84 84
     {
Please login to merge, or discard this patch.
src/SAML2/XML/md/RoleDescriptor.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     /**
214 214
      * Set the value of the Extensions-property
215
-     * @param array $extensions
215
+     * @param \SAML2\XML\Chunk[] $extensions
216 216
      */
217 217
     public function setExtensions(array $extensions)
218 218
     {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
     /**
272 272
      * Set the value of the Organization-property
273
-     * @param \SAML2\XML\md\Organization $organization|null
273
+     * @param \SAML2\XML\md\Organization $organization
274 274
      */
275 275
     public function setOrganization(Organization $organization = null)
276 276
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         }
119 119
 
120 120
         if (!$xml->hasAttribute('protocolSupportEnumeration')) {
121
-            throw new \Exception('Missing protocolSupportEnumeration attribute on ' . $xml->localName);
121
+            throw new \Exception('Missing protocolSupportEnumeration attribute on '.$xml->localName);
122 122
         }
123 123
         $this->setProtocolSupportEnumeration(preg_split('/[\s]+/', $xml->getAttribute('protocolSupportEnumeration')));
124 124
 
Please login to merge, or discard this patch.
src/SAML2/XML/md/SSODescriptorType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     /**
101 101
      * Add the value to the ArtifactResolutionService-property
102
-     * @param \SAML2\XML\md\IndexedEndpointType $artifactResolucationService
102
+     * @param \SAML2\XML\md\IndexedEndpointType $artifactResolutionService
103 103
      */
104 104
     public function addArtifactResolutionService(IndexedEndpointType $artifactResolutionService)
105 105
     {
Please login to merge, or discard this patch.