mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-30 03:57:29 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d70f9ca8e |
@@ -33,11 +33,15 @@ class EndroidQrCodeWithLogoProvider extends EndroidQrCodeProvider
|
|||||||
|
|
||||||
$logo = null;
|
$logo = null;
|
||||||
if ($this->logoPath) {
|
if ($this->logoPath) {
|
||||||
$logo = Logo::create($this->logoPath);
|
if ($this->endroid6) {
|
||||||
if ($this->logoSize) {
|
$logo = new Logo($this->logoPath, ...$this->logoSize);
|
||||||
$logo->setResizeToWidth($this->logoSize[0]);
|
} else {
|
||||||
if (isset($this->logoSize[1])) {
|
$logo = Logo::create($this->logoPath);
|
||||||
$logo->setResizeToHeight($this->logoSize[1]);
|
if ($this->logoSize) {
|
||||||
|
$logo->setResizeToWidth($this->logoSize[0]);
|
||||||
|
if (isset($this->logoSize[1])) {
|
||||||
|
$logo->setResizeToHeight($this->logoSize[1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user