Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2020-08-21 22:43:37 +02:00
parent 6caf605fe2
commit e01b06fb85
80 changed files with 173 additions and 218 deletions

View file

@ -29,7 +29,7 @@ class BarcodeExtension extends AbstractExtension
public function getFilters()
{
return [
new TwigFilter('barcodeSVG', function (string $content, string $type = 'QRCODE') {
new TwigFilter('barcodeSVG', static function (string $content, string $type = 'QRCODE') {
$barcodeFactory = new Barcode();
$barcode = $barcodeFactory->getBarcodeObj($type, $content);