Skip to content

Commit 726c2c7

Browse files
committed
fixed CS
1 parent 4566703 commit 726c2c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function serialize()
173173
{
174174
$serialized = $this->__serialize();
175175

176-
if (null === $isCalledFromOverridingMethod = \func_num_args() ? \func_get_arg(0) : null) {
176+
if (null === $isCalledFromOverridingMethod = \func_num_args() ? func_get_arg(0) : null) {
177177
$trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2);
178178
$isCalledFromOverridingMethod = isset($trace[1]['function'], $trace[1]['object']) && 'serialize' === $trace[1]['function'] && $this === $trace[1]['object'];
179179
}

Encoder/SodiumPasswordEncoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(int $opsLimit = null, int $memLimit = null)
4848

4949
public static function isSupported(): bool
5050
{
51-
if (\class_exists('ParagonIE_Sodium_Compat') && \method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
51+
if (class_exists('ParagonIE_Sodium_Compat') && method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
5252
return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
5353
}
5454

@@ -65,7 +65,7 @@ public function encodePassword($raw, $salt)
6565
}
6666

6767
if (\function_exists('sodium_crypto_pwhash_str')) {
68-
return \sodium_crypto_pwhash_str($raw, $this->opsLimit, $this->memLimit);
68+
return sodium_crypto_pwhash_str($raw, $this->opsLimit, $this->memLimit);
6969
}
7070

7171
if (\extension_loaded('libsodium')) {
@@ -90,7 +90,7 @@ public function isPasswordValid($encoded, $raw, $salt)
9090
}
9191

9292
if (\function_exists('sodium_crypto_pwhash_str_verify')) {
93-
return \sodium_crypto_pwhash_str_verify($encoded, $raw);
93+
return sodium_crypto_pwhash_str_verify($encoded, $raw);
9494
}
9595

9696
if (\extension_loaded('libsodium')) {

Exception/AuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function serialize()
6969
{
7070
$serialized = $this->__serialize();
7171

72-
if (null === $isCalledFromOverridingMethod = \func_num_args() ? \func_get_arg(0) : null) {
72+
if (null === $isCalledFromOverridingMethod = \func_num_args() ? func_get_arg(0) : null) {
7373
$trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2);
7474
$isCalledFromOverridingMethod = isset($trace[1]['function'], $trace[1]['object']) && 'serialize' === $trace[1]['function'] && $this === $trace[1]['object'];
7575
}

0 commit comments

Comments
 (0)