From 802f5135b0979bab3bf30ae1733f9867e2caed7a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 17 Apr 2020 19:01:05 +0200 Subject: apply psr12 --- app/class/Route.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'app/class/Route.php') diff --git a/app/class/Route.php b/app/class/Route.php index 32dfaf5..79379aa 100644 --- a/app/class/Route.php +++ b/app/class/Route.php @@ -9,7 +9,7 @@ class Route extends Item protected $action = null; protected $redirect = null; - const AFF = ['read', 'edit', 'admin', 'media']; + public const AFF = ['read', 'edit', 'admin', 'media']; public function __construct($vars) { @@ -23,7 +23,7 @@ class Route extends Item $array[] = 'page'; } if (!empty($this->aff)) { - $array[] = 'aff='.$this->aff; + $array[] = 'aff=' . $this->aff; } if (!empty($this->action)) { $array[] = 'action=' . $this->action; @@ -36,7 +36,7 @@ class Route extends Item return $array; } - function tostring() + public function tostring() { return implode(' ', $this->toarray()); } @@ -51,7 +51,6 @@ class Route extends Item public function setaff($aff) { $this->aff = $aff; - } public function setaction($action) @@ -69,8 +68,3 @@ class Route extends Item return $this->id; } } - - - - -?> \ No newline at end of file -- cgit v1.2.3