@@ -81,7 +81,7 @@ |
||
| 81 | 81 | /** |
| 82 | 82 | * view a user |
| 83 | 83 | * |
| 84 | - * @param integer|string $userId |
|
| 84 | + * @param integer $userId |
|
| 85 | 85 | */ |
| 86 | 86 | public function viewUser($userId = 0){ |
| 87 | 87 | |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | /** |
| 57 | 57 | * view a post |
| 58 | 58 | * |
| 59 | - * @param integer|string $postId |
|
| 59 | + * @param integer $postId |
|
| 60 | 60 | */ |
| 61 | 61 | public function view($postId = 0){ |
| 62 | 62 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Gets a configuration value |
| 22 | 22 | * |
| 23 | - * @param $key string |
|
| 23 | + * @param string $key string |
|
| 24 | 24 | * @return string|null |
| 25 | 25 | * @throws Exception if configuration file doesn't exist |
| 26 | 26 | */ |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * |
| 40 | 40 | * @access public |
| 41 | 41 | * @static static method |
| 42 | - * @return string User ID |
|
| 42 | + * @return integer User ID |
|
| 43 | 43 | */ |
| 44 | 44 | public static function getUserId(){ |
| 45 | 45 | return (int)self::$userId; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * count fields in $this->data and optionally exclude some fields |
| 75 | 75 | * |
| 76 | 76 | * @param array $exclude |
| 77 | - * @return mixed |
|
| 77 | + * @return integer |
|
| 78 | 78 | */ |
| 79 | 79 | public function countData(array $exclude = []){ |
| 80 | 80 | $count = count($this->data); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * safer and better access to $this->data |
| 91 | 91 | * |
| 92 | 92 | * @param string $key |
| 93 | - * @return mixed |
|
| 93 | + * @return string |
|
| 94 | 94 | */ |
| 95 | 95 | public function data($key){ |
| 96 | 96 | return array_key_exists($key, $this->data)? $this->data[$key]: null; |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * safer and better access to $this->query |
| 101 | 101 | * |
| 102 | 102 | * @param string $key |
| 103 | - * @return mixed |
|
| 103 | + * @return string |
|
| 104 | 104 | */ |
| 105 | 105 | public function query($key){ |
| 106 | 106 | return array_key_exists($key, $this->query)? $this->query[$key]: null; |
@@ -213,7 +213,7 @@ |
||
| 213 | 213 | * Returns the mime type definition for an alias |
| 214 | 214 | * |
| 215 | 215 | * @param string $key |
| 216 | - * @return mixed |
|
| 216 | + * @return string |
|
| 217 | 217 | */ |
| 218 | 218 | private function getMimeType($key){ |
| 219 | 219 | |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * Get number of total pages. |
| 81 | 81 | * |
| 82 | 82 | * @access public |
| 83 | - * @return integer |
|
| 83 | + * @return double |
|
| 84 | 84 | */ |
| 85 | 85 | public function totalPages() { |
| 86 | 86 | return ceil($this->totalCount/$this->perPage); |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * @param string $role |
| 83 | 83 | * @param string $resource |
| 84 | 84 | * @param mixed $actions |
| 85 | - * @param mixed $conditions |
|
| 85 | + * @param string $conditions |
|
| 86 | 86 | */ |
| 87 | 87 | public static function allow($role, $resource, $actions = "*", $conditions = []){ |
| 88 | 88 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * upload profile picture |
| 58 | 58 | * |
| 59 | 59 | * @param array $file |
| 60 | - * @param mixed $id random id used in creating filename |
|
| 60 | + * @param integer $id random id used in creating filename |
|
| 61 | 61 | * @return mixed false in case of failure, otherwise array of file created |
| 62 | 62 | * |
| 63 | 63 | */ |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * Because their values aren't secure and can be easily be spoofed. |
| 303 | 303 | * |
| 304 | 304 | * @param array $file |
| 305 | - * @return mixed false if failed, string otherwise |
|
| 305 | + * @return string false if failed, string otherwise |
|
| 306 | 306 | * @throws Exception if finfo_open() method doesn't exists |
| 307 | 307 | * |
| 308 | 308 | */ |