@@ -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'; |
@@ -169,9 +169,9 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * {@inheritdoc} |
|
173 | - * @return mixed |
|
174 | - */ |
|
172 | + * {@inheritdoc} |
|
173 | + * @return mixed |
|
174 | + */ |
|
175 | 175 | public function jsonSerialize() |
176 | 176 | { |
177 | 177 | return get_object_vars($this); |
@@ -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> |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class PublicKeyAuthParam |
38 | 38 | * @package Platine\Webauthn\Entity |
39 | 39 | */ |
40 | -class PublicKeyAuthParam extends BaseCredential |
|
41 | -{ |
|
40 | +class PublicKeyAuthParam extends BaseCredential { |
|
42 | 41 | } |
@@ -169,9 +169,9 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * {@inheritdoc} |
|
173 | - * @return mixed |
|
174 | - */ |
|
172 | + * {@inheritdoc} |
|
173 | + * @return mixed |
|
174 | + */ |
|
175 | 175 | public function jsonSerialize() |
176 | 176 | { |
177 | 177 | return get_object_vars($this); |
@@ -40,8 +40,7 @@ discard block |
||
40 | 40 | * @class BaseCredential |
41 | 41 | * @package Platine\Webauthn\Entity |
42 | 42 | */ |
43 | -abstract class BaseCredential implements JsonSerializable |
|
44 | -{ |
|
43 | +abstract class BaseCredential implements JsonSerializable { |
|
45 | 44 | /** |
46 | 45 | * The type |
47 | 46 | * @var string |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * @param ByteBuffer|string $id |
66 | 65 | * @param array<string> $transports |
67 | 66 | */ |
68 | - public function __construct($id, array $transports = []) |
|
69 | - { |
|
67 | + public function __construct($id, array $transports = []) { |
|
70 | 68 | if (is_string($id)) { |
71 | 69 | $id = new ByteBuffer($id); |
72 | 70 | } |
@@ -108,8 +106,7 @@ discard block |
||
108 | 106 | * {@inheritdoc} |
109 | 107 | * @return mixed |
110 | 108 | */ |
111 | - public function jsonSerialize() |
|
112 | - { |
|
109 | + public function jsonSerialize() { |
|
113 | 110 | return get_object_vars($this); |
114 | 111 | } |
115 | 112 | } |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class UserCredential |
38 | 38 | * @package Platine\Webauthn\Entity |
39 | 39 | */ |
40 | -class UserCredential extends BaseCredential |
|
41 | -{ |
|
40 | +class UserCredential extends BaseCredential { |
|
42 | 41 | } |