aboutsummaryrefslogtreecommitdiff
path: root/app/class/Route.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-17 19:01:05 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-17 19:01:05 +0200
commit802f5135b0979bab3bf30ae1733f9867e2caed7a (patch)
tree3575cb7dd353e7f1ce74b079aa1559b5d69054bf /app/class/Route.php
parent74e2b3fdd66bfbe99bae771fa3a0b6c427fc0f86 (diff)
downloadwcms-802f5135b0979bab3bf30ae1733f9867e2caed7a.tar.gz
wcms-802f5135b0979bab3bf30ae1733f9867e2caed7a.zip
apply psr12
Diffstat (limited to 'app/class/Route.php')
-rw-r--r--app/class/Route.php12
1 files changed, 3 insertions, 9 deletions
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