2424#[BeforeMethods(['assignParams ' , 'generateTestData ' , 'initOptions ' , 'initMatrix ' ])]
2525final class OutputBenchmark extends BenchmarkAbstract{
2626
27- protected const DATAMODES = [Mode::BYTE => Byte::class];
27+ protected const array DATAMODES = [Mode::BYTE => Byte::class];
2828
2929 public function initOptions ():void {
3030
@@ -42,55 +42,55 @@ public function initOptions():void{
4242
4343 #[Subject]
4444 public function QREps ():void {
45- ( new QREps ($ this ->options , $ this ->matrix ) )->dump ();
45+ new QREps ($ this ->options , $ this ->matrix )->dump ();
4646 }
4747
4848 #[Subject]
4949 public function QRFpdf ():void {
50- ( new QRFpdf ($ this ->options , $ this ->matrix ) )->dump ();
50+ new QRFpdf ($ this ->options , $ this ->matrix )->dump ();
5151 }
5252
5353 /**
5454 * for some reason imageavif() is extremely slow, ~50x slower than imagepng()
5555 */
5656# #[Subject]
5757# public function QRGdImageAVIF():void{
58- # ( new \chillerlan\QRCode\Output\QRGdImageAVIF($this->options, $this->matrix) )->dump();
58+ # new \chillerlan\QRCode\Output\QRGdImageAVIF($this->options, $this->matrix)->dump();
5959# }
6060
6161 #[Subject]
6262 public function QRGdImageJPEG ():void {
63- ( new QRGdImageJPEG ($ this ->options , $ this ->matrix ) )->dump ();
63+ new QRGdImageJPEG ($ this ->options , $ this ->matrix )->dump ();
6464 }
6565
6666 #[Subject]
6767 public function QRGdImagePNG ():void {
68- ( new QRGdImagePNG ($ this ->options , $ this ->matrix ) )->dump ();
68+ new QRGdImagePNG ($ this ->options , $ this ->matrix )->dump ();
6969 }
7070
7171 #[Subject]
7272 public function QRGdImageWEBP ():void {
73- ( new QRGdImageWEBP ($ this ->options , $ this ->matrix ) )->dump ();
73+ new QRGdImageWEBP ($ this ->options , $ this ->matrix )->dump ();
7474 }
7575
7676 #[Subject]
7777 public function QRImagick ():void {
78- ( new QRImagick ($ this ->options , $ this ->matrix ) )->dump ();
78+ new QRImagick ($ this ->options , $ this ->matrix )->dump ();
7979 }
8080
8181 #[Subject]
8282 public function QRMarkupSVG ():void {
83- ( new QRMarkupSVG ($ this ->options , $ this ->matrix ) )->dump ();
83+ new QRMarkupSVG ($ this ->options , $ this ->matrix )->dump ();
8484 }
8585
8686 #[Subject]
8787 public function QRMarkupXML ():void {
88- ( new QRMarkupXML ($ this ->options , $ this ->matrix ) )->dump ();
88+ new QRMarkupXML ($ this ->options , $ this ->matrix )->dump ();
8989 }
9090
9191 #[Subject]
9292 public function QRStringJSON ():void {
93- ( new QRStringJSON ($ this ->options , $ this ->matrix ) )->dump ();
93+ new QRStringJSON ($ this ->options , $ this ->matrix )->dump ();
9494 }
9595
9696}
0 commit comments