Passed
Branch develop (548a36)
by nguereza
02:24
created
src/Helper/ByteBuffer.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
38 38
      * Create new instance
39 39
      * @param string $binaryData
40 40
      */
41
-    public function __construct(string $binaryData)
42
-    {
41
+    public function __construct(string $binaryData) {
43 42
         $this->data = (string)$binaryData;
44 43
         $this->length = strlen($binaryData);
45 44
     }
@@ -311,8 +310,7 @@  discard block
 block discarded – undo
311 310
      * @param int $options
312 311
      * @return array<mixed>|object
313 312
      */
314
-    public function getJson(int $options = 0)
315
-    {
313
+    public function getJson(int $options = 0) {
316 314
         try {
317 315
             $data = Json::decode($this->getBinaryString(), false, 512, $options);
318 316
         } catch (Exception $ex) {
@@ -364,8 +362,7 @@  discard block
 block discarded – undo
364 362
     * {@inheritdoc}
365 363
     * @return mixed
366 364
     */
367
-    public function jsonSerialize()
368
-    {
365
+    public function jsonSerialize() {
369 366
         if ($this->useBase64UrlEncoding) {
370 367
             return self::base64UrlEncode($this->data);
371 368
         }
@@ -413,8 +410,7 @@  discard block
 block discarded – undo
413 410
      * @param array<string, mixed> $data
414 411
      * @return void
415 412
      */
416
-    public function __unserialize(array $data)
417
-    {
413
+    public function __unserialize(array $data) {
418 414
         if (isset($data['data'])) {
419 415
             $value = unserialize($data['data']);
420 416
             if ($value === false) {
Please login to merge, or discard this patch.
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/Enum/BaseEnum.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
  * @class BaseEnum
11 11
  * @package Platine\Webauthn\Enum
12 12
  */
13
-class BaseEnum
14
-{
13
+class BaseEnum {
15 14
     /**
16 15
      * Return this class all the enumerations
17 16
      * @return array<string, string>
Please login to merge, or discard this patch.