Explorar el Código

:octocat: declare strict types

smiley hace 1 año
padre
commit
7b1d9617d3
Se han modificado 100 ficheros con 107 adiciones y 2 borrados
  1. 1 0
      examples/authenticator.php
  2. 1 0
      examples/custom_output.php
  3. 1 0
      examples/eps.php
  4. 1 0
      examples/fpdf.php
  5. 1 0
      examples/html.php
  6. 1 0
      examples/image.php
  7. 1 0
      examples/imageWithLogo.php
  8. 1 0
      examples/imageWithRoundedShapes.php
  9. 1 0
      examples/imageWithText.php
  10. 1 0
      examples/imagick.php
  11. 1 0
      examples/imagickConvertSVGtoPNG.php
  12. 1 0
      examples/imagickImageAsBackground.php
  13. 1 0
      examples/imagickWithLogo.php
  14. 1 0
      examples/intervention-image.php
  15. 1 0
      examples/multimode.php
  16. 1 0
      examples/qrcode-interactive.php
  17. 1 0
      examples/reader.php
  18. 1 0
      examples/reflectance.php
  19. 1 0
      examples/svg.php
  20. 1 0
      examples/svgConvertViaCanvas.php
  21. 1 0
      examples/svgMeltedModules.php
  22. 1 0
      examples/svgRandomColoredDots.php
  23. 1 0
      examples/svgRoundQuietzone.php
  24. 1 0
      examples/svgWithLogo.php
  25. 1 0
      examples/svgWithLogoAndCustomShapes.php
  26. 1 0
      examples/text.php
  27. 1 0
      examples/xml.php
  28. 8 2
      phpcs.xml.dist
  29. 1 0
      src/Common/BitBuffer.php
  30. 1 0
      src/Common/ECICharset.php
  31. 1 0
      src/Common/EccLevel.php
  32. 1 0
      src/Common/GDLuminanceSource.php
  33. 1 0
      src/Common/GF256.php
  34. 1 0
      src/Common/GenericGFPoly.php
  35. 1 0
      src/Common/IMagickLuminanceSource.php
  36. 1 0
      src/Common/LuminanceSourceAbstract.php
  37. 1 0
      src/Common/LuminanceSourceInterface.php
  38. 1 0
      src/Common/MaskPattern.php
  39. 1 0
      src/Common/Mode.php
  40. 1 0
      src/Common/Version.php
  41. 1 0
      src/Data/AlphaNum.php
  42. 1 0
      src/Data/Byte.php
  43. 1 0
      src/Data/ECI.php
  44. 1 0
      src/Data/Hanzi.php
  45. 1 0
      src/Data/Kanji.php
  46. 1 0
      src/Data/Number.php
  47. 1 0
      src/Data/QRCodeDataException.php
  48. 1 0
      src/Data/QRData.php
  49. 1 0
      src/Data/QRDataModeAbstract.php
  50. 1 0
      src/Data/QRDataModeInterface.php
  51. 1 0
      src/Data/QRMatrix.php
  52. 1 0
      src/Data/ReedSolomonEncoder.php
  53. 1 0
      src/Decoder/Binarizer.php
  54. 1 0
      src/Decoder/BitMatrix.php
  55. 1 0
      src/Decoder/Decoder.php
  56. 1 0
      src/Decoder/DecoderResult.php
  57. 1 0
      src/Decoder/QRCodeDecoderException.php
  58. 1 0
      src/Decoder/ReedSolomonDecoder.php
  59. 1 0
      src/Detector/AlignmentPattern.php
  60. 1 0
      src/Detector/AlignmentPatternFinder.php
  61. 1 0
      src/Detector/Detector.php
  62. 1 0
      src/Detector/FinderPattern.php
  63. 1 0
      src/Detector/FinderPatternFinder.php
  64. 1 0
      src/Detector/GridSampler.php
  65. 1 0
      src/Detector/PerspectiveTransform.php
  66. 1 0
      src/Detector/QRCodeDetectorException.php
  67. 1 0
      src/Detector/ResultPoint.php
  68. 1 0
      src/Output/CssColorModuleValueTrait.php
  69. 1 0
      src/Output/QRCodeOutputException.php
  70. 1 0
      src/Output/QREps.php
  71. 1 0
      src/Output/QRFpdf.php
  72. 1 0
      src/Output/QRGdImage.php
  73. 1 0
      src/Output/QRGdImageAVIF.php
  74. 1 0
      src/Output/QRGdImageBMP.php
  75. 1 0
      src/Output/QRGdImageGIF.php
  76. 1 0
      src/Output/QRGdImageJPEG.php
  77. 1 0
      src/Output/QRGdImagePNG.php
  78. 1 0
      src/Output/QRGdImageWEBP.php
  79. 1 0
      src/Output/QRImagick.php
  80. 1 0
      src/Output/QRInterventionImage.php
  81. 1 0
      src/Output/QRMarkup.php
  82. 1 0
      src/Output/QRMarkupHTML.php
  83. 1 0
      src/Output/QRMarkupSVG.php
  84. 1 0
      src/Output/QRMarkupXML.php
  85. 1 0
      src/Output/QROutputAbstract.php
  86. 1 0
      src/Output/QROutputInterface.php
  87. 1 0
      src/Output/QRStringJSON.php
  88. 1 0
      src/Output/QRStringText.php
  89. 1 0
      src/Output/RGBArrayModuleValueTrait.php
  90. 1 0
      src/QRCode.php
  91. 1 0
      src/QRCodeException.php
  92. 1 0
      src/QRCodeReaderOptionsTrait.php
  93. 1 0
      src/QROptions.php
  94. 1 0
      src/QROptionsTrait.php
  95. 1 0
      tests/BuildDirTrait.php
  96. 1 0
      tests/Common/BitBufferTest.php
  97. 1 0
      tests/Common/ECICharsetTest.php
  98. 1 0
      tests/Common/EccLevelTest.php
  99. 1 0
      tests/Common/MaskPatternTest.php
  100. 1 0
      tests/Common/ModeTest.php

