Remove space from end of line

This commit is contained in:
Dennis Eichhorn 2018-02-03 11:52:30 +01:00
parent 17025cbd99
commit a2e4675f69
2 changed files with 11 additions and 11 deletions

View File

@ -69,7 +69,7 @@ class Project
private $tasks = []; private $tasks = [];
public function __construct(string $name = '') public function __construct(string $name = '')
{ {
$this->start = new \DateTime('now'); $this->start = new \DateTime('now');
$this->end = new \DateTime('now'); $this->end = new \DateTime('now');
@ -85,7 +85,7 @@ class Project
$this->setName($name); $this->setName($name);
} }
public function getId() : int public function getId() : int
{ {
return $this->id; return $this->id;
} }
@ -150,7 +150,7 @@ class Project
return $this->tasks; return $this->tasks;
} }
public function countTasks() : int public function countTasks() : int
{ {
return count($this->tasks); return count($this->tasks);
} }
@ -191,7 +191,7 @@ class Project
$this->calendar->setName($name); $this->calendar->setName($name);
} }
public function getDescription() : string public function getDescription() : string
{ {
return $this->description; return $this->description;
} }
@ -201,32 +201,32 @@ class Project
$this->description = $description; $this->description = $description;
} }
public function getCosts() : Money public function getCosts() : Money
{ {
return $this->costs; return $this->costs;
} }
public function getBudget() : Money public function getBudget() : Money
{ {
return $this->budget; return $this->budget;
} }
public function getEarnings() : Money public function getEarnings() : Money
{ {
return $this->earnings; return $this->earnings;
} }
public function setCosts(Money $costs) public function setCosts(Money $costs)
{ {
$this->costs = $costs; $this->costs = $costs;
} }
public function setBudget(Money $budget) public function setBudget(Money $budget)
{ {
$this->budget = $budget; $this->budget = $budget;
} }
public function setEarnings(Money $earnings) public function setEarnings(Money $earnings)
{ {
$this->earnings = $earnings; $this->earnings = $earnings;
} }

View File

@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
<tr> <tr>
<td colspan="5"> <td colspan="5">
<tbody> <tbody>
<?php $count = 0; foreach ($list as $key => $value) : $count++; <?php $count = 0; foreach ($list as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/projectmanagement/profile?{?}&id=' . $value->getId());?> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/projectmanagement/profile?{?}&id=' . $value->getId());?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>