diff --git a/Controller.php b/Controller.php index 66902a9..245af50 100644 --- a/Controller.php +++ b/Controller.php @@ -123,7 +123,7 @@ class Controller extends ModuleAbstract implements WebInterface /** @var Head $head */ $head = $response->get('Content')->getData('head'); $head->addAsset(AssetType::CSS, '/Modules/Calendar/Theme/Backend/css/styles.css'); - + $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Marketing/Theme/Backend/promotion-profile'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001902001, $request, $response)); diff --git a/Models/Promotion.php b/Models/Promotion.php index eb49247..f54943b 100644 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -65,7 +65,7 @@ class Promotion private $tasks = []; - public function __construct(string $name = '') + public function __construct(string $name = '') { $this->start = new \DateTime('now'); $this->end = new \DateTime('now'); @@ -81,7 +81,7 @@ class Promotion $this->setName($name); } - public function getId() : int + public function getId() : int { return $this->id; } @@ -126,7 +126,7 @@ class Promotion return $this->tasks; } - public function countTasks() : int + public function countTasks() : int { return count($this->tasks); } @@ -167,7 +167,7 @@ class Promotion $this->calendar->setName($name); } - public function getDescription() : string + public function getDescription() : string { return $this->description; } @@ -177,32 +177,32 @@ class Promotion $this->description = $description; } - public function getCosts() : Money + public function getCosts() : Money { return $this->costs; } - public function getBudget() : Money + public function getBudget() : Money { return $this->budget; } - public function getEarnings() : Money + public function getEarnings() : Money { return $this->earnings; } - public function setCosts(Money $costs) + public function setCosts(Money $costs) { $this->costs = $costs; } - public function setBudget(Money $budget) + public function setBudget(Money $budget) { $this->budget = $budget; } - public function setEarnings(Money $earnings) + public function setEarnings(Money $earnings) { $this->earnings = $earnings; } diff --git a/Theme/Backend/promotion-list.tpl.php b/Theme/Backend/promotion-list.tpl.php index bf9e0a1..8822bb3 100644 --- a/Theme/Backend/promotion-list.tpl.php +++ b/Theme/Backend/promotion-list.tpl.php @@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?> - $value) : $count++; + $value) : $count++; $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/marketing/promotion/profile?{?}&id=' . $value->getId());?> printHtml($value->getName()); ?>