mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-05 03:17:02 +00:00
:octocat: omit parentheses around "new" calls
This commit is contained in:
@@ -80,7 +80,7 @@ try{
|
||||
'imageTransparent' => false,
|
||||
]);
|
||||
|
||||
$qrcode = (new QRCode($options))->render($_POST['inputstring']);
|
||||
$qrcode = new QRCode($options)->render($_POST['inputstring']);
|
||||
|
||||
if(in_array($_POST['output_type'], ['png', 'jpg', 'gif', 'svg'], true)){
|
||||
$qrcode = '<img alt="qrcode" src="'.$qrcode.'" />';
|
||||
|
||||
Reference in New Issue
Block a user