Skip to content

Commit ff14742

Browse files
committed
:octocat: moved some files
1 parent 48a0350 commit ff14742

14 files changed

+25
-19
lines changed

NOTICE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ List of affected files:
2222
src/Common/ECICharset.php
2323
src/Common/GenericGFPoly.php
2424
src/Common/GF256.php
25+
src/Common/LuminanceSourceAbstract.php
2526
src/Common/MaskPattern.php
26-
src/Common/ReedSolomonDecoder.php
2727
src/Decoder/Binarizer.php
2828
src/Decoder/BitMatrix.php
2929
src/Decoder/Decoder.php
3030
src/Decoder/DecoderResult.php
31-
src/Decoder/LuminanceSourceAbstract.php
31+
src/Decoder/ReedSolomonDecoder.php
3232
src/Detector/AlignmentPattern.php
3333
src/Detector/AlignmentPatternFinder.php
3434
src/Detector/Detector.php

src/Decoder/GDLuminanceSource.php renamed to src/Common/GDLuminanceSource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
* @noinspection PhpComposerExtensionStubsInspection
1212
*/
1313

14-
namespace chillerlan\QRCode\Decoder;
14+
namespace chillerlan\QRCode\Common;
1515

16+
use chillerlan\QRCode\Decoder\QRCodeDecoderException;
1617
use chillerlan\Settings\SettingsContainerInterface;
1718
use function file_get_contents, get_resource_type, imagecolorat, imagecolorsforindex,
1819
imagecreatefromstring, imagefilter, imagesx, imagesy, is_resource;

src/Decoder/IMagickLuminanceSource.php renamed to src/Common/IMagickLuminanceSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @noinspection PhpComposerExtensionStubsInspection
1212
*/
1313

14-
namespace chillerlan\QRCode\Decoder;
14+
namespace chillerlan\QRCode\Common;
1515

1616
use chillerlan\Settings\SettingsContainerInterface;
1717
use Imagick;

src/Decoder/LuminanceSourceAbstract.php renamed to src/Common/LuminanceSourceAbstract.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
* @license Apache-2.0
1111
*/
1212

13-
namespace chillerlan\QRCode\Decoder;
13+
namespace chillerlan\QRCode\Common;
1414

15+
use chillerlan\QRCode\Decoder\QRCodeDecoderException;
1516
use chillerlan\QRCode\QROptions;
1617
use chillerlan\Settings\SettingsContainerInterface;
1718
use function array_slice, array_splice, file_exists, is_file, is_readable, realpath;

src/Decoder/LuminanceSourceInterface.php renamed to src/Common/LuminanceSourceInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @license MIT
99
*/
1010

11-
namespace chillerlan\QRCode\Decoder;
11+
namespace chillerlan\QRCode\Common;
1212

1313
/**
1414
*/

src/Data/QRMatrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace chillerlan\QRCode\Data;
1212

13-
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, MaskPattern, ReedSolomonEncoder, Version};
13+
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, MaskPattern, Version};
1414
use function array_fill, array_map, array_reverse, count, intdiv;
1515

1616
/**

src/Common/ReedSolomonEncoder.php renamed to src/Data/ReedSolomonEncoder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* @license MIT
99
*/
1010

11-
namespace chillerlan\QRCode\Common;
11+
namespace chillerlan\QRCode\Data;
1212

13+
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, GenericGFPoly, GF256, Version};
1314
use function array_fill, array_merge, count, max;
1415

1516
/**

src/Decoder/Binarizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace chillerlan\QRCode\Decoder;
1313

14+
use chillerlan\QRCode\Common\LuminanceSourceInterface;
1415
use chillerlan\QRCode\Data\QRMatrix;
1516
use function array_fill, count, intdiv, max;
1617

src/Decoder/Decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace chillerlan\QRCode\Decoder;
1313

14-
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, MaskPattern, Mode, ReedSolomonDecoder, Version};
14+
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, LuminanceSourceInterface, MaskPattern, Mode, Version};
1515
use chillerlan\QRCode\Data\{AlphaNum, Byte, ECI, Hanzi, Kanji, Number};
1616
use chillerlan\QRCode\Detector\Detector;
1717
use Throwable;

src/Common/ReedSolomonDecoder.php renamed to src/Decoder/ReedSolomonDecoder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
* @license Apache-2.0
1010
*/
1111

12-
namespace chillerlan\QRCode\Common;
12+
namespace chillerlan\QRCode\Decoder;
1313

14+
use chillerlan\QRCode\Common\{BitBuffer, EccLevel, GenericGFPoly, GF256, Version};
1415
use chillerlan\QRCode\QRCodeException;
1516
use function array_fill, array_reverse, count;
1617

0 commit comments

Comments
 (0)