@@ -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 | { |
@@ -288,7 +288,7 @@ |
||
| 288 | 288 | * |
| 289 | 289 | * @param \App\Request $request - request model |
| 290 | 290 | * |
| 291 | - * @return Vtiger_CssScript_Model[] |
|
| 291 | + * @return App\Controller\Vtiger_CssScript_Model[] |
|
| 292 | 292 | */ |
| 293 | 293 | public function getHeaderCss(\App\Request $request) |
| 294 | 294 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $lang = ''; |
| 44 | 44 | if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { |
| 45 | 45 | $languages = Install_Utils_Model::getLanguages(); |
| 46 | - array_walk($languages, function (&$shortCode, $code) { |
|
| 46 | + array_walk($languages, function(&$shortCode, $code) { |
|
| 47 | 47 | $shortCode = Locale::getPrimaryLanguage($code); |
| 48 | 48 | }); |
| 49 | 49 | foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $code) { |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @param array $linkParams |
| 18 | 18 | * |
| 19 | - * @return array - Associative array of Link type to List of Vtiger_Link_Model instances for Mass Actions |
|
| 19 | + * @return Vtiger_Link_Model[] - Associative array of Link type to List of Vtiger_Link_Model instances for Mass Actions |
|
| 20 | 20 | */ |
| 21 | 21 | public function getListViewMassActions($linkParams) |
| 22 | 22 | { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * @param string $moduleName |
| 91 | 91 | * @param int $userId |
| 92 | 92 | * |
| 93 | - * @return int|bool |
|
| 93 | + * @return integer|null |
|
| 94 | 94 | */ |
| 95 | 95 | public function undo($moduleName, $userId) |
| 96 | 96 | { |