@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * @param integer $iStatus The "code" for the HTTP status. |
| 87 | 87 | * |
| 88 | - * @return string|boolean $iStatus Returns the "HTTP status code" if found otherwise returns "false" |
|
| 88 | + * @return integer $iStatus Returns the "HTTP status code" if found otherwise returns "false" |
|
| 89 | 89 | */ |
| 90 | 90 | public static function getStatusCodes($iStatus) |
| 91 | 91 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * Set one or multiple headers. |
| 123 | 123 | * |
| 124 | - * @param string|array $mHeaders Headers to send. |
|
| 124 | + * @param string $mHeaders Headers to send. |
|
| 125 | 125 | * |
| 126 | 126 | * @throws Exception |
| 127 | 127 | */ |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * @param string $sUsr |
| 181 | 181 | * @param string $sPwd |
| 182 | 182 | * |
| 183 | - * @return boolean TRUE if the authentication is correct, otherwise FALSE. |
|
| 183 | + * @return null|boolean TRUE if the authentication is correct, otherwise FALSE. |
|
| 184 | 184 | */ |
| 185 | 185 | public static function requireAuth($sUsr, $sPwd) |
| 186 | 186 | { |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | /** |
| 121 | 121 | * Check is the POST request method exists. |
| 122 | 122 | * |
| 123 | - * @param array|string $mKey The key of the request or an array with the list of key of the variables request. |
|
| 123 | + * @param string $mKey The key of the request or an array with the list of key of the variables request. |
|
| 124 | 124 | * @param string $sParam Optional parameter, check the type of the request variable | Value type is: str, int, float, bool |
| 125 | 125 | * |
| 126 | 126 | * @return boolean |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | * |
| 606 | 606 | * @see __get() |
| 607 | 607 | * |
| 608 | - * @param $sVarName string Name of a variable that is to be retrieved. |
|
| 608 | + * @param string $sVarName string Name of a variable that is to be retrieved. |
|
| 609 | 609 | * |
| 610 | 610 | * @return mixed Value of that variable. |
| 611 | 611 | */ |
@@ -827,7 +827,7 @@ discard block |
||
| 827 | 827 | /** |
| 828 | 828 | * Get the reserved variables. |
| 829 | 829 | * |
| 830 | - * @return array |
|
| 830 | + * @return string[] |
|
| 831 | 831 | */ |
| 832 | 832 | public function getReservedWords() |
| 833 | 833 | { |
@@ -886,7 +886,7 @@ discard block |
||
| 886 | 886 | /** |
| 887 | 887 | * Checks if the template file in the $this->sTemplateDirFile attribute is the main page (layout.tpl). |
| 888 | 888 | * |
| 889 | - * @return boolean |
|
| 889 | + * @return integer |
|
| 890 | 890 | */ |
| 891 | 891 | private function isMainPage() |
| 892 | 892 | { |
@@ -896,7 +896,7 @@ discard block |
||
| 896 | 896 | /** |
| 897 | 897 | * Checks if the compile file in the $this->sCompileDirFile attribute is the main page (layout.cpl.php). |
| 898 | 898 | * |
| 899 | - * @return boolean |
|
| 899 | + * @return integer |
|
| 900 | 900 | */ |
| 901 | 901 | final private function isMainCompilePage() |
| 902 | 902 | { |
@@ -906,7 +906,7 @@ discard block |
||
| 906 | 906 | /** |
| 907 | 907 | * Checks if the compile file in the $this->sCompileDirFile attribute is the XML (with XSL layout) Sitemap page (mainlayout.xsl.cpl.php). |
| 908 | 908 | * |
| 909 | - * @return boolean |
|
| 909 | + * @return integer |
|
| 910 | 910 | */ |
| 911 | 911 | final private function isXmlSitemapCompilePage() |
| 912 | 912 | { |
@@ -335,7 +335,7 @@ |
||
| 335 | 335 | /** |
| 336 | 336 | * Get the list of modules that are possible to enable as the default system module. |
| 337 | 337 | * |
| 338 | - * @return array |
|
| 338 | + * @return string[] |
|
| 339 | 339 | */ |
| 340 | 340 | private static function getActivatableDefMods() |
| 341 | 341 | { |
@@ -388,6 +388,7 @@ |
||
| 388 | 388 | /** |
| 389 | 389 | * Is $c a letter, digit, underscore, dollar sign, or non-ASCII character. |
| 390 | 390 | * |
| 391 | + * @param string $c |
|
| 391 | 392 | * @return bool |
| 392 | 393 | */ |
| 393 | 394 | protected function isAlphaNum($c) |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @param string $sVar |
| 34 | 34 | * |
| 35 | - * @return The new parsed text |
|
| 35 | + * @return string new parsed text |
|
| 36 | 36 | */ |
| 37 | 37 | public function parse($sVar) |
| 38 | 38 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @return bool |
|
| 95 | + * @return integer |
|
| 96 | 96 | */ |
| 97 | 97 | private function notParsingVars() |
| 98 | 98 | { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * Build the log message. |
| 75 | 75 | * |
| 76 | 76 | * @access protected |
| 77 | - * @return object this |
|
| 77 | + * @return Logger this |
|
| 78 | 78 | */ |
| 79 | 79 | protected function setLogMsg() |
| 80 | 80 | { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * Blocking IP address. |
| 116 | 116 | * |
| 117 | 117 | * @access protected |
| 118 | - * @return object this |
|
| 118 | + * @return Logger this |
|
| 119 | 119 | */ |
| 120 | 120 | protected function blockIp() |
| 121 | 121 | { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * Write a log file with the hacher information. |
| 130 | 130 | * |
| 131 | 131 | * @access protected |
| 132 | - * @return object this |
|
| 132 | + * @return Logger this |
|
| 133 | 133 | */ |
| 134 | 134 | protected function writeFile() |
| 135 | 135 | { |
@@ -17,6 +17,10 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | const CACHE_GROUP = 'db/sys/core/rating', CACHE_TIME = 604800; |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param integer $iId |
|
| 22 | + * @param string $sTable |
|
| 23 | + */ |
|
| 20 | 24 | public function getVote($iId, $sTable) |
| 21 | 25 | { |
| 22 | 26 | $this->cache->start(self::CACHE_GROUP, 'getVote' . $iId . $sTable, static:: |
@@ -40,6 +44,10 @@ discard block |
||
| 40 | 44 | return $iData; |
| 41 | 45 | } |
| 42 | 46 | |
| 47 | + /** |
|
| 48 | + * @param integer $iId |
|
| 49 | + * @param string $sTable |
|
| 50 | + */ |
|
| 43 | 51 | public function getScore($iId, $sTable) |
| 44 | 52 | { |
| 45 | 53 | $this->cache->start(self::CACHE_GROUP, 'getScore' . $iId . $sTable, static:: |
@@ -63,6 +71,10 @@ discard block |
||
| 63 | 71 | return $fData; |
| 64 | 72 | } |
| 65 | 73 | |
| 74 | + /** |
|
| 75 | + * @param integer $iId |
|
| 76 | + * @param string $sTable |
|
| 77 | + */ |
|
| 66 | 78 | public function updateVotes($iId, $sTable) |
| 67 | 79 | { |
| 68 | 80 | |
@@ -75,6 +87,11 @@ discard block |
||
| 75 | 87 | return $rStmt->execute(); |
| 76 | 88 | } |
| 77 | 89 | |
| 90 | + /** |
|
| 91 | + * @param double $fScore |
|
| 92 | + * @param integer $iId |
|
| 93 | + * @param string $sTable |
|
| 94 | + */ |
|
| 78 | 95 | public function updateScore($fScore, $iId, $sTable) |
| 79 | 96 | { |
| 80 | 97 | $sTable = Various::checkTable($sTable); |
@@ -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 | { |