1919use chillerlan \QRCode \Output \QRGdImagePNG ;
2020use chillerlan \Settings \SettingsContainerInterface ;
2121
22- require_once __DIR__ . '/../vendor/autoload.php ' ;
22+ require_once __DIR__ . '/../vendor/autoload.php ' ;
2323
2424// --------------------
2525// Class definition
2626// --------------------
2727
2828class QRGdRounded extends QRGdImagePNG{
2929
30- /** @inheritDoc */
3130 public function __construct (SettingsContainerInterface |QROptions $ options , QRMatrix $ matrix ){
3231 // enable the internal scaling for better rounding results at scale < 20
3332 $ options ->drawCircularModules = true ;
3433
3534 parent ::__construct ($ options , $ matrix );
3635 }
3736
38- /** @inheritDoc */
3937 protected function module (int $ x , int $ y , int $ M_TYPE ):void {
4038
4139 /**
@@ -121,7 +119,7 @@ protected function module(int $x, int $y, int $M_TYPE):void{
121119 (int )($ y * $ this ->scale + $ this ->scale / 2 ),
122120 ($ this ->scale - 1 ),
123121 ($ this ->scale - 1 ),
124- $ light
122+ $ light,
125123 );
126124 }
127125
@@ -133,14 +131,14 @@ protected function module(int $x, int $y, int $M_TYPE):void{
133131// --------------------
134132
135133$ options = new QROptions ([
136- 'version ' => 7 ,
137- 'eccLevel ' => EccLevel::H,
138- 'outputInterface ' => QRGdRounded::class,
139- 'outputBase64 ' => false ,
140- 'scale ' => 30 ,
141- 'addLogoSpace ' => true ,
142- 'logoSpaceWidth ' => 13 ,
143- 'logoSpaceHeight ' => 13 ,
134+ 'version ' => 7 ,
135+ 'eccLevel ' => EccLevel::H,
136+ 'outputInterface ' => QRGdRounded::class,
137+ 'outputBase64 ' => false ,
138+ 'scale ' => 30 ,
139+ 'addLogoSpace ' => true ,
140+ 'logoSpaceWidth ' => 13 ,
141+ 'logoSpaceHeight ' => 13 ,
144142]);
145143
146144
0 commit comments