@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | * @return boolean - true if fetched new exchange rates, false otherwise |
48 | 48 | */ |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $dateCur |
|
52 | + */ |
|
50 | 53 | public function fetchCurrencyRates($dateCur, $cron = false) |
51 | 54 | { |
52 | 55 | if (!\App\RequestUtil::isNetConnection()) { |
@@ -123,6 +126,9 @@ discard block |
||
123 | 126 | * @param <Float> $exchange - exchange rate |
124 | 127 | */ |
125 | 128 | |
129 | + /** |
|
130 | + * @param string|false $id |
|
131 | + */ |
|
126 | 132 | public function updateCurrencyRate($id, $exchange) |
127 | 133 | { |
128 | 134 | \App\Db::getInstance()->createCommand() |
@@ -172,6 +178,9 @@ discard block |
||
172 | 178 | * @return <Array> - array containing currency rates |
173 | 179 | */ |
174 | 180 | |
181 | + /** |
|
182 | + * @param string $dateCur |
|
183 | + */ |
|
175 | 184 | public function getRatesHistory($bankId, $dateCur, \App\Request $request) |
176 | 185 | { |
177 | 186 | $query = (new App\Db\Query())->select(['exchange', 'currency_name', 'currency_code', 'currency_symbol', 'fetch_date', 'exchange_date']) |
@@ -366,6 +375,9 @@ discard block |
||
366 | 375 | * @return boolean - true on success or false |
367 | 376 | */ |
368 | 377 | |
378 | + /** |
|
379 | + * @param integer $bankId |
|
380 | + */ |
|
369 | 381 | public function setActiveBankById($bankId) |
370 | 382 | { |
371 | 383 | $db = \App\Db::getInstance(); |
@@ -1031,6 +1031,9 @@ discard block |
||
1031 | 1031 | \App\Cache::clear(); |
1032 | 1032 | } |
1033 | 1033 | |
1034 | + /** |
|
1035 | + * @param integer $relationId |
|
1036 | + */ |
|
1034 | 1037 | public static function updateModuleRelatedInventoryFields($relationId, $fields) |
1035 | 1038 | { |
1036 | 1039 | $db = \App\Db::getInstance('admin'); |
@@ -1077,6 +1080,9 @@ discard block |
||
1077 | 1080 | return $fields; |
1078 | 1081 | } |
1079 | 1082 | |
1083 | + /** |
|
1084 | + * @param string|boolean $refModuleName |
|
1085 | + */ |
|
1080 | 1086 | public static function getReferenceTableInfo($moduleName, $refModuleName) |
1081 | 1087 | { |
1082 | 1088 | $temp = [$moduleName, $refModuleName]; |
@@ -1119,6 +1125,9 @@ discard block |
||
1119 | 1125 | return $result; |
1120 | 1126 | } |
1121 | 1127 | |
1128 | + /** |
|
1129 | + * @param integer $relationId |
|
1130 | + */ |
|
1122 | 1131 | public static function updateStateFavorites($relationId, $status) |
1123 | 1132 | { |
1124 | 1133 | \App\Db::getInstance()->createCommand()->update('vtiger_relatedlists', ['favorites' => $status], ['relation_id' => $relationId])->execute(); |
@@ -52,9 +52,9 @@ |
||
52 | 52 | /** |
53 | 53 | * Get currency by module name. |
54 | 54 | * |
55 | - * @param bool|string $type |
|
56 | 55 | * |
57 | - * @return array |
|
56 | + * @param integer $record |
|
57 | + * @return integer |
|
58 | 58 | */ |
59 | 59 | public static function getCurrencyByModule($record, $moduleName) |
60 | 60 | { |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * Get list of users based on group id. |
280 | 280 | * |
281 | 281 | * @param int $groupId |
282 | - * @param bool|array $subGroups |
|
282 | + * @param boolean $subGroups |
|
283 | 283 | * @param int $i |
284 | 284 | * |
285 | 285 | * @return array |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | * Get data share. |
659 | 659 | * |
660 | 660 | * @param int $tabId |
661 | - * @param int $roleId |
|
661 | + * @param string $type |
|
662 | 662 | * |
663 | 663 | * @return array |
664 | 664 | */ |
@@ -165,6 +165,9 @@ discard block |
||
165 | 165 | return false; |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param string $qualifiedModuleName |
|
170 | + */ |
|
168 | 171 | public static function getCleanInstance($qualifiedModuleName) |
169 | 172 | { |
170 | 173 | $className = Vtiger_Loader::getComponentClassName('Model', 'Record', $qualifiedModuleName); |
@@ -208,6 +211,9 @@ discard block |
||
208 | 211 | return $fieldValue; |
209 | 212 | } |
210 | 213 | |
214 | + /** |
|
215 | + * @param integer $blockId |
|
216 | + */ |
|
211 | 217 | public static function getModuleInstanceByBlockId($blockId) |
212 | 218 | { |
213 | 219 | $tabid = (new \App\Db\Query())->select(['tabid']) |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Set widget model to show. |
85 | 85 | * |
86 | - * @param $widgetModel |
|
86 | + * @param Vtiger_Widget_Model $widgetModel |
|
87 | 87 | * |
88 | 88 | * @throws \App\Exceptions\AppException |
89 | 89 | */ |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Set filter id to show. |
101 | 101 | * |
102 | - * @param $filterId |
|
102 | + * @param integer $filterId |
|
103 | 103 | */ |
104 | 104 | public function setFilterId($filterId) |
105 | 105 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->mailer = new \PHPMailer\PHPMailer\PHPMailer(false); |
39 | 39 | if (\AppConfig::debug('MAILER_DEBUG')) { |
40 | 40 | $this->mailer->SMTPDebug = 2; |
41 | - $this->mailer->Debugoutput = function ($str, $level) { |
|
41 | + $this->mailer->Debugoutput = function($str, $level) { |
|
42 | 42 | if (strpos(strtolower($str), 'error') !== false || strpos(strtolower($str), 'failed') !== false) { |
43 | 43 | Log::error(trim($str), 'Mailer'); |
44 | 44 | } else { |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | { |
406 | 406 | $this->mailer->SMTPDebug = 2; |
407 | 407 | static::$error = []; |
408 | - $this->mailer->Debugoutput = function ($str, $level) { |
|
408 | + $this->mailer->Debugoutput = function($str, $level) { |
|
409 | 409 | if (strpos(strtolower($str), 'error') !== false || strpos(strtolower($str), 'failed') !== false) { |
410 | 410 | static::$error[] = trim($str); |
411 | 411 | Log::error(trim($str), 'Mailer'); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | /** |
97 | 97 | * Load list view conditions. |
98 | 98 | * |
99 | - * @return object |
|
99 | + * @return App\Db\Query |
|
100 | 100 | */ |
101 | 101 | public function loadListViewCondition() |
102 | 102 | { |
@@ -36,6 +36,7 @@ |
||
36 | 36 | * Function to set Field instance. |
37 | 37 | * |
38 | 38 | * @param Vtiger_Field_Model |
39 | + * @param Vtiger_Field_Model $fieldModel |
|
39 | 40 | */ |
40 | 41 | public function setFieldInstance($fieldModel) |
41 | 42 | { |