From 14e85dc1ca522be405eeedafdb9fee2ec8f1578b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 15 Mar 2024 20:24:38 +0000 Subject: [PATCH] code fixes --- Admin/Installer.php | 4 ++-- Controller/ApiController.php | 2 +- Models/Loan.php | 11 ++++++++--- Theme/Backend/Lang/en.lang.php | 2 +- Theme/Backend/loan-list.tpl.php | 1 - 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 3af72e3..96f996b 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -16,10 +16,10 @@ namespace Modules\LoanManagement\Admin; use phpOMS\Application\ApplicationAbstract; use phpOMS\Config\SettingsInterface; -use phpOMS\Module\InstallerAbstract; -use phpOMS\Module\ModuleInfo; use phpOMS\Message\Http\HttpRequest; use phpOMS\Message\Http\HttpResponse; +use phpOMS\Module\InstallerAbstract; +use phpOMS\Module\ModuleInfo; /** * Installer class. diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 92e6a3a..f1df4dc 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -218,4 +218,4 @@ final class ApiController extends Controller return $costL11n; } -} \ No newline at end of file +} diff --git a/Models/Loan.php b/Models/Loan.php index 76fb58a..caa7c76 100755 --- a/Models/Loan.php +++ b/Models/Loan.php @@ -97,11 +97,16 @@ class Loan public bool $hasManualTaxAmounts = false; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->loanProvider = new NullSupplier(); - $this->start = new \DateTime(); - $this->end = $this->start->modify('+1 year'); - $this->payout = $this->start; + $this->start = new \DateTime(); + $this->end = $this->start->modify('+1 year'); + $this->payout = $this->start; } } diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index eea00cc..db90f50 100755 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -13,5 +13,5 @@ declare(strict_types=1); return ['LoanManagement' => [ - 'Loans' => 'Loans' + 'Loans' => 'Loans', ]]; diff --git a/Theme/Backend/loan-list.tpl.php b/Theme/Backend/loan-list.tpl.php index ca2fa28..ba439b3 100755 --- a/Theme/Backend/loan-list.tpl.php +++ b/Theme/Backend/loan-list.tpl.php @@ -13,4 +13,3 @@ declare(strict_types=1); echo $this->data['nav']->render(); -?> \ No newline at end of file