@@ -174,7 +174,7 @@ |
||
| 174 | 174 | /** |
| 175 | 175 | * Save settings |
| 176 | 176 | * |
| 177 | - * @return bool|string |
|
| 177 | + * @return boolean |
|
| 178 | 178 | */ |
| 179 | 179 | public function saveSettings(SPaymentMethods $paymentMethod) { |
| 180 | 180 | $saveKey = $paymentMethod->getId() . '_' . $this->moduleName; |
@@ -173,6 +173,9 @@ discard block |
||
| 173 | 173 | return ($callbackParams['md5'] == $md5); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param integer $code |
|
| 178 | + */ |
|
| 176 | 179 | public function sendAviso($callbackParams, $code) { |
| 177 | 180 | header("Content-type: text/xml; charset=utf-8"); |
| 178 | 181 | $xml = '<?xml version="1.0" encoding="UTF-8"?> |
@@ -180,6 +183,9 @@ discard block |
||
| 180 | 183 | echo $xml; |
| 181 | 184 | } |
| 182 | 185 | |
| 186 | + /** |
|
| 187 | + * @param integer|null $code |
|
| 188 | + */ |
|
| 183 | 189 | public function sendCode($callbackParams, $code) { |
| 184 | 190 | header("Content-type: text/xml; charset=utf-8"); |
| 185 | 191 | $xml = '<?xml version="1.0" encoding="UTF-8"?> |
@@ -230,7 +236,7 @@ discard block |
||
| 230 | 236 | /** |
| 231 | 237 | * Save settings |
| 232 | 238 | * |
| 233 | - * @return bool|string |
|
| 239 | + * @return boolean |
|
| 234 | 240 | */ |
| 235 | 241 | public function saveSettings(SPaymentMethods $paymentMethod) { |
| 236 | 242 | $saveKey = $paymentMethod->getId() . '_' . $this->moduleName; |
@@ -106,6 +106,9 @@ |
||
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param string $flag |
|
| 111 | + */ |
|
| 109 | 112 | public function get_main_lang($flag = null) { |
| 110 | 113 | $lang = $this->db->get('languages')->result_array(); |
| 111 | 114 | $lan_array = []; |
@@ -69,7 +69,6 @@ |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Метод обработчик |
| 72 | - * @param type $commentId <p>ID коментария который был только что создан.</p> |
|
| 73 | 72 | */ |
| 74 | 73 | public static function handler(array $param) { |
| 75 | 74 | $instance = new Sample_Module(); |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Create cosial link to user profile |
| 24 | - * @param type $soc |
|
| 25 | - * @param type $socId |
|
| 24 | + * @param string $soc |
|
| 25 | + * @param string $socId |
|
| 26 | 26 | */ |
| 27 | 27 | public function setLink($soc, $socId) { |
| 28 | 28 | $this->db->set('socialId', $socId); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Unpacking the archive to ./templates/ folder |
| 67 | 67 | * @param string $unpackPath (optional) path to templates folder (default ./templates) |
| 68 | - * @return string template name |
|
| 68 | + * @return boolean template name |
|
| 69 | 69 | * @throws \Exception |
| 70 | 70 | */ |
| 71 | 71 | public function unpack($unpackPath = TEMPLATES_PATH) { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * |
| 103 | - * @return null|string null if error in structure of archive or template name |
|
| 103 | + * @return string null if error in structure of archive or template name |
|
| 104 | 104 | */ |
| 105 | 105 | public function getTemplateName() { |
| 106 | 106 | return $this->templateName; |
@@ -162,6 +162,7 @@ |
||
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * @param string $entity_name |
| 165 | + * @param string $entity_type |
|
| 165 | 166 | */ |
| 166 | 167 | private function searchLang($origin, $data, $entity_type, $entity_name, $language) { |
| 167 | 168 | switch ($this->searchType) { |
@@ -70,6 +70,9 @@ discard block |
||
| 70 | 70 | /* Parse gettext .po files. */ |
| 71 | 71 | /* @link http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files */ |
| 72 | 72 | |
| 73 | +/** |
|
| 74 | + * @param string $in |
|
| 75 | + */ |
|
| 73 | 76 | function phpmo_parse_po_file($in) { |
| 74 | 77 | // read .po file |
| 75 | 78 | $fc = file_get_contents($in); |
@@ -170,6 +173,9 @@ discard block |
||
| 170 | 173 | /* Write a GNU gettext style machine object. */ |
| 171 | 174 | /* @link http://www.gnu.org/software/gettext/manual/gettext.html#MO-Files */ |
| 172 | 175 | |
| 176 | +/** |
|
| 177 | + * @param string|boolean $out |
|
| 178 | + */ |
|
| 173 | 179 | function phpmo_write_mo_file($hash, $out) { |
| 174 | 180 | // sort by msgid |
| 175 | 181 | ksort($hash, SORT_STRING); |
@@ -453,8 +453,8 @@ |
||
| 453 | 453 | /** |
| 454 | 454 | * delete item from wish list |
| 455 | 455 | * |
| 456 | - * @param $variant_id |
|
| 457 | - * @param $wish_list_id |
|
| 456 | + * @param integer $variant_id |
|
| 457 | + * @param integer $wish_list_id |
|
| 458 | 458 | * @access public |
| 459 | 459 | * @author DevImageCms |
| 460 | 460 | * @copyright (c) 2013, ImageCMS |