@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -13,28 +13,28 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class EncryptionAlgorithmParameter extends JWTParameter |
| 15 | 15 | { |
| 16 | - use StringParameterValue; |
|
| 16 | + use StringParameterValue; |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Constructor. |
|
| 20 | - * |
|
| 21 | - * @param string $algo Algorithm name |
|
| 22 | - */ |
|
| 23 | - public function __construct(string $algo) |
|
| 24 | - { |
|
| 25 | - parent::__construct(self::PARAM_ENCRYPTION_ALGORITHM, $algo); |
|
| 26 | - } |
|
| 18 | + /** |
|
| 19 | + * Constructor. |
|
| 20 | + * |
|
| 21 | + * @param string $algo Algorithm name |
|
| 22 | + */ |
|
| 23 | + public function __construct(string $algo) |
|
| 24 | + { |
|
| 25 | + parent::__construct(self::PARAM_ENCRYPTION_ALGORITHM, $algo); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * Initialize from EncryptionAlgorithmParameterValue. |
|
| 30 | - * |
|
| 31 | - * @param EncryptionAlgorithmParameterValue $value |
|
| 32 | - * |
|
| 33 | - * @return self |
|
| 34 | - */ |
|
| 35 | - public static function fromAlgorithm( |
|
| 36 | - EncryptionAlgorithmParameterValue $value): JWTParameter |
|
| 37 | - { |
|
| 38 | - return new self($value->encryptionAlgorithmParamValue()); |
|
| 39 | - } |
|
| 28 | + /** |
|
| 29 | + * Initialize from EncryptionAlgorithmParameterValue. |
|
| 30 | + * |
|
| 31 | + * @param EncryptionAlgorithmParameterValue $value |
|
| 32 | + * |
|
| 33 | + * @return self |
|
| 34 | + */ |
|
| 35 | + public static function fromAlgorithm( |
|
| 36 | + EncryptionAlgorithmParameterValue $value): JWTParameter |
|
| 37 | + { |
|
| 38 | + return new self($value->encryptionAlgorithmParamValue()); |
|
| 39 | + } |
|
| 40 | 40 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -13,28 +13,28 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class CompressionAlgorithmParameter extends JWTParameter |
| 15 | 15 | { |
| 16 | - use StringParameterValue; |
|
| 16 | + use StringParameterValue; |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Constructor. |
|
| 20 | - * |
|
| 21 | - * @param string $algo |
|
| 22 | - */ |
|
| 23 | - public function __construct(string $algo) |
|
| 24 | - { |
|
| 25 | - parent::__construct(self::PARAM_COMPRESSION_ALGORITHM, $algo); |
|
| 26 | - } |
|
| 18 | + /** |
|
| 19 | + * Constructor. |
|
| 20 | + * |
|
| 21 | + * @param string $algo |
|
| 22 | + */ |
|
| 23 | + public function __construct(string $algo) |
|
| 24 | + { |
|
| 25 | + parent::__construct(self::PARAM_COMPRESSION_ALGORITHM, $algo); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * Initialize from CompressionAlgorithmParameterValue. |
|
| 30 | - * |
|
| 31 | - * @param CompressionAlgorithmParameterValue $value |
|
| 32 | - * |
|
| 33 | - * @return self |
|
| 34 | - */ |
|
| 35 | - public static function fromAlgorithm( |
|
| 36 | - CompressionAlgorithmParameterValue $value): JWTParameter |
|
| 37 | - { |
|
| 38 | - return new self($value->compressionParamValue()); |
|
| 39 | - } |
|
| 28 | + /** |
|
| 29 | + * Initialize from CompressionAlgorithmParameterValue. |
|
| 30 | + * |
|
| 31 | + * @param CompressionAlgorithmParameterValue $value |
|
| 32 | + * |
|
| 33 | + * @return self |
|
| 34 | + */ |
|
| 35 | + public static function fromAlgorithm( |
|
| 36 | + CompressionAlgorithmParameterValue $value): JWTParameter |
|
| 37 | + { |
|
| 38 | + return new self($value->compressionParamValue()); |
|
| 39 | + } |
|
| 40 | 40 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |
@@ -13,22 +13,22 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class ContentTypeParameter extends JWTParameter |
| 15 | 15 | { |
| 16 | - use StringParameterValue; |
|
| 16 | + use StringParameterValue; |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Content type for the nested JWT. |
|
| 20 | - * |
|
| 21 | - * @var string |
|
| 22 | - */ |
|
| 23 | - const TYPE_JWT = 'JWT'; |
|
| 18 | + /** |
|
| 19 | + * Content type for the nested JWT. |
|
| 20 | + * |
|
| 21 | + * @var string |
|
| 22 | + */ |
|
| 23 | + const TYPE_JWT = 'JWT'; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Constructor. |
|
| 27 | - * |
|
| 28 | - * @param string $type |
|
| 29 | - */ |
|
| 30 | - public function __construct(string $type) |
|
| 31 | - { |
|
| 32 | - parent::__construct(self::PARAM_CONTENT_TYPE, $type); |
|
| 33 | - } |
|
| 25 | + /** |
|
| 26 | + * Constructor. |
|
| 27 | + * |
|
| 28 | + * @param string $type |
|
| 29 | + */ |
|
| 30 | + public function __construct(string $type) |
|
| 31 | + { |
|
| 32 | + parent::__construct(self::PARAM_CONTENT_TYPE, $type); |
|
| 33 | + } |
|
| 34 | 34 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sop\JWX\JWT\Parameter; |
| 6 | 6 | |