File tree Expand file tree Collapse file tree
lib/Service/IdentifyMethod/SignatureMethod Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111use OCA \Libresign \Service \IdentifyMethod \IdentifyService ;
1212
1313class TwofactorGatewayToken extends AbstractSignatureMethod implements IToken {
14+ private const VISIBILITY_START = 2 ;
15+ private const VISIBILITY_END = 2 ;
16+
1417 public function __construct (
1518 protected IdentifyService $ identifyService ,
1619 protected TokenService $ tokenService ,
@@ -52,7 +55,11 @@ public function toArray(): array {
5255 return $ return ;
5356 }
5457
55- private function blurIdentifier (string $ identifier , int $ visibleStart = 2 , int $ visibleEnd = 2 ): string {
58+ private function blurIdentifier (
59+ string $ identifier ,
60+ int $ visibleStart = self ::VISIBILITY_START ,
61+ int $ visibleEnd = self ::VISIBILITY_END ,
62+ ): string {
5663 $ length = mb_strlen ($ identifier );
5764
5865 if ($ length <= $ visibleStart + $ visibleEnd ) {
You can’t perform that action at this time.
0 commit comments