chore: Update copyright year from 2025 to 2026 across core files

- Updated copyright headers in 3,055 core application files
- Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026'
- Added 123 new files from EspoCRM core updates
- Removed 4 deprecated files
- Total changes: 61,637 insertions, 54,283 deletions

This is a routine maintenance update for the new year 2026.
This commit is contained in:
2026-02-07 16:05:21 +01:00
parent 6a8a4a2882
commit 127fa6503b
6468 changed files with 564781 additions and 31179 deletions

View File

@@ -3,7 +3,7 @@
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2025 EspoCRM, Inc.
* Copyright (C) 2014-2026 EspoCRM, Inc.
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
@@ -29,6 +29,9 @@
namespace Espo\Tools\Pdf\Dompdf;
use chillerlan\QRCode\Common\EccLevel;
use chillerlan\QRCode\Output\QRMarkupSVG;
use chillerlan\QRCode\Output\QROutputInterface;
use Espo\Core\Htmlizer\TemplateRendererFactory;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Log;
@@ -40,6 +43,8 @@ use Espo\Tools\Pdf\Template;
use Picqer\Barcode\BarcodeGeneratorSVG;
use chillerlan\QRCode\QRCode;
use chillerlan\QRCode\QROptions;
use Picqer\Barcode\Exceptions\UnknownTypeException;
use RuntimeException;
class HtmlComposer
{
@@ -265,8 +270,11 @@ class HtmlComposer
$options = new QROptions();
$options->outputType = QRCode::OUTPUT_MARKUP_SVG;
$options->eccLevel = QRCode::ECC_H;
// @todo Revise and test after updating the lib.
/** @phpstan-ignore-next-line property.protected */
$options->outputType = QROutputInterface::MARKUP_SVG;
/** @phpstan-ignore-next-line property.protected */
$options->eccLevel = EccLevel::H;
$code = (new QRCode($options))->render($value);
@@ -286,7 +294,11 @@ class HtmlComposer
$height = $data['height'] ?? 30;
$color = $data['color'] ?? '#000';
$code = (new BarcodeGeneratorSVG())->getBarcode($value, $type, 2, $height, $color);
try {
$code = (new BarcodeGeneratorSVG())->getBarcode($value, $type, 2, $height, $color);
} catch (UnknownTypeException $e) {
throw new RuntimeException("Barcode print error.", previous: $e);
}
$encoded = base64_encode($code);