Skip to content

Commit e33b709

Browse files
committed
Fix CS
1 parent 3e67d00 commit e33b709

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function setAttribute($name, $value)
216216
*/
217217
public function __toString()
218218
{
219-
$class = \get_class($this);
219+
$class = static::class;
220220
$class = substr($class, strrpos($class, '\\') + 1);
221221

222222
$roles = [];

Encoder/Argon2iPasswordEncoder.php

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

29-
return version_compare(\extension_loaded('sodium') ? \SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
29+
return version_compare(\extension_loaded('sodium') ? SODIUM_LIBRARY_VERSION : phpversion('libsodium'), '1.0.9', '>=');
3030
}
3131

3232
/**
@@ -79,15 +79,15 @@ public function isPasswordValid($encoded, $raw, $salt)
7979

8080
private function encodePasswordNative($raw)
8181
{
82-
return password_hash($raw, \PASSWORD_ARGON2I);
82+
return password_hash($raw, PASSWORD_ARGON2I);
8383
}
8484

8585
private function encodePasswordSodiumFunction($raw)
8686
{
8787
$hash = sodium_crypto_pwhash_str(
8888
$raw,
89-
\SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE,
90-
\SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE
89+
SODIUM_CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE,
90+
SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE
9191
);
9292
sodium_memzero($raw);
9393

0 commit comments

Comments
 (0)