:octocat: omit parentheses around "new" calls

This commit is contained in:
smiley
2026-03-17 19:05:34 +01:00
parent 3bfa0be1d5
commit 9a38501f5b
59 changed files with 95 additions and 95 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
}
$luminanceSource = $this->getLuminanceSourceFromFile($file, $this->options);
$result = (new Decoder)->decode($luminanceSource);
$result = new Decoder()->decode($luminanceSource);
$this->debugMatrix($result->getQRMatrix());
@@ -119,7 +119,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
$hanzi = '无可奈何燃花作香';
$byte = 'https://smiley.codes/qrcode/';
$qrcode = (new QRCode($this->options))
$qrcode = new QRCode($this->options)
->addNumericSegment($numeric)
->addAlphaNumSegment($alphanum)
->addKanjiSegment($kanji)