aboutsummaryrefslogtreecommitdiff
path: root/app/class/Modelauthtoken.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/Modelauthtoken.php
parent74e2b3fdd66bfbe99bae771fa3a0b6c427fc0f86 (diff)
downloadwcms-802f5135b0979bab3bf30ae1733f9867e2caed7a.tar.gz
wcms-802f5135b0979bab3bf30ae1733f9867e2caed7a.zip
apply psr12
Diffstat (limited to 'app/class/Modelauthtoken.php')
-rw-r--r--app/class/Modelauthtoken.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/app/class/Modelauthtoken.php b/app/class/Modelauthtoken.php
index 91a2a05..4536de6 100644
--- a/app/class/Modelauthtoken.php
+++ b/app/class/Modelauthtoken.php
@@ -8,8 +8,8 @@ use JamesMoss\Flywheel\Document;
class Modelauthtoken extends Modeldb
{
- const AUTHTOKEN_REPO_NAME = 'authtoken';
- const AUTHTOKEN_ID_LENGTH = 30;
+ protected const AUTHTOKEN_REPO_NAME = 'authtoken';
+ protected const AUTHTOKEN_ID_LENGTH = 30;
public function __construct()
{
@@ -19,7 +19,7 @@ class Modelauthtoken extends Modeldb
/**
* Add a Token in the database according to the Users datas
- *
+ *
* @param User $user
*/
public function add(User $user)
@@ -41,7 +41,6 @@ class Modelauthtoken extends Modeldb
$tokendata->setId($id);
return $this->repo->store($tokendata);
-
}
public function getbytoken(string $token)
@@ -61,12 +60,4 @@ class Modelauthtoken extends Modeldb
{
return $this->repo->query()->where('user', '==', $id)->orderBy('date')->execute();
}
-
}
-
-
-
-
-
-
-?> \ No newline at end of file