mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-31 04:27:05 +00:00
fix possible typo in parameter name
Interface's method signature: ```php public function getQRCodeImage(string $qrtext, int $size): string; ```
This commit is contained in:
@@ -51,7 +51,7 @@ class BaconQrCodeProvider implements IQRCodeProvider
|
||||
throw new RuntimeException(sprintf('Unknown MIME-type: %s', $this->format));
|
||||
}
|
||||
|
||||
public function getQRCodeImage(string $qrText, int $size): string
|
||||
public function getQRCodeImage(string $qrtext, int $size): string
|
||||
{
|
||||
switch ($this->format) {
|
||||
case 'svg':
|
||||
@@ -64,7 +64,7 @@ class BaconQrCodeProvider implements IQRCodeProvider
|
||||
$backend = new ImagickImageBackEnd($this->format);
|
||||
}
|
||||
|
||||
$output = $this->getQRCodeByBackend($qrText, $size, $backend);
|
||||
$output = $this->getQRCodeByBackend($qrtext, $size, $backend);
|
||||
|
||||
if ($this->format == 'svg') {
|
||||
$svg = explode("\n", $output);
|
||||
|
||||
Reference in New Issue
Block a user