Skip to content

Commit d65b876

Browse files
committed
Fix codesniffer issues
1 parent f6ab890 commit d65b876

File tree

257 files changed

+1709
-933
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+1709
-933
lines changed

src/Alg/Encryption/AbstractEncryptor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ abstract class AbstractEncryptor implements EncryptionAlgorithmInterface
2020
/** @var string */
2121
protected const DEFAULT_BACKEND = Backend\OpenSSL::class;
2222

23+
2324
/** @var \SimpleSAML\XMLSecurity\Backend\EncryptionBackend */
2425
protected EncryptionBackend $backend;
2526

src/Alg/Encryption/EncryptionAlgorithmFactory.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
*/
2121
final class EncryptionAlgorithmFactory
2222
{
23-
/**
24-
* A cache of algorithm implementations indexed by algorithm ID.
25-
*
26-
* @var array<string, \SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmInterface>
27-
*/
28-
protected static array $cache = [];
29-
30-
/**
31-
* Whether the factory has been initialized or not.
32-
*
33-
* @var bool
34-
*/
35-
protected static bool $initialized = false;
36-
3723
/**
3824
* An array of blacklisted algorithms.
3925
*
@@ -56,6 +42,21 @@ final class EncryptionAlgorithmFactory
5642
];
5743

5844

45+
/**
46+
* A cache of algorithm implementations indexed by algorithm ID.
47+
*
48+
* @var array<string, \SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmInterface>
49+
*/
50+
protected static array $cache = [];
51+
52+
/**
53+
* Whether the factory has been initialized or not.
54+
*
55+
* @var bool
56+
*/
57+
protected static bool $initialized = false;
58+
59+
5960
/**
6061
* Build a factory that creates algorithms.
6162
*

src/Alg/KeyTransport/AbstractKeyTransporter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ abstract class AbstractKeyTransporter implements KeyTransportAlgorithmInterface
2020
/** @var string */
2121
protected const DEFAULT_BACKEND = Backend\OpenSSL::class;
2222

23+
2324
/** @var \SimpleSAML\XMLSecurity\Backend\EncryptionBackend */
2425
protected EncryptionBackend $backend;
2526

src/Alg/KeyTransport/KeyTransportAlgorithmFactory.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,6 @@
1818
*/
1919
class KeyTransportAlgorithmFactory
2020
{
21-
/**
22-
* A cache of algorithm implementations indexed by algorithm ID.
23-
*
24-
* @var array<string, \SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmInterface>
25-
*/
26-
protected static array $cache = [];
27-
28-
/**
29-
* Whether the factory has been initialized or not.
30-
*
31-
* @var bool
32-
*/
33-
protected static bool $initialized = false;
34-
3521
/**
3622
* An array of blacklisted algorithms.
3723
*
@@ -43,7 +29,6 @@ class KeyTransportAlgorithmFactory
4329
C::KEY_TRANSPORT_RSA_1_5,
4430
];
4531

46-
4732
/**
4833
* An array of default algorithms that can be used.
4934
*
@@ -54,6 +39,21 @@ class KeyTransportAlgorithmFactory
5439
];
5540

5641

42+
/**
43+
* A cache of algorithm implementations indexed by algorithm ID.
44+
*
45+
* @var array<string, \SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmInterface>
46+
*/
47+
protected static array $cache = [];
48+
49+
/**
50+
* Whether the factory has been initialized or not.
51+
*
52+
* @var bool
53+
*/
54+
protected static bool $initialized = false;
55+
56+
5757
/**
5858
* Build a factory that creates algorithms.
5959
*

src/Alg/Signature/AbstractSigner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ abstract class AbstractSigner implements SignatureAlgorithmInterface
2020
/** @var string */
2121
protected const DEFAULT_BACKEND = Backend\OpenSSL::class;
2222

23+
2324
/** @var \SimpleSAML\XMLSecurity\Backend\SignatureBackend */
2425
protected SignatureBackend $backend;
2526

src/Alg/Signature/SignatureAlgorithmFactory.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,6 @@
2020
*/
2121
final class SignatureAlgorithmFactory
2222
{
23-
/**
24-
* A cache of algorithm implementations indexed by algorithm ID.
25-
*
26-
* @var array<string, \SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface>
27-
*/
28-
protected static array $cache = [];
29-
30-
/**
31-
* Whether the factory has been initialized or not.
32-
*
33-
* @var bool
34-
*/
35-
protected static bool $initialized = false;
36-
3723
/**
3824
* An array of blacklisted algorithms.
3925
*
@@ -46,7 +32,6 @@ final class SignatureAlgorithmFactory
4632
C::SIG_HMAC_SHA1,
4733
];
4834

49-
5035
/**
5136
* An array of default algorithms that can be used.
5237
*
@@ -58,6 +43,21 @@ final class SignatureAlgorithmFactory
5843
];
5944

6045

46+
/**
47+
* A cache of algorithm implementations indexed by algorithm ID.
48+
*
49+
* @var array<string, \SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmInterface>
50+
*/
51+
protected static array $cache = [];
52+
53+
/**
54+
* Whether the factory has been initialized or not.
55+
*
56+
* @var bool
57+
*/
58+
protected static bool $initialized = false;
59+
60+
6161
/**
6262
* Build a factory that creates algorithms.
6363
*

src/Backend/OpenSSL.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
*/
3131
final class OpenSSL implements EncryptionBackend, SignatureBackend
3232
{
33+
/** @var int */
34+
public const AUTH_TAG_LEN = 16;
35+
36+
3337
// digital signature options
3438
/** @var string */
3539
protected string $digest;
@@ -51,9 +55,6 @@ final class OpenSSL implements EncryptionBackend, SignatureBackend
5155
/** @var bool */
5256
protected bool $useAuthTag = false;
5357

54-
/** @var int */
55-
public const AUTH_TAG_LEN = 16;
56-
5758

5859
/**
5960
* Build a new OpenSSL backend.

0 commit comments

Comments
 (0)