code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 20:24:38 +00:00
parent 53ac925bfa
commit 14e85dc1ca
5 changed files with 12 additions and 8 deletions

View File

@ -16,10 +16,10 @@ namespace Modules\LoanManagement\Admin;
use phpOMS\Application\ApplicationAbstract; use phpOMS\Application\ApplicationAbstract;
use phpOMS\Config\SettingsInterface; use phpOMS\Config\SettingsInterface;
use phpOMS\Module\InstallerAbstract;
use phpOMS\Module\ModuleInfo;
use phpOMS\Message\Http\HttpRequest; use phpOMS\Message\Http\HttpRequest;
use phpOMS\Message\Http\HttpResponse; use phpOMS\Message\Http\HttpResponse;
use phpOMS\Module\InstallerAbstract;
use phpOMS\Module\ModuleInfo;
/** /**
* Installer class. * Installer class.

View File

@ -97,11 +97,16 @@ class Loan
public bool $hasManualTaxAmounts = false; public bool $hasManualTaxAmounts = false;
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct() public function __construct()
{ {
$this->loanProvider = new NullSupplier(); $this->loanProvider = new NullSupplier();
$this->start = new \DateTime(); $this->start = new \DateTime();
$this->end = $this->start->modify('+1 year'); $this->end = $this->start->modify('+1 year');
$this->payout = $this->start; $this->payout = $this->start;
} }
} }

View File

@ -13,5 +13,5 @@
declare(strict_types=1); declare(strict_types=1);
return ['LoanManagement' => [ return ['LoanManagement' => [
'Loans' => 'Loans' 'Loans' => 'Loans',
]]; ]];

View File

@ -13,4 +13,3 @@
declare(strict_types=1); declare(strict_types=1);
echo $this->data['nav']->render(); echo $this->data['nav']->render();
?>