address remarks made by MasterOdin

This commit is contained in:
Nicolas CARPi
2023-02-22 18:08:19 +01:00
parent ab76ac71a4
commit 30248a8fb5
3 changed files with 5 additions and 17 deletions
-4
View File
@@ -28,10 +28,6 @@ class BaconQrCodeProvider implements IQRCodeProvider
private string|array $foregroundColour = '#000000',
private string $format = 'png',
) {
if (!class_exists(ImagickImageBackEnd::class)) {
throw new RuntimeException('Make sure you are using version 2 of Bacon QR Code');
}
$this->backgroundColour = $this->handleColour($this->backgroundColour);
$this->foregroundColour = $this->handleColour($this->foregroundColour);
$this->format = strtolower($this->format);