File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
lib/Service/IdentifyMethod/SignatureMethod Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11
11
use OCA \Libresign \Service \IdentifyMethod \IdentifyService ;
12
12
13
13
class TwofactorGatewayToken extends AbstractSignatureMethod implements IToken {
14
+ private const VISIBILITY_START = 2 ;
15
+ private const VISIBILITY_END = 2 ;
16
+
14
17
public function __construct (
15
18
protected IdentifyService $ identifyService ,
16
19
protected TokenService $ tokenService ,
@@ -52,7 +55,11 @@ public function toArray(): array {
52
55
return $ return ;
53
56
}
54
57
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 {
56
63
$ length = mb_strlen ($ identifier );
57
64
58
65
if ($ length <= $ visibleStart + $ visibleEnd ) {
You can’t perform that action at this time.
0 commit comments