: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
@@ -42,7 +42,7 @@ final class QRDataTest extends TestCase{
$options = new QROptions(['version' => 3]);
$bitBuffer = new BitBuffer($rawBytes);
$matrix = (new QRData($options))->setBitBuffer($bitBuffer)->writeMatrix();
$matrix = new QRData($options)->setBitBuffer($bitBuffer)->writeMatrix();
$maskPattern = MaskPattern::getBestPattern($matrix);
$matrix->setFormatInfo($maskPattern)->mask($maskPattern);
@@ -54,7 +54,7 @@ final class QRDataTest extends TestCase{
$options->readerUseImagickIfAvailable = false;
$output = new QRGdImagePNG($options, $matrix);
$decodeResult = (new QRCode($options))->readFromBlob($output->dump());
$decodeResult = new QRCode($options)->readFromBlob($output->dump());
$this->debugMatrix($matrix);