From 22d760a0af2828933f14e24be121f225a126d20f Mon Sep 17 00:00:00 2001 From: Erik Thuning <boooink@gmail.com> Date: Wed, 27 Jul 2022 10:48:53 +0200 Subject: [PATCH] Whitespace cleanup --- include/Page.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/Page.php b/include/Page.php index 1d2607e..4d97158 100644 --- a/include/Page.php +++ b/include/Page.php @@ -1,7 +1,7 @@ <?php abstract class Page extends Responder { protected abstract function render_body(); - + protected $page = 'checkout'; protected $title = "DSV Utlåning"; protected $subtitle = ''; @@ -15,11 +15,11 @@ abstract class Page extends Responder { 'history' => 'Historik', 'search' => 'Sök'); private $template_parts = array(); - + public function __construct() { parent::__construct(); $this->template_parts = get_fragments('./html/base.html'); - + if(isset($_GET['page'])) { $this->page = $_GET['page']; } @@ -27,7 +27,7 @@ abstract class Page extends Responder { $this->subtitle = $this->menuitems[$this->page]; } } - + public function render() { $this->render_head(); $this->render_body(); @@ -36,7 +36,7 @@ abstract class Page extends Responder { } $this->render_foot(); } - + final private function render_head() { $headtitle = $this->title; $pagetitle = $this->title; @@ -83,7 +83,7 @@ abstract class Page extends Responder { 'message' => $this->error), $this->fragments['message'])); } - + final private function render_foot() { print($this->template_parts['foot']); }