mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-19 02:20:05 +00:00
:octocat: fix PHPCS config, add Slevomat rules
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ $options->moduleValues = [
|
||||
|
||||
$out = (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ', __DIR__.'/qrcode.eps');
|
||||
|
||||
if(php_sapi_name() !== 'cli'){
|
||||
if(PHP_SAPI !== 'cli'){
|
||||
// if viewed in the browser, we should push it as file download as EPS isn't usually supported
|
||||
header('Content-type: application/postscript');
|
||||
header('Content-Disposition: filename="qrcode.eps"');
|
||||
|
||||
Reference in New Issue
Block a user