@@ -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'; |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * @class TransportType |
9 | 9 | * @package Platine\Webauthn\Enum |
10 | 10 | */ |
11 | -class TransportType extends BaseEnum |
|
12 | -{ |
|
11 | +class TransportType extends BaseEnum { |
|
13 | 12 | public const NFC = 'nfc'; |
14 | 13 | public const BLE = 'ble'; |
15 | 14 | public const USB = 'usb'; |
@@ -39,8 +39,7 @@ discard block |
||
39 | 39 | * @class RelyingParty |
40 | 40 | * @package Platine\Webauthn\Entity |
41 | 41 | */ |
42 | -class RelyingParty implements JsonSerializable |
|
43 | -{ |
|
42 | +class RelyingParty implements JsonSerializable { |
|
44 | 43 | /** |
45 | 44 | * The relying party id |
46 | 45 | * @var string |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * @param string $name |
66 | 65 | * @param string $logo |
67 | 66 | */ |
68 | - public function __construct(string $id, string $name, string $logo = '') |
|
69 | - { |
|
67 | + public function __construct(string $id, string $name, string $logo = '') { |
|
70 | 68 | $this->id = $id; |
71 | 69 | $this->name = $name; |
72 | 70 | $this->logo = $logo; |
@@ -145,8 +143,7 @@ discard block |
||
145 | 143 | * {@inheritdoc} |
146 | 144 | * @return mixed |
147 | 145 | */ |
148 | - public function jsonSerialize() |
|
149 | - { |
|
146 | + public function jsonSerialize() { |
|
150 | 147 | return get_object_vars($this); |
151 | 148 | } |
152 | 149 | } |
@@ -39,8 +39,7 @@ |
||
39 | 39 | * @class BaseEnum |
40 | 40 | * @package Platine\Webauthn\Enum |
41 | 41 | */ |
42 | -class BaseEnum |
|
43 | -{ |
|
42 | +class BaseEnum { |
|
44 | 43 | /** |
45 | 44 | * Return this class all the enumerations |
46 | 45 | * @return array<string> |