@@ -58,6 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Set headers to send. |
61 | + * @param string $header |
|
61 | 62 | */ |
62 | 63 | public function setHeader($header) |
63 | 64 | { |
@@ -78,6 +79,7 @@ discard block |
||
78 | 79 | |
79 | 80 | /** |
80 | 81 | * Set emit type. |
82 | + * @param integer $type |
|
81 | 83 | */ |
82 | 84 | public function setEmitType($type) |
83 | 85 | { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * Function to get the instance of the logged in User. |
68 | 68 | * |
69 | - * @return Users object |
|
69 | + * @return boolean object |
|
70 | 70 | */ |
71 | 71 | public function getLogin() |
72 | 72 | { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * @param \App\Controller\Base $handler |
248 | 248 | * @param \App\Request $request |
249 | 249 | * |
250 | - * @return bool |
|
250 | + * @return boolean|null |
|
251 | 251 | */ |
252 | 252 | protected function triggerPreProcess(\App\Controller\Base $handler, \App\Request $request) |
253 | 253 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * @param \App\Controller\Base $handler |
266 | 266 | * @param \App\Request $request |
267 | 267 | * |
268 | - * @return bool |
|
268 | + * @return boolean|null |
|
269 | 269 | */ |
270 | 270 | protected function triggerPostProcess(\App\Controller\Base $handler, \App\Request $request) |
271 | 271 | { |
@@ -10,11 +10,17 @@ |
||
10 | 10 | |
11 | 11 | class Vtiger_Cache_Connector_Memory |
12 | 12 | { |
13 | + /** |
|
14 | + * @param string $key |
|
15 | + */ |
|
13 | 16 | public function set($key, $value) |
14 | 17 | { |
15 | 18 | $this->$key = $value; |
16 | 19 | } |
17 | 20 | |
21 | + /** |
|
22 | + * @param string $key |
|
23 | + */ |
|
18 | 24 | public function get($key) |
19 | 25 | { |
20 | 26 | return $this->$key ?? false; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * log message into the file if in debug mode. |
24 | 24 | * |
25 | - * @param type $message |
|
25 | + * @param string $message |
|
26 | 26 | * @param type $delimiter |
27 | 27 | */ |
28 | 28 | protected function log($message, $delimiter = '\n') |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * @param string $moduleName |
166 | 166 | * @param bool $fetch |
167 | 167 | * |
168 | - * @return html data |
|
168 | + * @return string|boolean data |
|
169 | 169 | */ |
170 | 170 | public function view($templateName, $moduleName = '', $fetch = false) |
171 | 171 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * The function gets the value of the module. |
32 | 32 | * |
33 | 33 | * @param string $module |
34 | - * @param array $varname |
|
34 | + * @param string $varname |
|
35 | 35 | * |
36 | 36 | * @return array |
37 | 37 | */ |
@@ -136,12 +136,12 @@ |
||
136 | 136 | * Populate the entity fields with the lead info. |
137 | 137 | * If mandatory field is not provided populate with '????'. |
138 | 138 | * |
139 | - * @param array $entityvalue |
|
139 | + * @param string $entityvalue |
|
140 | 140 | * @param string $entity |
141 | 141 | * @param Vtiger_Record_Model $recordModel |
142 | 142 | * @param string $leadinfo |
143 | 143 | * |
144 | - * @return entity array |
|
144 | + * @return string array |
|
145 | 145 | */ |
146 | 146 | public static function vtwsPopulateConvertLeadEntities($entityvalue, $entity, Vtiger_Record_Model $recordModel, $leadinfo) |
147 | 147 | { |
@@ -206,9 +206,9 @@ |
||
206 | 206 | /** |
207 | 207 | * Function used to transfer all the lead related records to given Entity(Contact/Account) record. |
208 | 208 | * |
209 | - * @param $leadid - leadid |
|
209 | + * @param integer $leadid - leadid |
|
210 | 210 | * @param $relatedid - related entity id (contactid/accountid) |
211 | - * @param $setype - related module(Accounts/Contacts) |
|
211 | + * @param string $setype - related module(Accounts/Contacts) |
|
212 | 212 | */ |
213 | 213 | public static function vtwsTransferLeadRelatedRecords($leadId, $relatedId, $seType) |
214 | 214 | { |
@@ -740,7 +740,7 @@ |
||
740 | 740 | public function generateQuestionMarks($items) |
741 | 741 | { |
742 | 742 | // array_map will call the function specified in the first parameter for every element of the list in second parameter |
743 | - return implode(',', array_map(function ($a) { |
|
743 | + return implode(',', array_map(function($a) { |
|
744 | 744 | return '?'; |
745 | 745 | }, is_array($items) ? $items : explode(',', $items))); |
746 | 746 | } |
@@ -112,6 +112,14 @@ discard block |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @param string $dbtype |
|
117 | + * @param string $host |
|
118 | + * @param string $dbname |
|
119 | + * @param string $username |
|
120 | + * @param string $passwd |
|
121 | + * @param integer $port |
|
122 | + */ |
|
115 | 123 | protected function loadDBConfig($dbtype, $host, $dbname, $username, $passwd, $port) |
116 | 124 | { |
117 | 125 | if ($host == '_SERVER_') { |
@@ -140,6 +148,9 @@ discard block |
||
140 | 148 | return $msg; |
141 | 149 | } |
142 | 150 | |
151 | + /** |
|
152 | + * @param string $message |
|
153 | + */ |
|
143 | 154 | public function checkError($message, $dieOnError = false, $query = false, $params = false) |
144 | 155 | { |
145 | 156 | if ($this->hasActiveTransaction) { |
@@ -418,7 +429,7 @@ discard block |
||
418 | 429 | * |
419 | 430 | * @param string $table Table name |
420 | 431 | * @param string $where Conditions |
421 | - * @param array $params Query data |
|
432 | + * @param string[] $params Query data |
|
422 | 433 | * |
423 | 434 | * @return int Number of deleted records |
424 | 435 | */ |
@@ -467,6 +478,9 @@ discard block |
||
467 | 478 | return $this->stmt->rowCount(); |
468 | 479 | } |
469 | 480 | |
481 | + /** |
|
482 | + * @param integer $row |
|
483 | + */ |
|
470 | 484 | public function queryResult(&$result, $row, $col = 0) |
471 | 485 | { |
472 | 486 | return $this->queryResultRaw($result, $row, $col); |
@@ -621,6 +635,9 @@ discard block |
||
621 | 635 | } |
622 | 636 | } |
623 | 637 | |
638 | + /** |
|
639 | + * @param string $seqname |
|
640 | + */ |
|
624 | 641 | public function getUniqueID($seqname) |
625 | 642 | { |
626 | 643 | $tableName = $seqname . '_seq'; |
@@ -637,6 +654,9 @@ discard block |
||
637 | 654 | return $id; |
638 | 655 | } |
639 | 656 | |
657 | + /** |
|
658 | + * @param string $tableName |
|
659 | + */ |
|
640 | 660 | public function checkExistTable($tableName, $cache = true) |
641 | 661 | { |
642 | 662 | $tablePresent = Vtiger_Cache::get('checkExistTable', $tableName); |
@@ -665,6 +685,9 @@ discard block |
||
665 | 685 | return $this->database->lastInsertId(); |
666 | 686 | } |
667 | 687 | |
688 | + /** |
|
689 | + * @param string $datetime |
|
690 | + */ |
|
668 | 691 | public function formatDate($datetime, $strip_quotes = false) |
669 | 692 | { |
670 | 693 | // remove single quotes to use the date as parameter for Prepared statement |
@@ -809,6 +832,9 @@ discard block |
||
809 | 832 | protected $logSqlTimeID = false; |
810 | 833 | protected $logSqlTimeGroup = 1; |
811 | 834 | |
835 | + /** |
|
836 | + * @param double $endat |
|
837 | + */ |
|
812 | 838 | public function logSqlTime($startat, $endat, $sql, $params = false) |
813 | 839 | { |
814 | 840 | if (!AppConfig::performance('SQL_LOG_INCLUDE_CALLER')) { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @throws \Api\Core\Exception |
63 | 63 | * |
64 | - * @return bool |
|
64 | + * @return boolean|null |
|
65 | 65 | */ |
66 | 66 | public function checkPermission() |
67 | 67 | { |