@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * Generates a random OAuth nonce. |
| 108 | 108 | * If 'force_nonce' is true a nonce is not generated and the value in the configuration will be retained. |
| 109 | 109 | * |
| 110 | - * @param string $length how many characters the nonce should be before MD5 hashing. default 12 |
|
| 110 | + * @param integer $length how many characters the nonce should be before MD5 hashing. default 12 |
|
| 111 | 111 | * @param string $include_time whether to include time at the beginning of the nonce. default true |
| 112 | 112 | * @return void |
| 113 | 113 | */ |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | * |
| 503 | 503 | * @param object $ch curl handle |
| 504 | 504 | * @param string $header the response headers |
| 505 | - * @return the string length of the header |
|
| 505 | + * @return integer string length of the header |
|
| 506 | 506 | */ |
| 507 | 507 | private function curlHeader($ch, $header) { |
| 508 | 508 | $this->response['raw'] .= $header; |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * Asks the user for input and returns the line they enter |
| 213 | 213 | * |
| 214 | 214 | * @param string $prompt the text to display to the user |
| 215 | - * @return the text entered by the user |
|
| 215 | + * @return string text entered by the user |
|
| 216 | 216 | */ |
| 217 | 217 | public static function read_input($prompt) { |
| 218 | 218 | echo $prompt; |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | * |
| 268 | 268 | * @param string $haystack the string to check inside of |
| 269 | 269 | * @param string $needle the string to check $haystack ends with |
| 270 | - * @return true if $haystack ends with $needle, false otherwise |
|
| 270 | + * @return boolean if $haystack ends with $needle, false otherwise |
|
| 271 | 271 | */ |
| 272 | 272 | public static function endswith($haystack, $needle) { |
| 273 | 273 | $haylen = strlen($haystack); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * Build the log message. |
| 76 | 76 | * |
| 77 | 77 | * @access protected |
| 78 | - * @return object this |
|
| 78 | + * @return Logger this |
|
| 79 | 79 | */ |
| 80 | 80 | protected function setLogMsg() |
| 81 | 81 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * Write a log file with the hacher information. |
| 101 | 101 | * |
| 102 | 102 | * @access protected |
| 103 | - * @return object this |
|
| 103 | + * @return Logger this |
|
| 104 | 104 | */ |
| 105 | 105 | protected function writeFile() |
| 106 | 106 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * Blocking IP address. |
| 115 | 115 | * |
| 116 | 116 | * @access protected |
| 117 | - * @return object this |
|
| 117 | + * @return Logger this |
|
| 118 | 118 | */ |
| 119 | 119 | protected function blockIp() |
| 120 | 120 | { |
@@ -11,11 +11,10 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace PH7; |
| 13 | 13 | |
| 14 | -use |
|
| 15 | -PH7\Framework\Security\Ban\Ban, |
|
| 16 | -PH7\Framework\Http\Http, |
|
| 17 | -PH7\Framework\Ip\Ip, |
|
| 18 | -PH7\Framework\Mail\Mail; |
|
| 14 | +use PH7\Framework\Security\Ban\Ban; |
|
| 15 | +use PH7\Framework\Http\Http; |
|
| 16 | +use PH7\Framework\Ip\Ip; |
|
| 17 | +use PH7\Framework\Mail\Mail; |
|
| 19 | 18 | |
| 20 | 19 | class Logger extends Core |
| 21 | 20 | { |
@@ -639,7 +639,7 @@ |
||
| 639 | 639 | * @param object \PH7\Db $oDb |
| 640 | 640 | * @param string $sModName Module Name. |
| 641 | 641 | * @param string $sStatus '1' = Enabled | '0' = Disabled (need to be string because in DB it is an "enum"). |
| 642 | - * @return mixed (integer | boolean) Returns the number of rows on success or FALSE on failure. |
|
| 642 | + * @return boolean (integer | boolean) Returns the number of rows on success or FALSE on failure. |
|
| 643 | 643 | */ |
| 644 | 644 | private function _updateMods(Db $oDb, $sModName, $sStatus) |
| 645 | 645 | { |
@@ -993,7 +993,7 @@ discard block |
||
| 993 | 993 | * |
| 994 | 994 | * @param string $dirName directory property name |
| 995 | 995 | * @param string|array $dir directory string or array of strings |
| 996 | - * @param mixed $key optional key |
|
| 996 | + * @param string|null $key optional key |
|
| 997 | 997 | */ |
| 998 | 998 | private function _addDir($dirName, $dir, $key = null) |
| 999 | 999 | { |
@@ -1100,7 +1100,7 @@ discard block |
||
| 1100 | 1100 | * @param string $template_name |
| 1101 | 1101 | * @param null|mixed $cache_id |
| 1102 | 1102 | * @param null|mixed $compile_id |
| 1103 | - * @param null $caching |
|
| 1103 | + * @param integer $caching |
|
| 1104 | 1104 | * |
| 1105 | 1105 | * @return string |
| 1106 | 1106 | */ |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object |
| 69 | 69 | * @param array $parameter array with compilation parameter |
| 70 | 70 | * |
| 71 | - * @return bool true |
|
| 71 | + * @return boolean|null true |
|
| 72 | 72 | */ |
| 73 | 73 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) |
| 74 | 74 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param \Smarty_Internal_TemplateCompilerBase $compiler compiler object |
| 160 | 160 | * @param array $parameter array with compilation parameter |
| 161 | 161 | * |
| 162 | - * @return bool true |
|
| 162 | + * @return string true |
|
| 163 | 163 | */ |
| 164 | 164 | public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter) |
| 165 | 165 | { |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | /** |
| 120 | 120 | * Create source code for {extends} from source components array |
| 121 | 121 | * |
| 122 | - * @param []\Smarty_Internal_Template_Source $components |
|
| 122 | + * @param Smarty_Template_Source[] $components |
|
| 123 | 123 | * |
| 124 | 124 | * @return string |
| 125 | 125 | */ |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * Compiles code for the {/function} tag |
| 94 | 94 | * |
| 95 | 95 | * @param array $args array with attributes from parser |
| 96 | - * @param object|\Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 96 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 97 | 97 | * @param array $parameter array with compilation parameter |
| 98 | 98 | * |
| 99 | 99 | * @return bool true |
@@ -305,7 +305,7 @@ |
||
| 305 | 305 | * @param $fullResourceName |
| 306 | 306 | * @param $_caching |
| 307 | 307 | * @param $hashResourceName |
| 308 | - * @param $t_hash |
|
| 308 | + * @param string $t_hash |
|
| 309 | 309 | * @param $c_id |
| 310 | 310 | * |
| 311 | 311 | * @return bool |