diff --git a/src/BarCode.php b/src/BarCode.php index 5d377dc3f0d2a3c9028f06fa6b89d73ce2c9e511..4b726bf9a4ebe309bf5b4caad0fa361fa48627aa 100644 --- a/src/BarCode.php +++ b/src/BarCode.php @@ -4,7 +4,9 @@ namespace TarfinLabs\ZbarPhp; class BarCode { - public function __construct(protected string $code, protected string $type) {} + public function __construct(protected string $code, protected string $type) + { + } /** * Returns the bar code. diff --git a/tests/ZbarTest.php b/tests/ZbarTest.php index 4af07c71f920909ccda0740df0c93bc6d431c3b6..1abcc39e834c52e2246c72bf7f30dbd74c1c0862 100644 --- a/tests/ZbarTest.php +++ b/tests/ZbarTest.php @@ -2,14 +2,13 @@ namespace TarfinLabs\ZbarPhp\Tests; -use PHPUnit\Framework\TestCase; use PHPUnit\Framework\Attributes\Test; +use PHPUnit\Framework\TestCase; use TarfinLabs\ZbarPhp\Exceptions\InvalidFormat; use TarfinLabs\ZbarPhp\Exceptions\UnableToOpen; use TarfinLabs\ZbarPhp\Exceptions\ZbarError; use TarfinLabs\ZbarPhp\Zbar; - class ZbarTest extends TestCase { protected string $qrcode; @@ -28,12 +27,12 @@ class ZbarTest extends TestCase { parent::setUp(); - $this->qrcode = __DIR__ . '/files/qrcode.png'; - $this->barcode = __DIR__ . '/files/barcode.gif'; - $this->invalidFile = __DIR__ . '/files/qrcode.txt'; - $this->emptyImage = __DIR__ . '/files/empty.png'; - $this->ean13 = __DIR__ . '/files/ean-13.jpg'; - $this->code128 = __DIR__ . '/files/code-128.png'; + $this->qrcode = __DIR__.'/files/qrcode.png'; + $this->barcode = __DIR__.'/files/barcode.gif'; + $this->invalidFile = __DIR__.'/files/qrcode.txt'; + $this->emptyImage = __DIR__.'/files/empty.png'; + $this->ean13 = __DIR__.'/files/ean-13.jpg'; + $this->code128 = __DIR__.'/files/code-128.png'; } #[Test]