Passed
Push — develop ( bf3318...e1c90d )
by nguereza
01:56
created
src/Entity/PublicKeyAuthParam.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Entity/BaseCredential.php 1 patch
Braces   +3 added lines, -6 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($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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Entity/UserCredential.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.