mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-21 00:50:11 +00:00
💄 code style fixes
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user