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){
167
167
}
168
168
169
169
// set transparency after scaling, otherwise it would be undone
170
+ // @see https://www.php.net/manual/en/function.imagecolortransparent.php#77099
170
171
$ this ->setTransparencyColor ();
171
172
172
173
if ($ this ->options ->returnResource ){
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ abstract class QRMarkup extends QROutputAbstract{
21
21
* note: we're not necessarily validating the several values, just checking the general syntax
22
22
* note: css4 colors are not included
23
23
*
24
+ * @todo: XSS proof
25
+ *
24
26
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
25
27
* @inheritDoc
26
28
*/
Original file line number Diff line number Diff line change 24
24
class QRMarkupSVG extends QRMarkup{
25
25
26
26
/**
27
+ * @todo: XSS proof
28
+ *
27
29
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill
28
30
* @inheritDoc
29
31
*/
Original file line number Diff line number Diff line change 25
25
* Turns a text string into a Model 2 QR Code
26
26
*
27
27
* @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
29
29
* @see https://www.swisseduc.ch/informatik/theoretische_informatik/qr_codes/docs/qr_standard.pdf
30
30
* @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/
32
32
*/
33
33
class QRCode{
34
34
@@ -179,6 +179,8 @@ class QRCode{
179
179
180
180
/**
181
181
* QRCode constructor.
182
+ *
183
+ * PHP8: accept iterable
182
184
*/
183
185
public function __construct (SettingsContainerInterface $ options = null ){
184
186
$ 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{
234
234
$ version = $ matrix ->getVersion ();
235
235
236
236
if ($ version ->getVersionNumber () === 1 ){
237
+ /** @noinspection PhpUnitTestFailedLineInspection */
237
238
$ this ::markTestSkipped ('N/A (Version 1 has no alignment pattern) ' );
238
239
}
239
240
@@ -294,6 +295,7 @@ public function testSetTimingPattern(QRMatrix $matrix):void{
294
295
public function testSetVersionNumber (QRMatrix $ matrix ):void {
295
296
296
297
if ($ matrix ->getVersion ()->getVersionNumber () < 7 ){
298
+ /** @noinspection PhpUnitTestFailedLineInspection */
297
299
$ this ::markTestSkipped ('N/A (Version < 7) ' );
298
300
}
299
301
Original file line number Diff line number Diff line change 10
10
11
11
namespace chillerlan \QRCodeTest \Output ;
12
12
13
+ use chillerlan \QRCode \QRCode ;
13
14
use chillerlan \QRCode \QROptions ;
14
- use chillerlan \QRCode \Common \MaskPattern ;
15
- use chillerlan \QRCode \Data \{Byte , QRData , QRMatrix };
15
+ use chillerlan \QRCode \Data \QRMatrix ;
16
16
use chillerlan \QRCode \Output \{QRCodeOutputException , QROutputInterface };
17
17
use PHPUnit \Framework \TestCase ;
18
18
You can’t perform that action at this time.
0 commit comments