Skip to content

Commit b0fc9ae

Browse files
committed
🚿
1 parent 50179a9 commit b0fc9ae

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

src/Output/QRGdImage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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){

src/Output/QRMarkup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

src/Output/QRMarkupSVG.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
class 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
*/

src/QRCode.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
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
*/
3333
class 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));

tests/Data/QRMatrixTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

tests/Output/QROutputTestAbstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
namespace chillerlan\QRCodeTest\Output;
1212

13+
use chillerlan\QRCode\QRCode;
1314
use chillerlan\QRCode\QROptions;
14-
use chillerlan\QRCode\Common\MaskPattern;
15-
use chillerlan\QRCode\Data\{Byte, QRData, QRMatrix};
15+
use chillerlan\QRCode\Data\QRMatrix;
1616
use chillerlan\QRCode\Output\{QRCodeOutputException, QROutputInterface};
1717
use PHPUnit\Framework\TestCase;
1818

0 commit comments

Comments
 (0)