Passed
Push — develop ( 2e8c54...bf3318 )
by nguereza
01:45
created
src/Webauthn.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Enum/KeyFormat.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Enum/UserVerificationType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Enum/AttestationType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Enum/TransportType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Entity/RelyingParty.php 1 patch
Braces   +3 added lines, -6 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;
@@ -145,8 +143,7 @@  discard block
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Enum/BaseEnum.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.