@@ -16,7 +16,7 @@ |
||
16 | 16 | static $name = 'PickPoint - курьерская служба'; |
17 | 17 | |
18 | 18 | /** |
19 | - * @param \Ecommerce\Cart $cart |
|
19 | + * @param string $URL |
|
20 | 20 | * @return \Money\Sums |
21 | 21 | */ |
22 | 22 | static function curl_get_file_contents($URL, $data) { |
@@ -338,6 +338,9 @@ |
||
338 | 338 | return false; |
339 | 339 | } |
340 | 340 | |
341 | + /** |
|
342 | + * @return \Money\Sums |
|
343 | + */ |
|
341 | 344 | public function deliverySum() { |
342 | 345 | $sum = new \Money\Sums([0 => 0]); |
343 | 346 | if ($this->delivery && $this->needDelivery()) { |
@@ -168,7 +168,6 @@ discard block |
||
168 | 168 | * @param Model $item |
169 | 169 | * @param string $colName |
170 | 170 | * @param boolean $manageHref |
171 | - * @param array $params |
|
172 | 171 | * @return string |
173 | 172 | */ |
174 | 173 | public static function resloveTypeValue($item, $colName, $manageHref = false, $colInfo = []) { |
@@ -794,7 +793,7 @@ discard block |
||
794 | 793 | /** |
795 | 794 | * return relations list |
796 | 795 | * |
797 | - * @return array |
|
796 | + * @return string |
|
798 | 797 | */ |
799 | 798 | public static function relations() { |
800 | 799 | return []; |
@@ -10,6 +10,10 @@ |
||
10 | 10 | class Text extends \Object { |
11 | 11 | public static $strings = []; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $module |
|
15 | + * @param string $code |
|
16 | + */ |
|
13 | 17 | public static function module($module, $code, $params = [], $default = false, $lang = false) { |
14 | 18 | $paramsKeys = array_keys($params); |
15 | 19 | foreach ($paramsKeys as &$paramsKey) { |
@@ -257,6 +257,9 @@ |
||
257 | 257 | return $user; |
258 | 258 | } |
259 | 259 | |
260 | + /** |
|
261 | + * @param boolean $msg |
|
262 | + */ |
|
260 | 263 | private function msgOrErr($err, $msg) { |
261 | 264 | if ($msg) { |
262 | 265 | Msg::add($err, 'danger'); |
@@ -100,6 +100,9 @@ |
||
100 | 100 | return !empty($this->_objects[$moduleName]); |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @return string |
|
105 | + */ |
|
103 | 106 | public function getDomain($decode = false) { |
104 | 107 | return !empty($this->config['site']['domain']) ? $this->config['site']['domain'] : ($decode ? idn_to_utf8(INJI_DOMAIN_NAME) : INJI_DOMAIN_NAME); |
105 | 108 | } |
@@ -128,6 +128,7 @@ |
||
128 | 128 | * Get cache dir for app |
129 | 129 | * |
130 | 130 | * @param App $app |
131 | + * @param string $dirname |
|
131 | 132 | * @return string |
132 | 133 | */ |
133 | 134 | public static function getDir($dirname, $app = null) { |