@@ -245,7 +245,7 @@ |
||
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | /** |
| 248 | - * @param $md5 |
|
| 248 | + * @param string $md5 |
|
| 249 | 249 | * |
| 250 | 250 | * @return array |
| 251 | 251 | */ |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | * @param string $option |
| 115 | 115 | * @param int|null $userID |
| 116 | 116 | * |
| 117 | - * @return mixed Returns option value as STRING, or FALSE if option does not exist. |
|
| 117 | + * @return string Returns option value as STRING, or FALSE if option does not exist. |
|
| 118 | 118 | */ |
| 119 | 119 | public function get(string $option, ?int $userID = NULL) { |
| 120 | 120 | $userID = (is_null($userID) ? (int) $this->User->id : $userID); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | /** |
| 123 | 123 | * @param string $site_url |
| 124 | 124 | * |
| 125 | - * @return stdClass|object|null |
|
| 125 | + * @return string |
|
| 126 | 126 | */ |
| 127 | 127 | public function getSiteDataFromURL(string $site_url) { |
| 128 | 128 | $query = $this->db->select('*') |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * Write to defined logger. Is called from CodeIgniters native log_message() |
| 138 | 138 | * |
| 139 | 139 | * @param string $level |
| 140 | - * @param $msg |
|
| 140 | + * @param string $msg |
|
| 141 | 141 | * @return bool |
| 142 | 142 | */ |
| 143 | 143 | public function write_log($level = 'error', $msg) |
@@ -531,6 +531,10 @@ |
||
| 531 | 531 | final private function _getSiteRateLimit() : int { |
| 532 | 532 | return (int) ($this->cache->get("{$this->site}_ratelimit") ?: 0); |
| 533 | 533 | } |
| 534 | + |
|
| 535 | + /** |
|
| 536 | + * @param integer $rateLimit |
|
| 537 | + */ |
|
| 534 | 538 | final private function _setSiteRateLimit(?int $rateLimit = NULL) : bool { |
| 535 | 539 | //We would just use increment(), but we can't set ttl with it... |
| 536 | 540 | $currentRateLimit = $rateLimit ?: $this->_getSiteRateLimit(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * @param string $file Configuration file name |
| 12 | 12 | * @param bool $use_sections Whether configuration values should be loaded into their own section |
| 13 | 13 | * @param bool $fail_gracefully Whether to just return FALSE or display an error message |
| 14 | - * @return bool TRUE if the file was loaded correctly or FALSE on failure |
|
| 14 | + * @return boolean|null TRUE if the file was loaded correctly or FALSE on failure |
|
| 15 | 15 | */ |
| 16 | 16 | public function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE) |
| 17 | 17 | { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * @param string $verificationCode |
| 74 | - * @return mixed |
|
| 74 | + * @return string |
|
| 75 | 75 | */ |
| 76 | 76 | public function verificationCheck(string $verificationCode) { |
| 77 | 77 | //user is trying to validate their email for signup, check if verification code is still valid/exists |