File tree Expand file tree Collapse file tree 6 files changed +13
-4
lines changed Expand file tree Collapse file tree 6 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ public function dump(string $file = null){
167167 }
168168
169169 // set transparency after scaling, otherwise it would be undone
170+ // @see https://www.php.net/manual/en/function.imagecolortransparent.php#77099
170171 $ this ->setTransparencyColor ();
171172
172173 if ($ this ->options ->returnResource ){
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ abstract class QRMarkup extends QROutputAbstract{
2121 * note: we're not necessarily validating the several values, just checking the general syntax
2222 * note: css4 colors are not included
2323 *
24+ * @todo: XSS proof
25+ *
2426 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
2527 * @inheritDoc
2628 */
Original file line number Diff line number Diff line change 2424class QRMarkupSVG extends QRMarkup{
2525
2626 /**
27+ * @todo: XSS proof
28+ *
2729 * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill
2830 * @inheritDoc
2931 */
Original file line number Diff line number Diff line change 2525 * Turns a text string into a Model 2 QR Code
2626 *
2727 * @see https://github.com/kazuhikoarase/qrcode-generator/tree/master/php
28- * @see http ://www.qrcode.com/en/codes/model12.html
28+ * @see https ://www.qrcode.com/en/codes/model12.html
2929 * @see https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf
3030 * @see https://en.wikipedia.org/wiki/QR_code
31- * @see http ://www.thonky.com/qr-code-tutorial/
31+ * @see https ://www.thonky.com/qr-code-tutorial/
3232 */
3333class QRCode{
3434
@@ -179,6 +179,8 @@ class QRCode{
179179
180180 /**
181181 * QRCode constructor.
182+ *
183+ * PHP8: accept iterable
182184 */
183185 public function __construct (SettingsContainerInterface $ options = null ){
184186 $ this ->setOptions (($ options ?? new QROptions ));
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ public function testSetAlignmentPattern(QRMatrix $matrix):void{
234234 $ version = $ matrix ->getVersion ();
235235
236236 if ($ version ->getVersionNumber () === 1 ){
237+ /** @noinspection PhpUnitTestFailedLineInspection */
237238 $ this ::markTestSkipped ('N/A (Version 1 has no alignment pattern) ' );
238239 }
239240
@@ -294,6 +295,7 @@ public function testSetTimingPattern(QRMatrix $matrix):void{
294295 public function testSetVersionNumber (QRMatrix $ matrix ):void {
295296
296297 if ($ matrix ->getVersion ()->getVersionNumber () < 7 ){
298+ /** @noinspection PhpUnitTestFailedLineInspection */
297299 $ this ::markTestSkipped ('N/A (Version < 7) ' );
298300 }
299301
Original file line number Diff line number Diff line change 1010
1111namespace chillerlan \QRCodeTest \Output ;
1212
13+ use chillerlan \QRCode \QRCode ;
1314use chillerlan \QRCode \QROptions ;
14- use chillerlan \QRCode \Common \MaskPattern ;
15- use chillerlan \QRCode \Data \{Byte , QRData , QRMatrix };
15+ use chillerlan \QRCode \Data \QRMatrix ;
1616use chillerlan \QRCode \Output \{QRCodeOutputException , QROutputInterface };
1717use PHPUnit \Framework \TestCase ;
1818
You can’t perform that action at this time.
0 commit comments