Skip to content

Commit e0c5827

Browse files
authored
Merge pull request #336 from tjallingt/array-constructor
[style] Remove space after array constructor
2 parents 03efada + e35d420 commit e0c5827

22 files changed

Lines changed: 204 additions & 204 deletions

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ file, rename and edit it.
242242
```php
243243
<?php
244244

245-
$settings = array (
245+
$settings = array(
246246
// If 'strict' is True, then the PHP Toolkit will reject unsigned
247247
// or unencrypted messages if it expects them to be signed or encrypted.
248248
// Also it will reject the messages if the SAML standard is not strictly
@@ -259,12 +259,12 @@ $settings = array (
259259
'baseurl' => null,
260260

261261
// Service Provider Data that we are deploying.
262-
'sp' => array (
262+
'sp' => array(
263263
// Identifier of the SP entity (must be a URI)
264264
'entityId' => '',
265265
// Specifies info about where and how the <AuthnResponse> message MUST be
266266
// returned to the requester, in this case our SP.
267-
'assertionConsumerService' => array (
267+
'assertionConsumerService' => array(
268268
// URL Location where the <Response> from the IdP will be returned
269269
'url' => '',
270270
// SAML protocol binding to be used when returning the <Response>
@@ -290,7 +290,7 @@ $settings = array (
290290
),
291291
// Specifies info about where and how the <Logout Response> message MUST be
292292
// returned to the requester, in this case our SP.
293-
'singleLogoutService' => array (
293+
'singleLogoutService' => array(
294294
// URL Location where the <Response> from the IdP will be returned
295295
'url' => '',
296296
// SAML protocol binding to be used when returning the <Response>
@@ -318,11 +318,11 @@ $settings = array (
318318
),
319319

320320
// Identity Provider Data that we want connected with our SP.
321-
'idp' => array (
321+
'idp' => array(
322322
// Identifier of the IdP entity (must be a URI)
323323
'entityId' => '',
324324
// SSO endpoint info of the IdP. (Authentication Request protocol)
325-
'singleSignOnService' => array (
325+
'singleSignOnService' => array(
326326
// URL Target of the IdP where the Authentication Request Message
327327
// will be sent.
328328
'url' => '',
@@ -332,7 +332,7 @@ $settings = array (
332332
'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
333333
),
334334
// SLO endpoint info of the IdP.
335-
'singleLogoutService' => array (
335+
'singleLogoutService' => array(
336336
// URL Location of the IdP where SLO Request will be sent.
337337
'url' => '',
338338
// SAML protocol binding to be used when returning the <Response>
@@ -386,15 +386,15 @@ that you can copy and rename it as `advanced_settings.php`
386386
```php
387387
<?php
388388

