@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * |
155 | 155 | * @param DateTime $referenceTime |
156 | 156 | * |
157 | - * @return Workflow |
|
157 | + * @return Workflow[] |
|
158 | 158 | */ |
159 | 159 | public function getScheduledWorkflows($referenceTime = false) |
160 | 160 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * |
245 | 245 | * @param string $type |
246 | 246 | * |
247 | - * @return \workflowClass |
|
247 | + * @return Workflow |
|
248 | 248 | */ |
249 | 249 | protected function getWorkflowInstance($type = 'basic') |
250 | 250 | { |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | * |
262 | 262 | * @param The id of the workflow |
263 | 263 | * |
264 | - * @return A workflow object |
|
264 | + * @return Workflow|null workflow object |
|
265 | 265 | */ |
266 | 266 | public function retrieve($id) |
267 | 267 | { |
@@ -207,7 +207,7 @@ |
||
207 | 207 | /** |
208 | 208 | * Special Date functions. |
209 | 209 | * |
210 | - * @return array |
|
210 | + * @return string[] |
|
211 | 211 | */ |
212 | 212 | public function specialDateTimeOperator() |
213 | 213 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @param string $moduleName |
65 | 65 | * |
66 | - * @return Vtiger_Record_Model or Module Specific Record Model instance |
|
66 | + * @return CustomView_Record_Model or Module Specific Record Model instance |
|
67 | 67 | */ |
68 | 68 | public function setModule($moduleName) |
69 | 69 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @param Vtiger_Module_Model $module |
79 | 79 | * |
80 | - * @return Vtiger_Record_Model or Module Specific Record Model instance |
|
80 | + * @return CustomView_Record_Model or Module Specific Record Model instance |
|
81 | 81 | */ |
82 | 82 | public function setModuleFromInstance($module) |
83 | 83 | { |
@@ -630,7 +630,7 @@ |
||
630 | 630 | ->innerJoin('vtiger_customview', 'vtiger_cvcolumnlist.cvid = vtiger_customview.cvid') |
631 | 631 | ->where(['vtiger_customview.cvid' => $cvId])->orderBy('vtiger_cvcolumnlist.columnindex') |
632 | 632 | ->createCommand()->queryAllByGroup(1); |
633 | - return array_map(function ($item) { |
|
633 | + return array_map(function($item) { |
|
634 | 634 | return "{$item['module_name']}:{$item['field_name']}" . ($item['source_field_name'] ? ":{$item['source_field_name']}" : ''); |
635 | 635 | }, $selectedFields); |
636 | 636 | } |
@@ -168,7 +168,7 @@ |
||
168 | 168 | /** |
169 | 169 | * The function decide about mandatory save record. |
170 | 170 | * |
171 | - * @return type |
|
171 | + * @return boolean |
|
172 | 172 | */ |
173 | 173 | public function isMandatorySave() |
174 | 174 | { |
@@ -15,6 +15,7 @@ |
||
15 | 15 | * Function to get Instance of Faq Record Model using TroubleTicket RecordModel. |
16 | 16 | * |
17 | 17 | * @param HelpDesk_Record_Model |
18 | + * @param Vtiger_Record_Model $parentRecordModel |
|
18 | 19 | * |
19 | 20 | * @return Faq_Record_Model |
20 | 21 | */ |
@@ -388,8 +388,6 @@ discard block |
||
388 | 388 | /** |
389 | 389 | * Function transforms value for reference type field. |
390 | 390 | * |
391 | - * @param \Vtiger_Field_Model $fieldInstance |
|
392 | - * @param string $fieldValue |
|
393 | 391 | * |
394 | 392 | * @return mixed |
395 | 393 | */ |
@@ -965,7 +963,7 @@ discard block |
||
965 | 963 | * |
966 | 964 | * @param array $inventoryData |
967 | 965 | * |
968 | - * @return \App\Base |
|
966 | + * @return App\Request |
|
969 | 967 | */ |
970 | 968 | public function convertInventoryDataToObject($inventoryData = []) |
971 | 969 | { |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | } |
329 | 329 | } |
330 | 330 | // remove empty values - do not modify existing |
331 | - $fieldData = array_filter($fieldData, function ($fieldValue) { |
|
331 | + $fieldData = array_filter($fieldData, function($fieldValue) { |
|
332 | 332 | return $fieldValue !== ''; |
333 | 333 | }); |
334 | 334 | $fieldData = $this->transformForImport($fieldData); |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | } |
351 | 351 | } |
352 | 352 | // remove empty values - do not modify existing |
353 | - $fieldData = array_filter($fieldData, function ($fieldValue) { |
|
353 | + $fieldData = array_filter($fieldData, function($fieldValue) { |
|
354 | 354 | return $fieldValue !== ''; |
355 | 355 | }); |
356 | 356 | $fieldData = $this->transformForImport($fieldData); |
@@ -132,7 +132,7 @@ |
||
132 | 132 | /** |
133 | 133 | * Function returns list of templates to import. |
134 | 134 | * |
135 | - * @param type $moduleName |
|
135 | + * @param string $moduleName |
|
136 | 136 | * |
137 | 137 | * @return array |
138 | 138 | */ |
@@ -161,7 +161,7 @@ |
||
161 | 161 | * |
162 | 162 | * @param array $data |
163 | 163 | * |
164 | - * @return int |
|
164 | + * @return string |
|
165 | 165 | */ |
166 | 166 | public function addRecordToDB($data) |
167 | 167 | { |
@@ -185,6 +185,7 @@ discard block |
||
185 | 185 | * @param int $id - istorageid |
186 | 186 | * @param array $parentIStorages - Array of all the parent storages |
187 | 187 | * returns All the parent Storages of the given istorageid in array format |
188 | + * @param integer[] $encounteredIStorages |
|
188 | 189 | */ |
189 | 190 | public function getParentIStorages($id, &$parentIStorages, &$encounteredIStorages, $depthBase = 0) |
190 | 191 | { |
@@ -252,7 +253,7 @@ discard block |
||
252 | 253 | * |
253 | 254 | * @param int $id - istorageid |
254 | 255 | * @param array $childIStorages - Array of all the child storages |
255 | - * @param int $depth - Depth at which the particular storage has to be placed in the hierarchy |
|
256 | + * @param int $depthBase - Depth at which the particular storage has to be placed in the hierarchy |
|
256 | 257 | * returns All the child storages of the given istorageid in array format |
257 | 258 | */ |
258 | 259 | public function getChildIStorages($id, &$childIStorages, $depthBase) |