@@ -10,6 +10,5 @@ |
||
10 | 10 | * @class WebauthnException |
11 | 11 | * @package Platine\Webauthn\Exception |
12 | 12 | */ |
13 | -class WebauthnException extends Exception |
|
14 | -{ |
|
13 | +class WebauthnException extends Exception { |
|
15 | 14 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class None |
9 | 9 | * @package Platine\Webauthn\Attestation\Format |
10 | 10 | */ |
11 | -class None extends BaseFormat |
|
12 | -{ |
|
11 | +class None extends BaseFormat { |
|
13 | 12 | /** |
14 | 13 | * {@inheritdoc} |
15 | 14 | */ |
@@ -12,8 +12,7 @@ |
||
12 | 12 | * @class FidoU2F |
13 | 13 | * @package Platine\Webauthn\Attestation\Format |
14 | 14 | */ |
15 | -class FidoU2F extends BaseFormat |
|
16 | -{ |
|
15 | +class FidoU2F extends BaseFormat { |
|
17 | 16 | /** |
18 | 17 | * The algorithm used |
19 | 18 | * @var int |
@@ -12,8 +12,7 @@ |
||
12 | 12 | * @class Packed |
13 | 13 | * @package Platine\Webauthn\Attestation\Format |
14 | 14 | */ |
15 | -class Packed extends BaseFormat |
|
16 | -{ |
|
15 | +class Packed extends BaseFormat { |
|
17 | 16 | /** |
18 | 17 | * The algorithm used |
19 | 18 | * @var int |
@@ -10,8 +10,7 @@ |
||
10 | 10 | * @class WebauthnConfiguration |
11 | 11 | * @package Platine\Webauthn |
12 | 12 | */ |
13 | -class WebauthnConfiguration extends AbstractConfiguration |
|
14 | -{ |
|
13 | +class WebauthnConfiguration extends AbstractConfiguration { |
|
15 | 14 | /** |
16 | 15 | * {@inheritdoc} |
17 | 16 | */ |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | * @class Webauthn |
26 | 26 | * @package Platine\Webauthn |
27 | 27 | */ |
28 | -class Webauthn |
|
29 | -{ |
|
28 | +class Webauthn { |
|
30 | 29 | /** |
31 | 30 | * The attestation data formats |
32 | 31 | * @var array<string> |
@@ -68,8 +67,7 @@ discard block |
||
68 | 67 | * @param WebauthnConfiguration $config |
69 | 68 | * @param array<string> $allowedFormats |
70 | 69 | */ |
71 | - public function __construct(WebauthnConfiguration $config, array $allowedFormats = []) |
|
72 | - { |
|
70 | + public function __construct(WebauthnConfiguration $config, array $allowedFormats = []) { |
|
73 | 71 | if (! function_exists('openssl_open')) { |
74 | 72 | throw new WebauthnException('OpenSSL module not installed in this platform'); |
75 | 73 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class KeyFormat |
9 | 9 | * @package Platine\Webauthn\Enum |
10 | 10 | */ |
11 | -class KeyFormat extends BaseEnum |
|
12 | -{ |
|
11 | +class KeyFormat extends BaseEnum { |
|
13 | 12 | public const ANDROID_KEY = 'android-key'; |
14 | 13 | public const ANDROID_SAFETYNET = 'android-safetynet'; |
15 | 14 | public const APPLE = 'apple'; |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class UserVerificationType |
9 | 9 | * @package Platine\Webauthn\Enum |
10 | 10 | */ |
11 | -class UserVerificationType extends BaseEnum |
|
12 | -{ |
|
11 | +class UserVerificationType extends BaseEnum { |
|
13 | 12 | public const REQUIRED = 'required'; |
14 | 13 | public const PREFERRED = 'preferred'; |
15 | 14 | public const DISCOURAGED = 'discouraged'; |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class AttestationType |
9 | 9 | * @package Platine\Webauthn\Enum |
10 | 10 | */ |
11 | -class AttestationType extends BaseEnum |
|
12 | -{ |
|
11 | +class AttestationType extends BaseEnum { |
|
13 | 12 | public const NONE = 'none'; |
14 | 13 | public const DIRECT = 'direct'; |
15 | 14 | public const INDIRECT = 'indirect'; |