From 44d277d53731d66351540b9a9dc476c646108654 Mon Sep 17 00:00:00 2001 From: smiley Date: Mon, 17 Nov 2025 19:09:49 +0100 Subject: [PATCH] :shower: order values --- src/Decoder/Decoder.php | 4 ++-- src/Decoder/DecoderResult.php | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Decoder/Decoder.php b/src/Decoder/Decoder.php index c3d876df6..92b2e2094 100644 --- a/src/Decoder/Decoder.php +++ b/src/Decoder/Decoder.php @@ -160,14 +160,14 @@ final class Decoder{ } return new DecoderResult([ - 'rawBytes' => $this->bitBuffer, 'data' => $result, - 'version' => $this->version, 'eccLevel' => $this->eccLevel, 'finderPatterns' => $this->detector->getFinderPatterns(), 'maskPattern' => $this->maskPattern, + 'rawBytes' => $this->bitBuffer, 'structuredAppendParity' => $parityData, 'structuredAppendSequence' => $symbolSequence, + 'version' => $this->version, ]); } diff --git a/src/Decoder/DecoderResult.php b/src/Decoder/DecoderResult.php index d7117d435..a46a178bd 100644 --- a/src/Decoder/DecoderResult.php +++ b/src/Decoder/DecoderResult.php @@ -21,26 +21,26 @@ use function property_exists; * applies to 2D barcode formats. For now, it contains the raw bytes obtained * as well as a String interpretation of those bytes, if applicable. * - * @property \chillerlan\QRCode\Common\BitBuffer $rawBytes * @property string $data - * @property \chillerlan\QRCode\Common\Version $version * @property \chillerlan\QRCode\Common\EccLevel $eccLevel + * @property \chillerlan\QRCode\Detector\FinderPattern[] $finderPatterns * @property \chillerlan\QRCode\Common\MaskPattern $maskPattern + * @property \chillerlan\QRCode\Common\BitBuffer $rawBytes * @property int $structuredAppendParity * @property int $structuredAppendSequence - * @property \chillerlan\QRCode\Detector\FinderPattern[] $finderPatterns + * @property \chillerlan\QRCode\Common\Version $version */ final class DecoderResult{ - private BitBuffer $rawBytes; - private Version $version; + private string $data = ''; private EccLevel $eccLevel; - private MaskPattern $maskPattern; - private string $data = ''; - private int $structuredAppendParity = -1; - private int $structuredAppendSequence = -1; /** @var \chillerlan\QRCode\Detector\FinderPattern[] */ private array $finderPatterns = []; + private MaskPattern $maskPattern; + private BitBuffer $rawBytes; + private int $structuredAppendParity = -1; + private int $structuredAppendSequence = -1; + private Version $version; /** * DecoderResult constructor.