diff --git a/src/Dto/LogoDto.php b/src/Dto/LogoDto.php index 52d5ff3..35ec3d9 100644 --- a/src/Dto/LogoDto.php +++ b/src/Dto/LogoDto.php @@ -86,4 +86,4 @@ public function targetHeight() { return $this->targetHeight; } -} \ No newline at end of file +} diff --git a/src/Traits/ImageTrait.php b/src/Traits/ImageTrait.php index bf4c5b0..95512e4 100644 --- a/src/Traits/ImageTrait.php +++ b/src/Traits/ImageTrait.php @@ -71,7 +71,12 @@ public function writeString(QrCodeInterface $qrCode): string ); if ($qrCode->getLogoPath()) { - $image = $this->addLogo($image, $qrCode->getLogoPath(), $qrCode->getLogoWidth(), $qrCode->getScaleLogoHeight()); + $image = $this->addLogo( + $image, + $qrCode->getLogoPath(), + $qrCode->getLogoWidth(), + $qrCode->getScaleLogoHeight() + ); } if ($qrCode->getLabel()) { diff --git a/src/Traits/UrlTrait.php b/src/Traits/UrlTrait.php index c98b464..8ac27d0 100644 --- a/src/Traits/UrlTrait.php +++ b/src/Traits/UrlTrait.php @@ -27,8 +27,6 @@ trait UrlTrait */ public function setUrl(string $value) { - $error = null; - if (!filter_var($value, FILTER_VALIDATE_URL)) { throw new InvalidConfigException('Url seems invalid.'); } diff --git a/src/Writer/SvgWriter.php b/src/Writer/SvgWriter.php index 466e081..b900fe0 100644 --- a/src/Writer/SvgWriter.php +++ b/src/Writer/SvgWriter.php @@ -59,7 +59,13 @@ public function writeString(QrCodeInterface $qrCode): string $this->addMargin($svg, $qrCode); if ($qrCode->getLogoPath()) { - $this->addLogo($svg, $qrCode, $qrCode->getLogoPath(), $qrCode->getLogoWidth(), $qrCode->getScaleLogoHeight()); + $this->addLogo( + $svg, + $qrCode, + $qrCode->getLogoPath(), + $qrCode->getLogoWidth(), + $qrCode->getScaleLogoHeight() + ); } if ($qrCode->getLabel()) {