From 4f6152f93eedf59a5e56fb561c171274dd5db7d2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 3 Feb 2018 13:09:09 +0100 Subject: [PATCH] phpcbf --- Admin/Update.php | 1 - Models/ProgressType.php | 8 ++++---- Models/Project.php | 9 +++++---- Models/ProjectMapper.php | 1 - 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Admin/Update.php b/Admin/Update.php index 302028f..13fc6ae 100644 --- a/Admin/Update.php +++ b/Admin/Update.php @@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract; use phpOMS\System\File\Directory; use phpOMS\Module\InfoManager; - /** * Navigation class. * diff --git a/Models/ProgressType.php b/Models/ProgressType.php index d99b831..e7c4609 100644 --- a/Models/ProgressType.php +++ b/Models/ProgressType.php @@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum; */ abstract class ProgressType extends Enum { - /* public */ const MANUAL = 0; - /* public */ const LINEAR = 1; + /* public */ const MANUAL = 0; + /* public */ const LINEAR = 1; /* public */ const EXPONENTIAL = 2; - /* public */ const LOG = 3; - /* public */ const TASKS = 4; + /* public */ const LOG = 3; + /* public */ const TASKS = 4; } diff --git a/Models/Project.php b/Models/Project.php index 4ed3e9e..8a2642f 100644 --- a/Models/Project.php +++ b/Models/Project.php @@ -13,6 +13,7 @@ declare(strict_types = 1); namespace Modules\ProjectManagement\Models; + use Modules\Calendar\Models\Calendar; use Modules\Tasks\Models\Task; use phpOMS\Localization\Money; @@ -72,14 +73,14 @@ class Project public function __construct(string $name = '') { $this->start = new \DateTime('now'); - $this->end = new \DateTime('now'); + $this->end = new \DateTime('now'); $this->end->modify('+1 month'); $this->createdAt = new \DateTime('now'); $this->calendar = new Calendar(); - $this->costs = new Money(); - $this->budget = new Money(); + $this->costs = new Money(); + $this->budget = new Money(); $this->earnings = new Money(); $this->setName($name); @@ -260,4 +261,4 @@ class Project { $this->createdBy = $createdBy; } -} \ No newline at end of file +} diff --git a/Models/ProjectMapper.php b/Models/ProjectMapper.php index 54bb6cf..9c1f5cf 100644 --- a/Models/ProjectMapper.php +++ b/Models/ProjectMapper.php @@ -112,5 +112,4 @@ class ProjectMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $primaryField = 'projectmanagement_project_id'; - }