| @@ -12,15 +12,15 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | class OtherPrimesInfoParameter extends JWKParameter | 
| 14 | 14 |  { | 
| 15 | - use ArrayParameterValue; | |
| 15 | + use ArrayParameterValue; | |
| 16 | 16 | |
| 17 | - /** | |
| 18 | - * Constructor. | |
| 19 | - * | |
| 20 | - * @param array[] ...$primes | |
| 21 | - */ | |
| 22 | - public function __construct(...$primes) | |
| 23 | -    { | |
| 24 | - parent::__construct(self::PARAM_OTHER_PRIMES_INFO, $primes); | |
| 25 | - } | |
| 17 | + /** | |
| 18 | + * Constructor. | |
| 19 | + * | |
| 20 | + * @param array[] ...$primes | |
| 21 | + */ | |
| 22 | + public function __construct(...$primes) | |
| 23 | +	{ | |
| 24 | + parent::__construct(self::PARAM_OTHER_PRIMES_INFO, $primes); | |
| 25 | + } | |
| 26 | 26 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -11,13 +11,13 @@ | ||
| 11 | 11 | */ | 
| 12 | 12 | class ReplicatedClaimParameter extends JWTParameter | 
| 13 | 13 |  { | 
| 14 | - /** | |
| 15 | - * Constructor. | |
| 16 | - * | |
| 17 | - * @param Claim $claim | |
| 18 | - */ | |
| 19 | - public function __construct(Claim $claim) | |
| 20 | -    { | |
| 21 | - parent::__construct($claim->name(), $claim->value()); | |
| 22 | - } | |
| 14 | + /** | |
| 15 | + * Constructor. | |
| 16 | + * | |
| 17 | + * @param Claim $claim | |
| 18 | + */ | |
| 19 | + public function __construct(Claim $claim) | |
| 20 | +	{ | |
| 21 | + parent::__construct($claim->name(), $claim->value()); | |
| 22 | + } | |
| 23 | 23 | } | 
| @@ -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,16 +13,16 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | class ModulusParameter extends JWKParameter | 
| 15 | 15 |  { | 
| 16 | - use Base64UIntValue; | |
| 16 | + use Base64UIntValue; | |
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * Constructor. | |
| 20 | - * | |
| 21 | - * @param string $n Modulus in base64urlUInt encoding | |
| 22 | - */ | |
| 23 | - public function __construct(string $n) | |
| 24 | -    { | |
| 25 | - $this->_validateEncoding($n); | |
| 26 | - parent::__construct(self::PARAM_MODULUS, $n); | |
| 27 | - } | |
| 18 | + /** | |
| 19 | + * Constructor. | |
| 20 | + * | |
| 21 | + * @param string $n Modulus in base64urlUInt encoding | |
| 22 | + */ | |
| 23 | + public function __construct(string $n) | |
| 24 | +	{ | |
| 25 | + $this->_validateEncoding($n); | |
| 26 | + parent::__construct(self::PARAM_MODULUS, $n); | |
| 27 | + } | |
| 28 | 28 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -13,15 +13,15 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | class X509URLParameter extends JWKParameter | 
| 15 | 15 |  { | 
| 16 | - use StringParameterValue; | |
| 16 | + use StringParameterValue; | |
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * Constructor. | |
| 20 | - * | |
| 21 | - * @param string $uri | |
| 22 | - */ | |
| 23 | - public function __construct(string $uri) | |
| 24 | -    { | |
| 25 | - parent::__construct(self::PARAM_X509_URL, $uri); | |
| 26 | - } | |
| 18 | + /** | |
| 19 | + * Constructor. | |
| 20 | + * | |
| 21 | + * @param string $uri | |
| 22 | + */ | |
| 23 | + public function __construct(string $uri) | |
| 24 | +	{ | |
| 25 | + parent::__construct(self::PARAM_X509_URL, $uri); | |
| 26 | + } | |
| 27 | 27 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -13,16 +13,16 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | class SecondPrimeFactorParameter extends JWKParameter | 
| 15 | 15 |  { | 
| 16 | - use Base64UIntValue; | |
| 16 | + use Base64UIntValue; | |
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * Constructor. | |
| 20 | - * | |
| 21 | - * @param string $q Second prime factor in base64urlUInt encoding | |
| 22 | - */ | |
| 23 | - public function __construct(string $q) | |
| 24 | -    { | |
| 25 | - $this->_validateEncoding($q); | |
| 26 | - parent::__construct(self::PARAM_SECOND_PRIME_FACTOR, $q); | |
| 27 | - } | |
| 18 | + /** | |
| 19 | + * Constructor. | |
| 20 | + * | |
| 21 | + * @param string $q Second prime factor in base64urlUInt encoding | |
| 22 | + */ | |
| 23 | + public function __construct(string $q) | |
| 24 | +	{ | |
| 25 | + $this->_validateEncoding($q); | |
| 26 | + parent::__construct(self::PARAM_SECOND_PRIME_FACTOR, $q); | |
| 27 | + } | |
| 28 | 28 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -13,15 +13,15 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | class KeyIDParameter extends JWKParameter | 
| 15 | 15 |  { | 
| 16 | - use StringParameterValue; | |
| 16 | + use StringParameterValue; | |
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * Constructor. | |
| 20 | - * | |
| 21 | - * @param string $id Key ID | |
| 22 | - */ | |
| 23 | - public function __construct(string $id) | |
| 24 | -    { | |
| 25 | - parent::__construct(self::PARAM_KEY_ID, $id); | |
| 26 | - } | |
| 18 | + /** | |
| 19 | + * Constructor. | |
| 20 | + * | |
| 21 | + * @param string $id Key ID | |
| 22 | + */ | |
| 23 | + public function __construct(string $id) | |
| 24 | +	{ | |
| 25 | + parent::__construct(self::PARAM_KEY_ID, $id); | |
| 26 | + } | |
| 27 | 27 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -13,16 +13,16 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | class FirstCRTCoefficientParameter extends JWKParameter | 
| 15 | 15 |  { | 
| 16 | - use Base64UIntValue; | |
| 16 | + use Base64UIntValue; | |
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * Constructor. | |
| 20 | - * | |
| 21 | - * @param string $qi First CRT coefficient in base64urlUInt encoding | |
| 22 | - */ | |
| 23 | - public function __construct(string $qi) | |
| 24 | -    { | |
| 25 | - $this->_validateEncoding($qi); | |
| 26 | - parent::__construct(self::PARAM_FIRST_CRT_COEFFICIENT, $qi); | |
| 27 | - } | |
| 18 | + /** | |
| 19 | + * Constructor. | |
| 20 | + * | |
| 21 | + * @param string $qi First CRT coefficient in base64urlUInt encoding | |
| 22 | + */ | |
| 23 | + public function __construct(string $qi) | |
| 24 | +	{ | |
| 25 | + $this->_validateEncoding($qi); | |
| 26 | + parent::__construct(self::PARAM_FIRST_CRT_COEFFICIENT, $qi); | |
| 27 | + } | |
| 28 | 28 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -11,13 +11,13 @@ | ||
| 11 | 11 | */ | 
| 12 | 12 | abstract class CoordinateParameter extends JWKParameter | 
| 13 | 13 |  { | 
| 14 | - /** | |
| 15 | - * Get coordinate in octet string representation. | |
| 16 | - * | |
| 17 | - * @return string | |
| 18 | - */ | |
| 19 | - public function coordinateOctets(): string | |
| 20 | -    { | |
| 21 | - return Base64::urlDecode($this->_value); | |
| 22 | - } | |
| 14 | + /** | |
| 15 | + * Get coordinate in octet string representation. | |
| 16 | + * | |
| 17 | + * @return string | |
| 18 | + */ | |
| 19 | + public function coordinateOctets(): string | |
| 20 | +	{ | |
| 21 | + return Base64::urlDecode($this->_value); | |
| 22 | + } | |
| 23 | 23 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |
| @@ -13,17 +13,17 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | class X509CertificateSHA1ThumbprintParameter extends JWKParameter | 
| 15 | 15 |  { | 
| 16 | - use Base64URLValue; | |
| 16 | + use Base64URLValue; | |
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * Constructor. | |
| 20 | - * | |
| 21 | - * @param string $thumbprint Base64url encoded SHA-1 hash | |
| 22 | - */ | |
| 23 | - public function __construct(string $thumbprint) | |
| 24 | -    { | |
| 25 | - $this->_validateEncoding($thumbprint); | |
| 26 | - parent::__construct(self::PARAM_X509_CERTIFICATE_SHA1_THUMBPRINT, | |
| 27 | - $thumbprint); | |
| 28 | - } | |
| 18 | + /** | |
| 19 | + * Constructor. | |
| 20 | + * | |
| 21 | + * @param string $thumbprint Base64url encoded SHA-1 hash | |
| 22 | + */ | |
| 23 | + public function __construct(string $thumbprint) | |
| 24 | +	{ | |
| 25 | + $this->_validateEncoding($thumbprint); | |
| 26 | + parent::__construct(self::PARAM_X509_CERTIFICATE_SHA1_THUMBPRINT, | |
| 27 | + $thumbprint); | |
| 28 | + } | |
| 29 | 29 | } | 
| @@ -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\JWK\Parameter; | 
| 6 | 6 | |