@@ -9,9 +9,9 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | class User extends ActiveRecordModel |
| 11 | 11 | { |
| 12 | - /** |
|
| 13 | - * @var string $tableName name of the database table. |
|
| 14 | - */ |
|
| 12 | + /** |
|
| 13 | + * @var string $tableName name of the database table. |
|
| 14 | + */ |
|
| 15 | 15 | protected $tableName = "User"; |
| 16 | 16 | |
| 17 | 17 | /** Variables |
@@ -42,9 +42,9 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * Method |
|
| 47 | - */ |
|
| 45 | + /** |
|
| 46 | + * Method |
|
| 47 | + */ |
|
| 48 | 48 | public function setSession($id) |
| 49 | 49 | { |
| 50 | 50 | session_destroy(); |
@@ -52,26 +52,26 @@ discard block |
||
| 52 | 52 | $_SESSION['user_id'] = $id; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - /** |
|
| 56 | - * Method |
|
| 57 | - */ |
|
| 55 | + /** |
|
| 56 | + * Method |
|
| 57 | + */ |
|
| 58 | 58 | public function getSession() |
| 59 | 59 | { |
| 60 | 60 | return $_SESSION['user_id']; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Method |
|
| 65 | - */ |
|
| 63 | + /** |
|
| 64 | + * Method |
|
| 65 | + */ |
|
| 66 | 66 | public function logoutSession() |
| 67 | 67 | { |
| 68 | 68 | session_destroy(); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | |
| 72 | - /** |
|
| 73 | - * Method |
|
| 74 | - */ |
|
| 72 | + /** |
|
| 73 | + * Method |
|
| 74 | + */ |
|
| 75 | 75 | public function checkAvatar($avatar) |
| 76 | 76 | { |
| 77 | 77 | if ($avatar == null || $avatar == "") { |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * Method |
|
| 72 | - */ |
|
| 71 | + * Method |
|
| 72 | + */ |
|
| 73 | 73 | public function getItemDetails($id) : object |
| 74 | 74 | { |
| 75 | 75 | $user = new User(); |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * Method |
|
| 85 | - */ |
|
| 84 | + * Method |
|
| 85 | + */ |
|
| 86 | 86 | public function callbackSubmit() : bool |
| 87 | 87 | { |
| 88 | 88 | $question = new User(); |
@@ -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) |
@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | public $user_id; |
| 28 | 28 | |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * Method |
|
| 32 | - */ |
|
| 30 | + /** |
|
| 31 | + * Method |
|
| 32 | + */ |
|
| 33 | 33 | public function getLastThree($obj) |
| 34 | 34 | { |
| 35 | 35 | $array = array(); |
@@ -41,9 +41,9 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | |
| 44 | - /** |
|
| 45 | - * Method |
|
| 46 | - */ |
|
| 44 | + /** |
|
| 45 | + * Method |
|
| 46 | + */ |
|
| 47 | 47 | public function getMostTags($obj) |
| 48 | 48 | { |
| 49 | 49 | $facebook = 0; |
@@ -65,9 +65,9 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * Method |
|
| 70 | - */ |
|
| 68 | + /** |
|
| 69 | + * Method |
|
| 70 | + */ |
|
| 71 | 71 | public function getMostActive($questions, $answers, $comments) |
| 72 | 72 | { |
| 73 | 73 | $array = array(); |