From f718e441dacb3d3a397da042d06369329276b124 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Wed, 24 Apr 2024 15:27:10 +0200 Subject: [PATCH] refactor: code style phpcbf --- src/QUI/ERP/Discount/Discount.php | 1 - src/QUI/ERP/Discount/Handler.php | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/QUI/ERP/Discount/Discount.php b/src/QUI/ERP/Discount/Discount.php index 92a6496..2715d73 100644 --- a/src/QUI/ERP/Discount/Discount.php +++ b/src/QUI/ERP/Discount/Discount.php @@ -11,7 +11,6 @@ use QUI\Users\User; use QUI\Permissions\Permission; use QUI\Utils\Security\Orthos; - use QUI\ERP\Areas\Utils as AreaUtils; /** diff --git a/src/QUI/ERP/Discount/Handler.php b/src/QUI/ERP/Discount/Handler.php index b706918..bde72a9 100644 --- a/src/QUI/ERP/Discount/Handler.php +++ b/src/QUI/ERP/Discount/Handler.php @@ -22,7 +22,7 @@ class Handler extends QUI\CRUD\Factory const DISCOUNT_TYPE_PERCENT = 1; /** - * discount type -> crrency + * discount type -> currency */ const DISCOUNT_TYPE_CURRENCY = 2; @@ -130,7 +130,7 @@ public function __construct() // create new translation var for the discount $this->Events->addEvent('onCreateEnd', function ($New, $data) { /* @var $New QUI\ERP\Discount\Discount */ - $newVar = 'discount.'.$New->getId().'.title'; + $newVar = 'discount.' . $New->getId() . '.title'; $current = QUI::getLocale()->getCurrent(); $title = $New->getAttribute('title'); @@ -146,9 +146,9 @@ public function __construct() try { QUI\Translator::addUserVar('quiqqer/discount', $newVar, [ - $current => $title, + $current => $title, 'datatype' => 'php,js', - 'package' => 'quiqqer/discount' + 'package' => 'quiqqer/discount' ]); } catch (QUI\Exception $Exception) { QUI::getMessagesHandler()->addAttention( -- GitLab