:octocat: PHPCS: add Slevomat standard

This commit is contained in:
smiley
2024-07-22 14:29:50 +02:00
parent c4ed672a84
commit fc47c7b40f
8 changed files with 124 additions and 7 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ try{
$moduleValues = array_map(function($v){
if(preg_match('/[a-f\d]{6}/i', $v) === 1){
return in_array($_POST['output_type'], ['png', 'jpg', 'gif'])
return in_array($_POST['output_type'], ['png', 'jpg', 'gif'], true)
? array_map('hexdec', str_split($v, 2))
: '#'.$v ;
}
@@ -73,7 +73,7 @@ try{
$qrcode = (new QRCode($options))->render($_POST['inputstring']);
if(in_array($_POST['output_type'], ['png', 'jpg', 'gif', 'svg'])){
if(in_array($_POST['output_type'], ['png', 'jpg', 'gif', 'svg'], true)){
$qrcode = '<img alt="qrcode" src="'.$qrcode.'" />';
}
elseif($_POST['output_type'] === 'text'){