@@ -316,7 +316,7 @@ |
||
| 316 | 316 | /** |
| 317 | 317 | * Check if Apache's mod_rewrite is installed. |
| 318 | 318 | * |
| 319 | - * @return bool |
|
| 319 | + * @return null|boolean |
|
| 320 | 320 | */ |
| 321 | 321 | function is_url_rewrite() |
| 322 | 322 | { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * @param string $sMod |
| 26 | 26 | * @param bool $bPrint Print or Return the HTML code. |
| 27 | 27 | * |
| 28 | - * @return void |
|
| 28 | + * @return string|null |
|
| 29 | 29 | */ |
| 30 | 30 | public static function link($sMod, $bPrint = true) |
| 31 | 31 | { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | * @param string $sApiParams Parameters to send to the API. |
| 85 | 85 | * @param string $sApiVersion Version of the API it will use. If fails from the API server, it will ignore it. |
| 86 | 86 | * |
| 87 | - * @return void |
|
| 87 | + * @return string|boolean |
|
| 88 | 88 | */ |
| 89 | 89 | private function getApiResults($sApiUrl, $sApiParams, $sApiVersion) |
| 90 | 90 | { |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * @param stdClass $oProfile |
| 164 | 164 | * |
| 165 | - * @return bool |
|
| 165 | + * @return string |
|
| 166 | 166 | */ |
| 167 | 167 | private function getBirthDate(stdClass $oProfile) |
| 168 | 168 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Authenticate user with Twitter. |
| 120 | 120 | * |
| 121 | - * @return bool Authentication successful. |
|
| 121 | + * @return boolean|null Authentication successful. |
|
| 122 | 122 | */ |
| 123 | 123 | public function auth() |
| 124 | 124 | { |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | /** |
| 290 | 290 | * Obtain an access token from Twitter. |
| 291 | 291 | * |
| 292 | - * @return bool Returns FALSE if request failed. |
|
| 292 | + * @return null|false Returns FALSE if request failed. |
|
| 293 | 293 | */ |
| 294 | 294 | private function getAccessToken() |
| 295 | 295 | { |
@@ -135,6 +135,9 @@ discard block |
||
| 135 | 135 | return $valid; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $id |
|
| 140 | + */ |
|
| 138 | 141 | private static function recover($id) |
| 139 | 142 | { |
| 140 | 143 | if (!empty($_SESSION['pfbc'][$id]['form'])) { |
@@ -158,6 +161,9 @@ discard block |
||
| 158 | 161 | } |
| 159 | 162 | } |
| 160 | 163 | |
| 164 | + /** |
|
| 165 | + * @param string $id |
|
| 166 | + */ |
|
| 161 | 167 | public static function setSessionValue($id, $element, $value) |
| 162 | 168 | { |
| 163 | 169 | $_SESSION['pfbc'][$id]['values'][$element] = $value; |
@@ -166,6 +172,7 @@ discard block |
||
| 166 | 172 | /** |
| 167 | 173 | * Validation errors are saved in the session after the form submission, and will be displayed to the user |
| 168 | 174 | * when redirected back to the form. |
| 175 | + * @param string $id |
|
| 169 | 176 | */ |
| 170 | 177 | public static function setError($id, $messages, $element = '') |
| 171 | 178 | { |
@@ -204,6 +211,9 @@ discard block |
||
| 204 | 211 | } |
| 205 | 212 | } |
| 206 | 213 | |
| 214 | + /** |
|
| 215 | + * @param string $id |
|
| 216 | + */ |
|
| 207 | 217 | public static function setSuccess($id, $message, $element = '') |
| 208 | 218 | { |
| 209 | 219 | return (new Design)->setFlashMsg($message, Design::SUCCESS_TYPE); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | * |
| 273 | 273 | * @param string $sStatement |
| 274 | 274 | * |
| 275 | - * @return mixed |
|
| 275 | + * @return string |
|
| 276 | 276 | */ |
| 277 | 277 | public function queryFetchColAssoc($sStatement) |
| 278 | 278 | { |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | /** |
| 319 | 319 | * Count the number of requests. |
| 320 | 320 | * |
| 321 | - * @return float number |
|
| 321 | + * @return integer number |
|
| 322 | 322 | */ |
| 323 | 323 | public static function queryCount() |
| 324 | 324 | { |
@@ -227,7 +227,6 @@ |
||
| 227 | 227 | /** |
| 228 | 228 | * Language helper function. |
| 229 | 229 | * |
| 230 | - * @param string $sVar [, string $... ] |
|
| 231 | 230 | * |
| 232 | 231 | * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table). |
| 233 | 232 | */ |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | /** |
| 89 | 89 | * @param string $sUrl |
| 90 | 90 | * |
| 91 | - * @return string|bool The embed URL if id is valid, false otherwise. |
|
| 91 | + * @return false|string The embed URL if id is valid, false otherwise. |
|
| 92 | 92 | */ |
| 93 | 93 | public function getEmbedUrl($sUrl) |
| 94 | 94 | { |