💄 code style fixes

This commit is contained in:
smiley
2023-03-11 02:38:57 +01:00
parent abfd69e44a
commit 6b2a529160
74 changed files with 843 additions and 777 deletions
+1 -5
View File
@@ -13,7 +13,7 @@ namespace chillerlan\QRCodeTest\Data;
use chillerlan\QRCode\Common\{MaskPattern, Version};
use chillerlan\QRCode\QROptions;
use PHPUnit\Framework\TestCase;
use chillerlan\QRCode\Data\{Hanzi, QRCodeDataException, QRData, QRDataModeInterface, QRMatrix};
use chillerlan\QRCode\Data\{QRCodeDataException, QRData, QRDataModeInterface, QRMatrix};
use ReflectionClass;
use function hex2bin;
@@ -133,10 +133,6 @@ abstract class DataInterfaceTestAbstract extends TestCase{
$bitBuffer = $this->QRData->getBitBuffer();
// read the first 4 bits
$this::assertSame($datamodeInterface->getDataMode(), $bitBuffer->read(4));
// hanzi mode starts with a subset indicator
if($datamodeInterface instanceof Hanzi){
$this::assertSame(Hanzi::GB2312_SUBSET, $bitBuffer->read(4));
}
// decode the data
/** @noinspection PhpUndefinedMethodInspection */
$this::assertSame($this->testdata, $this->FQN::decodeSegment($bitBuffer, $options->version));