+ 1 - 0
examples/authenticator.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\Authenticator\{Authenticator, AuthenticatorOptionsTrait};
 use chillerlan\Authenticator\Authenticators\AuthenticatorInterface;

+ 1 - 0
examples/custom_output.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpIllegalPsrClassPathInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Output\QROutputAbstract;

+ 1 - 0
examples/eps.php

@@ -7,6 +7,7 @@
  * @copyright    2022 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/fpdf.php

@@ -6,6 +6,7 @@
  * @author       Maximilian Kresse
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/html.php

@@ -7,6 +7,7 @@
  * @copyright    2017 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/image.php

@@ -7,6 +7,7 @@
  * @copyright    2017 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/imageWithLogo.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection, PhpIllegalPsrClassPathInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/imageWithRoundedShapes.php

@@ -12,6 +12,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/imageWithText.php

@@ -11,6 +11,7 @@
  *
  * @noinspection PhpIllegalPsrClassPathInspection, PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Output\QRGdImagePNG;

+ 1 - 0
examples/imagick.php

@@ -7,6 +7,7 @@
  * @copyright    2017 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/imagickConvertSVGtoPNG.php

@@ -17,6 +17,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/imagickImageAsBackground.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/imagickWithLogo.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/intervention-image.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\Data\QRMatrix;
 use chillerlan\QRCode\Output\QRInterventionImage;

+ 1 - 0
examples/multimode.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 

+ 1 - 0
examples/qrcode-interactive.php

@@ -7,6 +7,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/reader.php

@@ -7,6 +7,7 @@
  * @copyright    2022 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 

+ 1 - 0
examples/reflectance.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/svg.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/svgConvertViaCanvas.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/svgMeltedModules.php

@@ -9,6 +9,7 @@
  * @see https://github.com/chillerlan/php-qrcode/issues/127
  * @see ./shapes.svg
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/svgRandomColoredDots.php

@@ -11,6 +11,7 @@
  *
  * @noinspection PhpIllegalPsrClassPathInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/svgRoundQuietzone.php

@@ -11,6 +11,7 @@
  *
  * @noinspection PhpIllegalPsrClassPathInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/svgWithLogo.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/svgWithLogoAndCustomShapes.php

@@ -11,6 +11,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
 use chillerlan\QRCode\Common\EccLevel;

+ 1 - 0
examples/text.php

@@ -7,6 +7,7 @@
  * @copyright    2017 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\{QRCode, QROptions};
 use chillerlan\QRCode\Data\QRMatrix;

+ 1 - 0
examples/xml.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 use chillerlan\QRCode\Data\QRMatrix;
 use chillerlan\QRCode\{QRCode, QROptions};

+ 8 - 2
phpcs.xml.dist

@@ -74,7 +74,6 @@
 
 	<rule ref="SlevomatCodingStandard.Strings.DisallowVariableParsing"/>
 
-	<!--<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>-->
 	<!--<rule ref="SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint"/>-->
 	<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
 	<rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/>
@@ -87,6 +86,13 @@
 	<rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/>
 	<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>
 
+	<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
+		<properties>
+			<property name="linesCountBeforeDeclare" value="0"/>
+			<property name="linesCountAfterDeclare" value="1"/>
+			<property name="spacesCountAroundEqualsSign" value="0"/>
+		</properties>
+	</rule>
 
 	<rule ref="SlevomatCodingStandard.Functions.RequireMultiLineCall">
 		<properties>
@@ -147,7 +153,7 @@
 	<rule ref="Generic.PHP.LowerCaseKeyword"/>
 	<rule ref="Generic.PHP.LowerCaseType"/>
 	<rule ref="Generic.PHP.NoSilencedErrors"/>
-	<!--<rule ref="Generic.PHP.RequireStrictTypes"/>-->
+	<rule ref="Generic.PHP.RequireStrictTypes"/>
 	<rule ref="Generic.PHP.SAPIUsage"/>
 	<rule ref="Generic.PHP.Syntax"/>
 	<rule ref="Generic.Strings.UnnecessaryStringConcat"/>

+ 1 - 0
src/Common/BitBuffer.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/ECICharset.php