389-
$advancedSettings = array (
389+
$advancedSettings = array(
390390

391391
// Compression settings
392-
'compress' => array (
392+
'compress' => array(
393393
'requests' => true,
394394
'responses' => true
395395
),
396396
// Security settings
397-
'security' => array (
397+
'security' => array(
398398

399399
/** signatures and encryptions offered */
400400

@@ -415,7 +415,7 @@ $advancedSettings = array (
415415
'logoutResponseSigned' => false,
416416

417417
/* Sign the Metadata
418-
False || True (use sp certs) || array (
418+
False || True (use sp certs) || array(
419419
keyFileName => 'metadata.key',
420420
certFileName => 'metadata.crt'
421421
)
@@ -447,7 +447,7 @@ $advancedSettings = array (
447447
// Authentication context.
448448
// Set to false and no AuthContext will be sent in the AuthNRequest.
449449
// Set true or don't present this parameter and you will get an AuthContext 'exact' 'urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport'.
450-
// Set an array with the possible auth context values: array ('urn:oasis:names:tc:SAML:2.0:ac:classes:Password', 'urn:oasis:names:tc:SAML:2.0:ac:classes:X509').
450+
// Set an array with the possible auth context values: array('urn:oasis:names:tc:SAML:2.0:ac:classes:Password', 'urn:oasis:names:tc:SAML:2.0:ac:classes:X509').
451451
'requestedAuthnContext' => true,
452452

453453
// Indicates if the SP will validate all received xmls.
@@ -482,20 +482,20 @@ $advancedSettings = array (
482482

483483
// Contact information template, it is recommended to supply a
484484
// technical and support contacts.
485-
'contactPerson' => array (
486-
'technical' => array (
485+
'contactPerson' => array(
486+
'technical' => array(
487487
'givenName' => '',
488488
'emailAddress' => ''
489489
),
490-
'support' => array (
490+
'support' => array(
491491
'givenName' => '',
492492
'emailAddress' => ''
493493
),
494494
),
495495

496496
// Organization information template, the info in en_US lang is
497497
// recomended, add more if required.
498-
'organization' => array (
498+
'organization' => array(
499499
'en-US' => array(
500500
'name' => '',
501501
'displayname' => '',

advanced_settings_example.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php
22

3-
$advancedSettings = array (
3+
$advancedSettings = array(
44

55
// Compression settings
66
// Handle if the getRequest/getResponse methods will return the Request/Response deflated.
77
// But if we provide a $deflate boolean parameter to the getRequest or getResponse
88
// method it will have priority over the compression settings.
9-
'compress' => array (
9+
'compress' => array(
1010
'requests' => true,
1111
'responses' => true
1212
),
1313

1414
// Security settings
15-
'security' => array (
15+
'security' => array(
1616

1717
/** signatures and encryptions offered */
1818

@@ -33,7 +33,7 @@
3333
'logoutResponseSigned' => false,
3434

3535
/* Sign the Metadata
36-
False || True (use sp certs) || array (
36+
False || True (use sp certs) || array(
3737
keyFileName => 'metadata.key',
3838
certFileName => 'metadata.crt'
3939
)
@@ -66,7 +66,7 @@
6666
// Authentication context.
6767
// Set to false and no AuthContext will be sent in the AuthNRequest,
6868
// Set true or don't present this parameter and you will get an AuthContext 'exact' 'urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport'
69-
// Set an array with the possible auth context values: array ('urn:oasis:names:tc:SAML:2.0:ac:classes:Password', 'urn:oasis:names:tc:SAML:2.0:ac:classes:X509'),
69+
// Set an array with the possible auth context values: array('urn:oasis:names:tc:SAML:2.0:ac:classes:Password', 'urn:oasis:names:tc:SAML:2.0:ac:classes:X509'),
7070
'requestedAuthnContext' => false,
7171

7272
// Allows the authn comparison parameter to be set, defaults to 'exact' if
@@ -104,19 +104,19 @@
104104
),
105105

106106
// Contact information template, it is recommended to suply a technical and support contacts
107-
'contactPerson' => array (
108-
'technical' => array (
107+
'contactPerson' => array(
108+
'technical' => array(
109109
'givenName' => '',
110110
'emailAddress' => ''
111111
),
112-
'support' => array (
112+
'support' => array(
113113
'givenName' => '',
114114
'emailAddress' => ''
115115
),
116116
),
117117

118118
// Organization information template, the info in en_US lang is recomended, add more if required
119-
'organization' => array (
119+
'organization' => array(
120120
'en-US' => array(
121121
'name' => '',
122122
'displayname' => '',

demo1/settings_example.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
$spBaseUrl = 'https://<your_domain>'; //or http://<your_domain>
44

5-
$settingsInfo = array (
6-
'sp' => array (
5+
$settingsInfo = array(
6+
'sp' => array(
77
'entityId' => $spBaseUrl.'/demo1/metadata.php',
8-
'assertionConsumerService' => array (
8+
'assertionConsumerService' => array(
99
'url' => $spBaseUrl.'/demo1/index.php?acs',
1010
),
11-
'singleLogoutService' => array (
11+
'singleLogoutService' => array(
1212
'url' => $spBaseUrl.'/demo1/index.php?sls',
1313
),
1414
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
1515
),
16-
'idp' => array (
16+
'idp' => array(
1717
'entityId' => '',
18-
'singleSignOnService' => array (
18+
'singleSignOnService' => array(
1919
'url' => '',
2020
),
21-
'singleLogoutService' => array (
21+
'singleLogoutService' => array(
2222
'url' => '',
2323
),
2424
'x509cert' => '',

settings_example.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
$settings = array (
3+
$settings = array(
44
// If 'strict' is True, then the PHP Toolkit will reject unsigned
55
// or unencrypted messages if it expects them signed or encrypted
66
// Also will reject the messages if not strictly follow the SAML
@@ -17,12 +17,12 @@
1717
'baseurl' => null,
1818

1919
// Service Provider Data that we are deploying
20-
'sp' => array (
20+
'sp' => array(
2121
// Identifier of the SP entity (must be a URI)
2222
'entityId' => '',
2323
// Specifies info about where and how the <AuthnResponse> message MUST be
2424
// returned to the requester, in this case our SP.
25-
'assertionConsumerService' => array (
25+
'assertionConsumerService' => array(
2626
// URL Location where the <Response> from the IdP will be returned
2727
'url' => '',
2828
// SAML protocol binding to be used when returning the <Response>
@@ -48,7 +48,7 @@
4848
),
4949
// Specifies info about where and how the <Logout Response> message MUST be
5050
// returned to the requester, in this case our SP.
51-
'singleLogoutService' => array (
51+
'singleLogoutService' => array(
5252
// URL Location where the <Response> from the IdP will be returned
5353
'url' => '',
5454
// SAML protocol binding to be used when returning the <Response>
@@ -77,11 +77,11 @@
7777
),
7878

7979
// Identity Provider Data that we want connect with our SP
80-
'idp' => array (
80+
'idp' => array(
8181
// Identifier of the IdP entity (must be a URI)
8282
'entityId' => '',
8383
// SSO endpoint info of the IdP. (Authentication Request protocol)
84-
'singleSignOnService' => array (
84+
'singleSignOnService' => array(
8585
// URL Target of the IdP where the SP will send the Authentication Request Message
8686
'url' => '',
8787
// SAML protocol binding to be used when returning the <Response>
@@ -90,7 +90,7 @@
9090
'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
9191
),
9292
// SLO endpoint info of the IdP.
93-
'singleLogoutService' => array (
93+
'singleLogoutService' => array(
9494
// URL Location of the IdP where the SP will send the SLO Request
9595
'url' => '',
9696
// SAML protocol binding to be used when returning the <Response>

src/Saml2/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function __construct(array $settings = null, $spValidationOnly = false)
160160
private function _loadPaths()
161161
{
162162
$basePath = dirname(dirname(__DIR__)) . '/';
163-
$this->_paths = array (
163+
$this->_paths = array(
164164
'base' => $basePath,
165165
'config' => $basePath,
166166
'cert' => $basePath.'certs/',

tests/data/customPath/advanced_settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3-
$advancedSettings = array (
4-
'security' => array (
3+
$advancedSettings = array(
4+
'security' => array(
55
'nameIdEncrypted' => false,
66
'authnRequestsSigned' => false,
77
'logoutRequestSigned' => false,

tests/data/customPath/settings.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<?php
2-
$settings = array (
3-
'sp' => array (
2+
$settings = array(
3+
'sp' => array(
44
'entityId' => 'http://stuff.com/endpoints/metadata.php',
5-
'assertionConsumerService' => array (
5+
'assertionConsumerService' => array(
66
'url' => 'http://stuff.com/endpoints/endpoints/acs.php',
77
),
8-
'singleLogoutService' => array (
8+
'singleLogoutService' => array(
99
'url' => 'http://stuff.com/endpoints/endpoints/sls.php',
1010
),
1111
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
1212
),
13-
'idp' => array (
13+
'idp' => array(
1414
'entityId' => 'http://idp.example.com/',
15-
'singleSignOnService' => array (
15+
'singleSignOnService' => array(
1616
'url' => 'http://idp.example.com/SSOService.php',
1717
),
18-
'singleLogoutService' => array (
18+
'singleLogoutService' => array(
1919
'url' => 'http://idp.example.com/SingleLogoutService.php',
2020
),
2121
'x509cert' => 'MIICgTCCAeoCCQCbOlrWDdX7FTANBgkqhkiG9w0BAQUFADCBhDELMAkGA1UEBhMCTk8xGDAWBgNVBAgTD0FuZHJlYXMgU29sYmVyZzEMMAoGA1UEBxMDRm9vMRAwDgYDVQQKEwdVTklORVRUMRgwFgYDVQQDEw9mZWlkZS5lcmxhbmcubm8xITAfBgkqhkiG9w0BCQEWEmFuZHJlYXNAdW5pbmV0dC5ubzAeFw0wNzA2MTUxMjAxMzVaFw0wNzA4MTQxMjAxMzVaMIGEMQswCQYDVQQGEwJOTzEYMBYGA1UECBMPQW5kcmVhcyBTb2xiZXJnMQwwCgYDVQQHEwNGb28xEDAOBgNVBAoTB1VOSU5FVFQxGDAWBgNVBAMTD2ZlaWRlLmVybGFuZy5ubzEhMB8GCSqGSIb3DQEJARYSYW5kcmVhc0B1bmluZXR0Lm5vMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDivbhR7P516x/S3BqKxupQe0LONoliupiBOesCO3SHbDrl3+q9IbfnfmE04rNuMcPsIxB161TdDpIesLCn7c8aPHISKOtPlAeTZSnb8QAu7aRjZq3+PbrP5uW3TcfCGPtKTytHOge/OlJbo078dVhXQ14d1EDwXJW1rRXuUt4C8QIDAQABMA0GCSqGSIb3DQEBBQUAA4GBACDVfp86HObqY+e8BUoWQ9+VMQx1ASDohBjwOsg2WykUqRXF+dLfcUH9dWR63CtZIKFDbStNomPnQz7nbK+onygwBspVEbnHuUihZq3ZUdmumQqCw4Uvs/1Uvq3orOo/WJVhTyvLgFVK2QarQ4/67OZfHd7R+POBXhophSMv1ZOo',

tests/settings/settings1.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<?php
2-
$settingsInfo = array (
2+
$settingsInfo = array(
33
'strict' => false,
44
'debug' => false,
5-
'sp' => array (
5+
'sp' => array(
66
'entityId' => 'http://stuff.com/endpoints/metadata.php',
7-
'assertionConsumerService' => array (
7+
'assertionConsumerService' => array(
88
'url' => 'http://stuff.com/endpoints/endpoints/acs.php',
99
),
10-
'singleLogoutService' => array (
10+
'singleLogoutService' => array(
1111
'url' => 'http://stuff.com/endpoints/endpoints/sls.php',
1212
),
1313
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified',
1414
),
15-
'idp' => array (
15+
'idp' => array(
1616
'entityId' => 'http://idp.example.com/',
17-
'singleSignOnService' => array (
17+
'singleSignOnService' => array(
1818
'url' => 'http://idp.example.com/SSOService.php',
1919
),
20-
'singleLogoutService' => array (
20+
'singleLogoutService' => array(
2121
'url' => 'http://idp.example.com/SingleLogoutService.php',
2222
),
2323
'x509cert' => 'MIICgTCCAeoCCQCbOlrWDdX7FTANBgkqhkiG9w0BAQUFADCBhDELMAkGA1UEBhMCTk8xGDAWBgNVBAgTD0FuZHJlYXMgU29sYmVyZzEMMAoGA1UEBxMDRm9vMRAwDgYDVQQKEwdVTklORVRUMRgwFgYDVQQDEw9mZWlkZS5lcmxhbmcubm8xITAfBgkqhkiG9w0BCQEWEmFuZHJlYXNAdW5pbmV0dC5ubzAeFw0wNzA2MTUxMjAxMzVaFw0wNzA4MTQxMjAxMzVaMIGEMQswCQYDVQQGEwJOTzEYMBYGA1UECBMPQW5kcmVhcyBTb2xiZXJnMQwwCgYDVQQHEwNGb28xEDAOBgNVBAoTB1VOSU5FVFQxGDAWBgNVBAMTD2ZlaWRlLmVybGFuZy5ubzEhMB8GCSqGSIb3DQEJARYSYW5kcmVhc0B1bmluZXR0Lm5vMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDivbhR7P516x/S3BqKxupQe0LONoliupiBOesCO3SHbDrl3+q9IbfnfmE04rNuMcPsIxB161TdDpIesLCn7c8aPHISKOtPlAeTZSnb8QAu7aRjZq3+PbrP5uW3TcfCGPtKTytHOge/OlJbo078dVhXQ14d1EDwXJW1rRXuUt4C8QIDAQABMA0GCSqGSIb3DQEBBQUAA4GBACDVfp86HObqY+e8BUoWQ9+VMQx1ASDohBjwOsg2WykUqRXF+dLfcUH9dWR63CtZIKFDbStNomPnQz7nbK+onygwBspVEbnHuUihZq3ZUdmumQqCw4Uvs/1Uvq3orOo/WJVhTyvLgFVK2QarQ4/67OZfHd7R+POBXhophSMv1ZOo',
@@ -26,23 +26,23 @@
2626
'requests' => true,
2727
'responses' => true
2828
),
29-
'security' => array (
29+
'security' => array(
3030
'authnRequestsSigned' => false,
3131
'wantAssertionsSigned' => false,
3232
'signMetadata' => false,
3333
),
34-
'contactPerson' => array (
35-
'technical' => array (
34+
'contactPerson' => array(
35+
'technical' => array(
3636
'givenName' => 'technical_name',
3737
'emailAddress' => 'technical@example.com',
3838
),
39-
'support' => array (
39+
'support' => array(
4040
'givenName' => 'support_name',
4141
'emailAddress' => 'support@example.com',
4242
),
4343
),
4444

45-
'organization' => array (
45+
'organization' => array(
4646
'en-US' => array(
4747
'name' => 'sp_test',
4848
'displayname' => 'SP test',

0 commit comments

Comments
 (0)