Skip to content

Commit e584f0c

Browse files
committed
remove unnecessary type casts
1 parent 5949a29 commit e584f0c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Providers/Qr/QRicketProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getQRCodeImage(string $qrtext, int $size): string
3535
public function getUrl(string $qrtext, int $size): string
3636
{
3737
return 'http://qrickit.com/api/qr'
38-
. '?qrsize=' . (string)$size
38+
. '?qrsize=' . $size
3939
. '&e=' . strtolower($this->errorcorrectionlevel)
4040
. '&bgdcolor=' . $this->bgcolor
4141
. '&fgdcolor=' . $this->color

lib/TwoFactorAuth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ public function getQRText(string $label, string $secret): string
157157
return 'otpauth://totp/' . rawurlencode($label)
158158
. '?secret=' . rawurlencode($secret)
159159
. '&issuer=' . rawurlencode((string)$this->issuer)
160-
. '&period=' . intval($this->period)
160+
. '&period=' . $this->period
161161
. '&algorithm=' . rawurlencode(strtoupper($this->algorithm->value))
162-
. '&digits=' . intval($this->digits);
162+
. '&digits=' . $this->digits;
163163
}
164164

165165
/**

0 commit comments

Comments
 (0)