@@ -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 = []; |
@@ -21,6 +21,7 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * {@inheritdoc} |
24 | + * @return string |
|
24 | 25 | */ |
25 | 26 | public function getDBValue($value, ?string $name = '') |
26 | 27 | { |
@@ -631,8 +631,6 @@ |
||
631 | 631 | /** |
632 | 632 | * Get discount from the account. |
633 | 633 | * |
634 | - * @param string $moduleName Module name |
|
635 | - * @param int $record Record ID |
|
636 | 634 | * |
637 | 635 | * @return array |
638 | 636 | */ |
@@ -564,6 +564,7 @@ discard block |
||
564 | 564 | /** |
565 | 565 | * Function gives fields based on the uitype. |
566 | 566 | * |
567 | + * @param integer $uitype |
|
567 | 568 | * @return Vtiger_Field_Model[] with field id as key |
568 | 569 | */ |
569 | 570 | public function getFieldsByUiType($uitype) |
@@ -926,6 +927,9 @@ discard block |
||
926 | 927 | return $modulesModelsList; |
927 | 928 | } |
928 | 929 | |
930 | + /** |
|
931 | + * @param string $moduleName |
|
932 | + */ |
|
929 | 933 | public static function getCleanInstance($moduleName) |
930 | 934 | { |
931 | 935 | $modelClassName = Vtiger_Loader::getComponentClassName('Model', 'Module', $moduleName); |
@@ -1015,7 +1019,7 @@ discard block |
||
1015 | 1019 | /** |
1016 | 1020 | * Function returns comments and recent activities across module. |
1017 | 1021 | * |
1018 | - * @param <Vtiger_Paging_Model> $pagingModel |
|
1022 | + * @param Vtiger_Paging_Model $pagingModel |
|
1019 | 1023 | * @param string $type - comments, updates or all |
1020 | 1024 | * |
1021 | 1025 | * @return <Array> |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * Function to get the Module to which the record belongs. |
159 | 159 | * |
160 | - * @return Vtiger_Module_Model |
|
160 | + * @return boolean |
|
161 | 161 | */ |
162 | 162 | public function getModule() |
163 | 163 | { |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | * @param string $fieldName Field name for which values need to get |
336 | 336 | * @param int|bool $record Record Id |
337 | 337 | * @param bool $rawText |
338 | - * @param int|bool $length Length of the text |
|
338 | + * @param boolean $length Length of the text |
|
339 | 339 | * |
340 | 340 | * @return bool |
341 | 341 | */ |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | /** |
374 | 374 | * Function to get the display value in ListView. |
375 | 375 | * |
376 | - * @param string|Vtiger_Field_Model $field |
|
376 | + * @param Vtiger_Field_Model $field |
|
377 | 377 | * @param bool $rawText |
378 | 378 | * |
379 | 379 | * @throws \App\Exceptions\AppException |
@@ -920,7 +920,6 @@ discard block |
||
920 | 920 | /** |
921 | 921 | * Function to get Display value for RelatedList. |
922 | 922 | * |
923 | - * @param string $value |
|
924 | 923 | * |
925 | 924 | * @return string |
926 | 925 | */ |
@@ -1001,6 +1000,7 @@ discard block |
||
1001 | 1000 | * Function to set record module field values. |
1002 | 1001 | * |
1003 | 1002 | * @param parent record model |
1003 | + * @param Vtiger_Record_Model $parentRecordModel |
|
1004 | 1004 | */ |
1005 | 1005 | public function setRecordFieldValues($parentRecordModel) |
1006 | 1006 | { |
@@ -38,7 +38,6 @@ |
||
38 | 38 | * |
39 | 39 | * @param string $untilModifiedTime |
40 | 40 | * @param int $userId |
41 | - * @param int[] $recordsToDelete |
|
42 | 41 | * |
43 | 42 | * @throws \App\Exceptions\NoPermitted |
44 | 43 | */ |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Function to get watermark type. |
52 | 52 | * |
53 | - * @return array |
|
53 | + * @return string[] |
|
54 | 54 | */ |
55 | 55 | public function getWatermarkType() |
56 | 56 | { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @param string $key |
102 | 102 | * |
103 | - * @return mixed |
|
103 | + * @return string |
|
104 | 104 | */ |
105 | 105 | public function getRaw($key) |
106 | 106 | { |
@@ -96,7 +96,7 @@ |
||
96 | 96 | */ |
97 | 97 | public function getDBValue($value, ?string $name = '') |
98 | 98 | { |
99 | - return (int)$value; |
|
99 | + return (int) $value; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |