remove unnecessary type casts

This commit is contained in:
Mark Magyar
2023-05-27 21:29:26 +02:00
parent 5949a29b89
commit e584f0c56a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class QRicketProvider extends BaseHTTPQRCodeProvider
public function getUrl(string $qrtext, int $size): string
{
return 'http://qrickit.com/api/qr'
. '?qrsize=' . (string)$size
. '?qrsize=' . $size
. '&e=' . strtolower($this->errorcorrectionlevel)
. '&bgdcolor=' . $this->bgcolor
. '&fgdcolor=' . $this->color
+2 -2
View File
@@ -157,9 +157,9 @@ class TwoFactorAuth
return 'otpauth://totp/' . rawurlencode($label)
. '?secret=' . rawurlencode($secret)
. '&issuer=' . rawurlencode((string)$this->issuer)
. '&period=' . intval($this->period)
. '&period=' . $this->period
. '&algorithm=' . rawurlencode(strtoupper($this->algorithm->value))
. '&digits=' . intval($this->digits);
. '&digits=' . $this->digits;
}
/**