@@ -22,7 +22,6 @@ |
||
| 22 | 22 | * @param string $message with details. |
| 23 | 23 | * |
| 24 | 24 | * @throws Anax\Route\Exception\NotFoundException |
| 25 | - |
|
| 26 | 25 | * @return object as the response. |
| 27 | 26 | */ |
| 28 | 27 | public function catchAll(...$args) : object |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | * @param array $args as a variadic to catch all arguments. |
| 22 | 22 | * |
| 23 | 23 | * @throws Anax\Route\Exception\NotFoundException when route is not found. |
| 24 | - |
|
| 25 | 24 | * @return object as the response. |
| 26 | 25 | * |
| 27 | 26 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
@@ -33,26 +33,26 @@ |
||
| 33 | 33 | public $deleted; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * Set the password. |
|
| 37 | - * |
|
| 38 | - * @param string $password the password to use. |
|
| 39 | - * |
|
| 40 | - * @return void |
|
| 41 | - */ |
|
| 36 | + * Set the password. |
|
| 37 | + * |
|
| 38 | + * @param string $password the password to use. |
|
| 39 | + * |
|
| 40 | + * @return void |
|
| 41 | + */ |
|
| 42 | 42 | public function setPassword($password) |
| 43 | 43 | { |
| 44 | 44 | $this->password = password_hash($password, PASSWORD_DEFAULT); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * Verify the acronym and the password, if successful the object contains |
|
| 49 | - * all details from the database row. |
|
| 50 | - * |
|
| 51 | - * @param string $acronym acronym to check. |
|
| 52 | - * @param string $password the password to use. |
|
| 53 | - * |
|
| 54 | - * @return boolean true if acronym and password matches, else false. |
|
| 55 | - */ |
|
| 48 | + * Verify the acronym and the password, if successful the object contains |
|
| 49 | + * all details from the database row. |
|
| 50 | + * |
|
| 51 | + * @param string $acronym acronym to check. |
|
| 52 | + * @param string $password the password to use. |
|
| 53 | + * |
|
| 54 | + * @return boolean true if acronym and password matches, else false. |
|
| 55 | + */ |
|
| 56 | 56 | public function verifyPassword($acronym, $password) |
| 57 | 57 | { |
| 58 | 58 | $this->find("username", $acronym); |
@@ -195,8 +195,8 @@ |
||
| 195 | 195 | } |
| 196 | 196 | $page->add("post/show", |
| 197 | 197 | ["post" => $posts[0], |
| 198 | - "postscore" => $postscore[0]->postscore?:0, |
|
| 199 | - "totalanswer" => $answer[0]->totalanswer?:0, |
|
| 198 | + "postscore" => $postscore[0]->postscore?:0, |
|
| 199 | + "totalanswer" => $answer[0]->totalanswer?:0, |
|
| 200 | 200 | "answers" => $answers, |
| 201 | 201 | "comments0" => $comments0, |
| 202 | 202 | "isOwner" => $isOwner, |