@@ -8,6 +8,7 @@
  * @copyright    2021 smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/EccLevel.php

@@ -7,6 +7,7 @@
  * @copyright    2020 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/GDLuminanceSource.php

@@ -10,6 +10,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/GF256.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/GenericGFPoly.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/IMagickLuminanceSource.php

@@ -10,6 +10,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/LuminanceSourceAbstract.php

@@ -9,6 +9,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/LuminanceSourceInterface.php

@@ -7,6 +7,7 @@
  * @copyright    2021 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/MaskPattern.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/Mode.php

@@ -7,6 +7,7 @@
  * @copyright    2020 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Common/Version.php

@@ -7,6 +7,7 @@
  * @copyright    2020 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Common;
 

+ 1 - 0
src/Data/AlphaNum.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/Byte.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/ECI.php

@@ -7,6 +7,7 @@
  * @copyright    2020 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/Hanzi.php

@@ -7,6 +7,7 @@
  * @copyright    2020 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/Kanji.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/Number.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/QRCodeDataException.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/QRData.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/QRDataModeAbstract.php

@@ -7,6 +7,7 @@
  * @copyright    2020 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/QRDataModeInterface.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/QRMatrix.php

@@ -7,6 +7,7 @@
  * @copyright    2017 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Data/ReedSolomonEncoder.php

@@ -7,6 +7,7 @@
  * @copyright    2021 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Data;
 

+ 1 - 0
src/Decoder/Binarizer.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Decoder;
 

+ 1 - 0
src/Decoder/BitMatrix.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Decoder;
 

+ 1 - 0
src/Decoder/Decoder.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Decoder;
 

+ 1 - 0
src/Decoder/DecoderResult.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Decoder;
 

+ 1 - 0
src/Decoder/QRCodeDecoderException.php

@@ -7,6 +7,7 @@
  * @copyright    2021 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Decoder;
 

+ 1 - 0
src/Decoder/ReedSolomonDecoder.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Decoder;
 

+ 1 - 0
src/Detector/AlignmentPattern.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/AlignmentPatternFinder.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/Detector.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/FinderPattern.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/FinderPatternFinder.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/GridSampler.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/PerspectiveTransform.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/QRCodeDetectorException.php

@@ -7,6 +7,7 @@
  * @copyright    2021 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Detector/ResultPoint.php

@@ -8,6 +8,7 @@
  * @copyright    2021 Smiley
  * @license      Apache-2.0
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Detector;
 

+ 1 - 0
src/Output/CssColorModuleValueTrait.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRCodeOutputException.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QREps.php

@@ -7,6 +7,7 @@
  * @copyright    2022 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRFpdf.php

@@ -8,6 +8,7 @@
  *
  * @see https://github.com/chillerlan/php-qrcode/pull/49
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImage.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImageAVIF.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImageBMP.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImageGIF.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImageJPEG.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImagePNG.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRGdImageWEBP.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRImagick.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRInterventionImage.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRMarkup.php

@@ -7,6 +7,7 @@
  * @copyright    2016 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRMarkupHTML.php

@@ -7,6 +7,7 @@
  * @copyright    2022 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRMarkupSVG.php

@@ -7,6 +7,7 @@
  * @copyright    2022 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRMarkupXML.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QROutputAbstract.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QROutputInterface.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRStringJSON.php

@@ -9,6 +9,7 @@
  *
  * @noinspection PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/QRStringText.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/Output/RGBArrayModuleValueTrait.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode\Output;
 

+ 1 - 0
src/QRCode.php

@@ -9,6 +9,7 @@
  *
  * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode;
 

+ 1 - 0
src/QRCodeException.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode;
 

+ 1 - 0
src/QRCodeReaderOptionsTrait.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode;
 

+ 1 - 0
src/QROptions.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode;
 

+ 1 - 0
src/QROptionsTrait.php

@@ -11,6 +11,7 @@
  *
  * @noinspection PhpUnused, PhpComposerExtensionStubsInspection
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCode;
 

+ 1 - 0
tests/BuildDirTrait.php

@@ -7,6 +7,7 @@
  * @copyright    2024 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCodeTest;
 

+ 1 - 0
tests/Common/BitBufferTest.php

@@ -7,6 +7,7 @@
  * @copyright    2015 Smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCodeTest\Common;
 

+ 1 - 0
tests/Common/ECICharsetTest.php

@@ -7,6 +7,7 @@
  * @copyright    2023 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCodeTest\Common;
 

+ 1 - 0
tests/Common/EccLevelTest.php

@@ -7,6 +7,7 @@
  * @copyright    2022 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCodeTest\Common;
 

+ 1 - 0
tests/Common/MaskPatternTest.php

@@ -10,6 +10,7 @@
  *
  * @codingStandardsIgnoreFile Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCodeTest\Common;
 

+ 1 - 0
tests/Common/ModeTest.php

@@ -7,6 +7,7 @@
  * @copyright    2022 smiley
  * @license      MIT
  */
+declare(strict_types=1);
 
 namespace chillerlan\QRCodeTest\Common;
 

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio