Passed
Push — develop ( aef2d8...023235 )
by nguereza
02:12
created
src/Entity/AuthenticatorSelection.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
  * @class AuthenticatorSelection
41 41
  * @package Platine\Webauthn\Entity
42 42
  */
43
-class AuthenticatorSelection implements JsonSerializable
44
-{
43
+class AuthenticatorSelection implements JsonSerializable {
45 44
     /**
46 45
      * The authenticator attachment
47 46
      * @var string
Please login to merge, or discard this patch.
src/Entity/RelyingParty.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Entity/UserInfo.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
  * @class UserInfo
41 41
  * @package Platine\Webauthn\Entity
42 42
  */
43
-class UserInfo implements JsonSerializable
44
-{
43
+class UserInfo implements JsonSerializable {
45 44
     /**
46 45
      * The id
47 46
      * @var ByteBuffer
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * @param string $name
67 66
      * @param string $displayName
68 67
      */
69
-    public function __construct(ByteBuffer|string $id, string $name, string $displayName)
70
-    {
68
+    public function __construct(ByteBuffer|string $id, string $name, string $displayName) {
71 69
         if (is_string($id)) {
72 70
             $id = new ByteBuffer($id);
73 71
         }
Please login to merge, or discard this patch.
src/Entity/PublicKey.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
  * @class PublicKey
41 41
  * @package Platine\Webauthn\Entity
42 42
  */
43
-class PublicKey implements JsonSerializable
44
-{
43
+class PublicKey implements JsonSerializable {
45 44
     /**
46 45
      * Default timeout
47 46
      * @var int
Please login to merge, or discard this patch.
src/Entity/AttestedCredentialData.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
  * @class AttestedCredentialData
41 41
  * @package Platine\Webauthn\Entity
42 42
  */
43
-class AttestedCredentialData implements JsonSerializable
44
-{
43
+class AttestedCredentialData implements JsonSerializable {
45 44
     /**
46 45
      * The AAGUID of the authenticator
47 46
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
      * Create new instance
72 71
      * @param string $binaryData
73 72
      */
74
-    public function __construct(string $binaryData)
75
-    {
73
+    public function __construct(string $binaryData) {
76 74
         if (strlen($binaryData) <= 55) {
77 75
             throw new WebauthnException('Attested credential data should be present but is missing');
78 76
         }
Please login to merge, or discard this patch.
src/Entity/BaseCredential.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
65 64
      * @param ByteBuffer|string $id
66 65
      * @param array<string> $transports
67 66
      */
68
-    public function __construct(ByteBuffer|string $id, array $transports = [])
69
-    {
67
+    public function __construct(ByteBuffer|string $id, array $transports = []) {
70 68
         if (is_string($id)) {
71 69
             $id = new ByteBuffer($id);
72 70
         }
Please login to merge, or discard this patch.
src/Entity/Flag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
  * @class Flag
40 40
  * @package Platine\Webauthn\Entity
41 41
  */
42
-class Flag implements JsonSerializable
43
-{
42
+class Flag implements JsonSerializable {
44 43
     /**
45 44
      * The bit 0
46 45
      * @var bool
@@ -117,8 +116,7 @@  discard block
 block discarded – undo
117 116
      * Create new instance
118 117
      * @param int $binaryFlag
119 118
      */
120
-    public function __construct(int $binaryFlag)
121
-    {
119
+    public function __construct(int $binaryFlag) {
122 120
         $this->bit0 = !! ($binaryFlag & 1);
123 121
         $this->bit1 = !! ($binaryFlag & 2);
124 122
         $this->bit2 = !! ($binaryFlag & 4);
Please login to merge, or discard this patch.
src/Entity/PublicKeyCredentialParam.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
  * @class PublicKeyCredentialParam
40 40
  * @package Platine\Webauthn\Entity
41 41
  */
42
-class PublicKeyCredentialParam implements JsonSerializable
43
-{
42
+class PublicKeyCredentialParam implements JsonSerializable {
44 43
     /**
45 44
      * The type
46 45
      * @var string
@@ -57,8 +56,7 @@  discard block
 block discarded – undo
57 56
      * Create new instance
58 57
      * @param int $alg
59 58
      */
60
-    public function __construct(int $alg)
61
-    {
59
+    public function __construct(int $alg) {
62 60
         $this->alg = $alg;
63 61
     }
64 62
 
Please login to merge, or discard this patch.