@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | public static $duration = false; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param boolean $duration |
|
| 16 | + */ |
|
| 14 | 17 | public function init($key, $duration) { |
| 15 | 18 | $ci = get_instance(); |
| 16 | 19 | |
@@ -24,6 +27,9 @@ discard block |
||
| 24 | 27 | return $data; |
| 25 | 28 | } |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $content |
|
| 32 | + */ |
|
| 27 | 33 | public function storeCache($content) { |
| 28 | 34 | $ci = get_instance(); |
| 29 | 35 | |
@@ -164,6 +164,9 @@ |
||
| 164 | 164 | * */ |
| 165 | 165 | if (!function_exists('color')) { |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $type |
|
| 169 | + */ |
|
| 167 | 170 | function color($type) { |
| 168 | 171 | switch ($type) { |
| 169 | 172 | case "bg": |
@@ -207,6 +207,9 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | /* Mailhide related code */ |
| 209 | 209 | |
| 210 | +/** |
|
| 211 | + * @param string $ky |
|
| 212 | + */ |
|
| 210 | 213 | function _recaptcha_aes_encrypt($val, $ky) { |
| 211 | 214 | if (!function_exists("mcrypt_encrypt")) { |
| 212 | 215 | die("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -217,6 +220,9 @@ discard block |
||
| 217 | 220 | return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); |
| 218 | 221 | } |
| 219 | 222 | |
| 223 | +/** |
|
| 224 | + * @param null|string $x |
|
| 225 | + */ |
|
| 220 | 226 | function _recaptcha_mailhide_urlbase64($x) { |
| 221 | 227 | return strtr(base64_encode($x), '+/', '-_'); |
| 222 | 228 | } |
@@ -47,6 +47,9 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $key |
|
| 52 | + */ |
|
| 50 | 53 | public function _fetch($key) { |
| 51 | 54 | |
| 52 | 55 | $key = $this->generatekey($key); |
@@ -145,7 +148,7 @@ discard block |
||
| 145 | 148 | * |
| 146 | 149 | * @param string $key - cache item key |
| 147 | 150 | * |
| 148 | - * @return bool |
|
| 151 | + * @return boolean|null |
|
| 149 | 152 | */ |
| 150 | 153 | public function delete($key) { |
| 151 | 154 | |
@@ -155,7 +158,7 @@ discard block |
||
| 155 | 158 | /** |
| 156 | 159 | * Delete Cached Function |
| 157 | 160 | * |
| 158 | - * @return bool |
|
| 161 | + * @return boolean|null |
|
| 159 | 162 | */ |
| 160 | 163 | public function delete_func($object, $func, $args = array()) { |
| 161 | 164 | |
@@ -166,7 +169,7 @@ discard block |
||
| 166 | 169 | /** |
| 167 | 170 | * Delete All Cache Items |
| 168 | 171 | * |
| 169 | - * @return bool |
|
| 172 | + * @return boolean|null |
|
| 170 | 173 | * @access public |
| 171 | 174 | */ |
| 172 | 175 | public function delete_all() { |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | * @access private |
| 150 | 150 | * @param string $original the original string to translate |
| 151 | 151 | * @param array $aParams the plural parameters |
| 152 | - * @return the string translated |
|
| 152 | + * @return false|string string translated |
|
| 153 | 153 | */ |
| 154 | 154 | private function _trans($original, $aParams = false) { |
| 155 | 155 | if (!isset($this->gettext_domain)) { |
@@ -110,6 +110,7 @@ |
||
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * Reads given session attribute value |
| 113 | + * @param string $item |
|
| 113 | 114 | */ |
| 114 | 115 | public function userdata($item) { |
| 115 | 116 | |
@@ -6,6 +6,7 @@ |
||
| 6 | 6 | * Include file (or all recursively files in dir) |
| 7 | 7 | * The starting directory is the directory where the class is (witch using trait) |
| 8 | 8 | * @param string $filePath |
| 9 | + * @return void |
|
| 9 | 10 | */ |
| 10 | 11 | public function import($filePath); |
| 11 | 12 | |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Prepare array with child categorie's ids |
| 65 | 65 | * @param array $dataArray |
| 66 | - * @return boolean|array |
|
| 66 | + * @return false|string |
|
| 67 | 67 | */ |
| 68 | 68 | public function prepareArray($dataArray = null) { |
| 69 | 69 | if ($dataArray == null) { |
@@ -333,6 +333,9 @@ discard block |
||
| 333 | 333 | * @float $y |
| 334 | 334 | * @float $width |
| 335 | 335 | * @float $height |
| 336 | + * @param integer $y |
|
| 337 | + * @param integer $width |
|
| 338 | + * @param integer $height |
|
| 336 | 339 | * @return void |
| 337 | 340 | */ |
| 338 | 341 | protected function drawTextB($text, $x, $y, $width, $height) { |
@@ -343,7 +346,7 @@ discard block |
||
| 343 | 346 | /** |
| 344 | 347 | * Save settings |
| 345 | 348 | * |
| 346 | - * @return bool|string |
|
| 349 | + * @return boolean |
|
| 347 | 350 | */ |
| 348 | 351 | public function saveSettings(SPaymentMethods $paymentMethod) { |
| 349 | 352 | $saveKey = $paymentMethod->getId() . '_' . $this->moduleName; |