Skip to content

Commit 12e797b

Browse files
committed
Fix codesniffer issues
1 parent 788f2b8 commit 12e797b

File tree

14 files changed

+102
-92
lines changed

14 files changed

+102
-92
lines changed

phpcs.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
<exclude-pattern>**/EncryptedAssertion.php</exclude-pattern>
1717
</rule>
1818

19+
<!-- Ignore files with side effects that we cannot fix -->
20+
<rule ref="PSR1.Files.SideEffects">
21+
<exclude-pattern>src/_autoload.php</exclude-pattern>
22+
</rule>
23+
1924
<!-- Lines can be a little bit longer before they break the build -->
2025
<rule ref="Generic.Files.LineLength">
2126
<exclude-pattern>src/SAML2/Assertion.php</exclude-pattern>

src/SAML2/Certificate/Key.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
class Key implements \ArrayAccess
1515
{
1616
// Possible key usages
17-
const USAGE_SIGNING = 'signing';
18-
const USAGE_ENCRYPTION = 'encryption';
17+
public const USAGE_SIGNING = 'signing';
18+
19+
public const USAGE_ENCRYPTION = 'encryption';
20+
1921

2022
/**
2123
* @var array

src/SAML2/Configuration/PrivateKey.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*/
1313
class PrivateKey extends ArrayAdapter
1414
{
15-
const NAME_NEW = 'new';
16-
const NAME_DEFAULT = 'default';
15+
public const NAME_NEW = 'new';
16+
17+
public const NAME_DEFAULT = 'default';
18+
1719

1820
/**
1921
* @var string

0 commit comments

Comments
 (0)