Skip to content

Commit d8d2049

Browse files
committed
fixed CS
1 parent 495a14c commit d8d2049

11 files changed

+15
-15
lines changed

Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function serialize()
139139
{
140140
$serialized = [$this->user, $this->authenticated, $this->roles, $this->attributes];
141141

142-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
142+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
143143
}
144144

145145
/**

Authentication/Token/AnonymousToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function serialize()
6161
{
6262
$serialized = [$this->secret, parent::serialize(true)];
6363

64-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
64+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
6565
}
6666

6767
/**

Authentication/Token/PreAuthenticatedToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function serialize()
8181
{
8282
$serialized = [$this->credentials, $this->providerKey, parent::serialize(true)];
8383

84-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
84+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
8585
}
8686

8787
/**

Authentication/Token/RememberMeToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function serialize()
9696
{
9797
$serialized = [$this->secret, $this->providerKey, parent::serialize(true)];
9898

99-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
99+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
100100
}
101101

102102
/**

Authentication/Token/UsernamePasswordToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function serialize()
9393
{
9494
$serialized = [$this->credentials, $this->providerKey, parent::serialize(true)];
9595

96-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
96+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
9797
}
9898

9999
/**

Encoder/Argon2iPasswordEncoder.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function isSupported()
2626
return true;
2727
}
2828

29-
if (\class_exists('ParagonIE_Sodium_Compat') && \method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
29+
if (class_exists('ParagonIE_Sodium_Compat') && method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
3030
return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
3131
}
3232

@@ -66,8 +66,8 @@ public function isPasswordValid($encoded, $raw, $salt)
6666
return !$this->isPasswordTooLong($raw) && password_verify($raw, $encoded);
6767
}
6868
if (\function_exists('sodium_crypto_pwhash_str_verify')) {
69-
$valid = !$this->isPasswordTooLong($raw) && \sodium_crypto_pwhash_str_verify($encoded, $raw);
70-
\sodium_memzero($raw);
69+
$valid = !$this->isPasswordTooLong($raw) && sodium_crypto_pwhash_str_verify($encoded, $raw);
70+
sodium_memzero($raw);
7171

7272
return $valid;
7373
}
@@ -88,12 +88,12 @@ private function encodePasswordNative($raw)
8888

8989
private function encodePasswordSodiumFunction($raw)
9090
{
91-
$hash = \sodium_crypto_pwhash_str(
91+
$hash = sodium_crypto_pwhash_str(
9292
$raw,
9393
\SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE,
9494
\SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE
9595
);
96-
\sodium_memzero($raw);
96+
sodium_memzero($raw);
9797

9898
return $hash;
9999
}

Exception/AccountStatusException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function serialize()
4646
{
4747
$serialized = [$this->user, parent::serialize(true)];
4848

49-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
49+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
5050
}
5151

5252
/**

Exception/AuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function serialize()
5151
$this->line,
5252
];
5353

54-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
54+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
5555
}
5656

5757
/**

Exception/CustomUserMessageAuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function serialize()
6262
{
6363
$serialized = [parent::serialize(true), $this->messageKey, $this->messageData];
6464

65-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
65+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
6666
}
6767

6868
/**

Exception/UsernameNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function serialize()
5656
{
5757
$serialized = [$this->username, parent::serialize(true)];
5858

59-
return $this->doSerialize($serialized, \func_num_args() ? \func_get_arg(0) : null);
59+
return $this->doSerialize($serialized, \func_num_args() ? func_get_arg(0) : null);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)