diff options
author | Mario <mario@mariovavti.com> | 2024-03-14 10:13:22 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-14 10:13:22 +0000 |
commit | 55097c47c5534d4453f7494f8a1542f7beb4d588 (patch) | |
tree | 399f81bbd03fcb4bb713339d06512eee962ec8f6 /vendor/chillerlan/php-qrcode/src/Output | |
parent | 97b82fc77b424d051b2a472ab2318fd768151bdd (diff) | |
download | volse-hubzilla-55097c47c5534d4453f7494f8a1542f7beb4d588.tar.gz volse-hubzilla-55097c47c5534d4453f7494f8a1542f7beb4d588.tar.bz2 volse-hubzilla-55097c47c5534d4453f7494f8a1542f7beb4d588.zip |
Revert "composer update and use the fixed streams php-jcs library until the floats issue will be fixed upstream. see here for reference https://codeberg.org/streams/streams/issues/151"
This reverts commit 6bf61dfa6b585db01b607a79bd64ec9c583a9c10.
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Output')
3 files changed, 25 insertions, 31 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Output/QRMarkup.php b/vendor/chillerlan/php-qrcode/src/Output/QRMarkup.php index 53120ec6f..06d6e88cb 100644 --- a/vendor/chillerlan/php-qrcode/src/Output/QRMarkup.php +++ b/vendor/chillerlan/php-qrcode/src/Output/QRMarkup.php @@ -74,11 +74,9 @@ class QRMarkup extends QROutputAbstract{ $html .= '</div>'.$this->options->eol; if($file !== null){ - /** @noinspection HtmlRequiredLangAttribute */ - return sprintf( - '<!DOCTYPE html><html><head><meta charset="UTF-8"><title>QR Code</title></head><body>%s</body></html>', - $this->options->eol.$html - ); + return '<!DOCTYPE html>'. + '<head><meta charset="UTF-8"><title>QR Code</title></head>'. + '<body>'.$this->options->eol.$html.'</body>'; } return $html; diff --git a/vendor/chillerlan/php-qrcode/src/Output/QROutputAbstract.php b/vendor/chillerlan/php-qrcode/src/Output/QROutputAbstract.php index 6165e1cc7..d4ed3d0c9 100644 --- a/vendor/chillerlan/php-qrcode/src/Output/QROutputAbstract.php +++ b/vendor/chillerlan/php-qrcode/src/Output/QROutputAbstract.php @@ -12,8 +12,7 @@ namespace chillerlan\QRCode\Output; -use chillerlan\QRCode\QRCode; -use chillerlan\QRCode\Data\QRMatrix; +use chillerlan\QRCode\{Data\QRMatrix, QRCode}; use chillerlan\Settings\SettingsContainerInterface; use function call_user_func_array, dirname, file_put_contents, get_called_class, in_array, is_writable, sprintf; diff --git a/vendor/chillerlan/php-qrcode/src/Output/QROutputInterface.php b/vendor/chillerlan/php-qrcode/src/Output/QROutputInterface.php index b492c27a1..b07b8e7a5 100644 --- a/vendor/chillerlan/php-qrcode/src/Output/QROutputInterface.php +++ b/vendor/chillerlan/php-qrcode/src/Output/QROutputInterface.php @@ -19,32 +19,29 @@ use chillerlan\QRCode\Data\QRMatrix; */ interface QROutputInterface{ - public const DEFAULT_MODULE_VALUES = [ + const DEFAULT_MODULE_VALUES = [ // light - QRMatrix::M_NULL => false, - QRMatrix::M_DARKMODULE_LIGHT => false, - QRMatrix::M_DATA => false, - QRMatrix::M_FINDER => false, - QRMatrix::M_SEPARATOR => false, - QRMatrix::M_ALIGNMENT => false, - QRMatrix::M_TIMING => false, - QRMatrix::M_FORMAT => false, - QRMatrix::M_VERSION => false, - QRMatrix::M_QUIETZONE => false, - QRMatrix::M_LOGO => false, - QRMatrix::M_FINDER_DOT_LIGHT => false, + QRMatrix::M_NULL => false, // 0 + QRMatrix::M_DATA => false, // 4 + QRMatrix::M_FINDER => false, // 6 + QRMatrix::M_SEPARATOR => false, // 8 + QRMatrix::M_ALIGNMENT => false, // 10 + QRMatrix::M_TIMING => false, // 12 + QRMatrix::M_FORMAT => false, // 14 + QRMatrix::M_VERSION => false, // 16 + QRMatrix::M_QUIETZONE => false, // 18 + QRMatrix::M_LOGO => false, // 20 + QRMatrix::M_TEST => false, // 255 // dark - QRMatrix::M_DARKMODULE => true, - QRMatrix::M_DATA_DARK => true, - QRMatrix::M_FINDER_DARK => true, - QRMatrix::M_SEPARATOR_DARK => true, - QRMatrix::M_ALIGNMENT_DARK => true, - QRMatrix::M_TIMING_DARK => true, - QRMatrix::M_FORMAT_DARK => true, - QRMatrix::M_VERSION_DARK => true, - QRMatrix::M_QUIETZONE_DARK => true, - QRMatrix::M_LOGO_DARK => true, - QRMatrix::M_FINDER_DOT => true, + QRMatrix::M_DARKMODULE << 8 => true, // 512 + QRMatrix::M_DATA << 8 => true, // 1024 + QRMatrix::M_FINDER << 8 => true, // 1536 + QRMatrix::M_ALIGNMENT << 8 => true, // 2560 + QRMatrix::M_TIMING << 8 => true, // 3072 + QRMatrix::M_FORMAT << 8 => true, // 3584 + QRMatrix::M_VERSION << 8 => true, // 4096 + QRMatrix::M_FINDER_DOT << 8 => true, // 5632 + QRMatrix::M_TEST << 8 => true, // 65280 ]; /** |