From 23d96e83a6cc5dc44b858d405fa8532167510c8c Mon Sep 17 00:00:00 2001 From: Formatter Bot Date: Mon, 8 Feb 2021 22:02:22 +0000 Subject: [PATCH] Automated formatting changes --- Controller/ApiController.php | 2 +- Controller/BackendController.php | 24 ++++++++++++------------ Theme/Backend/client-profile.tpl.php | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 39f99ab..45c5f58 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -18,9 +18,9 @@ use Modules\Admin\Models\Account; use Modules\Admin\Models\Address; use Modules\ClientManagement\Models\Client; use Modules\ClientManagement\Models\ClientMapper; +use Modules\Media\Models\PathSettings; use Modules\Profile\Models\ContactElementMapper; use Modules\Profile\Models\Profile; -use Modules\Media\Models\PathSettings; use phpOMS\Message\Http\RequestStatusCode; use phpOMS\Message\NotificationLevel; use phpOMS\Message\RequestAbstract; diff --git a/Controller/BackendController.php b/Controller/BackendController.php index f884acf..d73c613 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -14,16 +14,16 @@ declare(strict_types=1); namespace Modules\ClientManagement\Controller; +use Modules\Billing\Models\BillMapper; +use Modules\Billing\Models\BillTypeL11n; use Modules\ClientManagement\Models\ClientMapper; use phpOMS\Asset\AssetType; use phpOMS\Contract\RenderableInterface; +use phpOMS\Localization\Money; use phpOMS\Message\RequestAbstract; use phpOMS\Message\ResponseAbstract; -use phpOMS\Views\View; -use Modules\Billing\Models\BillMapper; use phpOMS\Stdlib\Base\SmartDateTime; -use phpOMS\Localization\Money; -use Modules\Billing\Models\BillTypeL11n; +use phpOMS\Views\View; /** * ClientManagement class. @@ -108,16 +108,16 @@ final class BackendController extends Controller // stats if ($this->app->moduleManager->isActive('Billing')) { - $ytd = BillMapper::getSalesByClientId($client->getId(), new SmartDateTime('Y-01-01'), new SmartDateTime('now')); - $mtd = BillMapper::getSalesByClientId($client->getId(), new SmartDateTime('Y-m-01'), new SmartDateTime('now')); - $lastOrder = BillMapper::getLastOrderDateByClientId($client->getId()); - $newestInvoices = BillMapper::withConditional('language', $response->getLanguage(), [BillTypeL11n::class])::getNewestClientInvoices($client->getId(), 5); + $ytd = BillMapper::getSalesByClientId($client->getId(), new SmartDateTime('Y-01-01'), new SmartDateTime('now')); + $mtd = BillMapper::getSalesByClientId($client->getId(), new SmartDateTime('Y-m-01'), new SmartDateTime('now')); + $lastOrder = BillMapper::getLastOrderDateByClientId($client->getId()); + $newestInvoices = BillMapper::withConditional('language', $response->getLanguage(), [BillTypeL11n::class])::getNewestClientInvoices($client->getId(), 5); $monthlySalesCosts = BillMapper::getClientMonthlySalesCosts($client->getId(), (new SmartDateTime('now'))->createModify(-1), new SmartDateTime('now')); } else { - $ytd = new Money(); - $mtd = new Money(); - $lastOrder = null; - $newestInvoices = []; + $ytd = new Money(); + $mtd = new Money(); + $lastOrder = null; + $newestInvoices = []; $monthlySalesCosts = []; } diff --git a/Theme/Backend/client-profile.tpl.php b/Theme/Backend/client-profile.tpl.php index 61f308b..36681e2 100644 --- a/Theme/Backend/client-profile.tpl.php +++ b/Theme/Backend/client-profile.tpl.php @@ -23,7 +23,7 @@ $countries = \phpOMS\Localization\ISO3166NameEnum::getConstants(); */ $client = $this->getData('client'); -$newestInvoices = $this->getData('newestInvoices') ?? []; +$newestInvoices = $this->getData('newestInvoices') ?? []; $monthlySalesCosts = $this->getData('monthlySalesCosts') ?? []; /**