@@ -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 | } |
@@ -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 | } |