Skip to content

Commit 9a1efc8

Browse files
CS fixes
1 parent c34421b commit 9a1efc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CsrfTokenManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(?TokenGeneratorInterface $generator = null, ?TokenSt
5959
} elseif (\is_callable($namespace)) {
6060
$this->namespace = $namespace(...);
6161
} else {
62-
throw new InvalidArgumentException(sprintf('$namespace must be a string, a callable returning a string, null or an instance of "RequestStack". "%s" given.', get_debug_type($namespace)));
62+
throw new InvalidArgumentException(\sprintf('$namespace must be a string, a callable returning a string, null or an instance of "RequestStack". "%s" given.', get_debug_type($namespace)));
6363
}
6464
}
6565

@@ -112,7 +112,7 @@ private function randomize(string $value): string
112112
$key = random_bytes(32);
113113
$value = $this->xor($value, $key);
114114

115-
return sprintf('%s.%s.%s', substr(hash('xxh128', $key), 0, 1 + (\ord($key[0]) % 32)), rtrim(strtr(base64_encode($key), '+/', '-_'), '='), rtrim(strtr(base64_encode($value), '+/', '-_'), '='));
115+
return \sprintf('%s.%s.%s', substr(hash('xxh128', $key), 0, 1 + (\ord($key[0]) % 32)), rtrim(strtr(base64_encode($key), '+/', '-_'), '='), rtrim(strtr(base64_encode($value), '+/', '-_'), '='));
116116
}
117117

118118
private function derandomize(string $value): string

0 commit comments

Comments
 (0)