@@ -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 | { |
@@ -13,6 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | /** |
15 | 15 | * {@inheritdoc} |
16 | + * @param string $moduleName |
|
16 | 17 | */ |
17 | 18 | public static function getInstance($moduleName, $sourceModule = 0) |
18 | 19 | { |
@@ -106,6 +106,10 @@ |
||
106 | 106 | } |
107 | 107 | } |
108 | 108 | |
109 | + /** |
|
110 | + * @param Vtiger_Record_Model $recordModel |
|
111 | + * @param Vtiger_Record_Model $parentRecordModel |
|
112 | + */ |
|
109 | 113 | public function setFieldMapping($fieldValueMapping, $recordModel, $parentRecordModel) |
110 | 114 | { |
111 | 115 | $ownerFields = []; |