Skip to content

Commit 51c0c8c

Browse files
committed
Apply fixes from StyleCI
1 parent dc42047 commit 51c0c8c

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/BarCode.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
class BarCode
66
{
7-
public function __construct(protected string $code, protected string $type) {}
7+
public function __construct(protected string $code, protected string $type)
8+
{
9+
}
810

911
/**
1012
* Returns the bar code.

tests/ZbarTest.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
namespace TarfinLabs\ZbarPhp\Tests;
44

5-
use PHPUnit\Framework\TestCase;
65
use PHPUnit\Framework\Attributes\Test;
6+
use PHPUnit\Framework\TestCase;
77
use TarfinLabs\ZbarPhp\Exceptions\InvalidFormat;
88
use TarfinLabs\ZbarPhp\Exceptions\UnableToOpen;
99
use TarfinLabs\ZbarPhp\Exceptions\ZbarError;
1010
use TarfinLabs\ZbarPhp\Zbar;
1111

12-
1312
class ZbarTest extends TestCase
1413
{
1514
protected string $qrcode;
@@ -28,12 +27,12 @@ protected function setUp(): void
2827
{
2928
parent::setUp();
3029

31-
$this->qrcode = __DIR__ . '/files/qrcode.png';
32-
$this->barcode = __DIR__ . '/files/barcode.gif';
33-
$this->invalidFile = __DIR__ . '/files/qrcode.txt';
34-
$this->emptyImage = __DIR__ . '/files/empty.png';
35-
$this->ean13 = __DIR__ . '/files/ean-13.jpg';
36-
$this->code128 = __DIR__ . '/files/code-128.png';
30+
$this->qrcode = __DIR__.'/files/qrcode.png';
31+
$this->barcode = __DIR__.'/files/barcode.gif';
32+
$this->invalidFile = __DIR__.'/files/qrcode.txt';
33+
$this->emptyImage = __DIR__.'/files/empty.png';
34+
$this->ean13 = __DIR__.'/files/ean-13.jpg';
35+
$this->code128 = __DIR__.'/files/code-128.png';
3736
}
3837

3938
#[Test]

0 commit comments

Comments
 (0)