💄 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
+2 -2
View File
@@ -31,7 +31,7 @@ final class Byte extends QRDataModeAbstract{
* @inheritDoc
*/
public function getLengthInBits():int{
return $this->getCharCount() * 8;
return ($this->getCharCount() * 8);
}
/**
@@ -69,7 +69,7 @@ final class Byte extends QRDataModeAbstract{
public static function decodeSegment(BitBuffer $bitBuffer, int $versionNumber):string{
$length = $bitBuffer->read(self::getLengthBits($versionNumber));
if($bitBuffer->available() < 8 * $length){
if($bitBuffer->available() < (8 * $length)){
throw new QRCodeDataException('not enough bits available'); // @codeCoverageIgnore
}