Completed
Push — developer ( f53b91...475c9e )
by Błażej
386:14 queued 360:35
created
include/utils/VtlibUtils.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
include/Webservices/ConvertLead.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,12 +136,12 @@
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
include/Webservices/Utils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,9 +206,9 @@
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
api/webservice/Portal/BaseModule/Fields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 			$block = $field->get('block');
29 29
 			if (!isset($blocks[$block->id])) {
30 30
 				$blockProperties = get_object_vars($block);
31
-				$blocks[$block->id] = array_filter($blockProperties, function ($v, $k) {
31
+				$blocks[$block->id] = array_filter($blockProperties, function($v, $k) {
32 32
 					return !is_object($v);
33 33
 				}, ARRAY_FILTER_USE_BOTH);
34 34
 				$blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName);
Please login to merge, or discard this patch.
include/database/PearDatabase.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -740,7 +740,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -113,6 +113,14 @@  discard block
 block discarded – undo
113 113
 		}
114 114
 	}
115 115
 
116
+	/**
117
+	 * @param string $dbtype
118
+	 * @param string $host
119
+	 * @param string $dbname
120
+	 * @param string $username
121
+	 * @param string $passwd
122
+	 * @param integer $port
123
+	 */
116 124
 	protected function loadDBConfig($dbtype, $host, $dbname, $username, $passwd, $port)
117 125
 	{
118 126
 		if ($host == '_SERVER_') {
@@ -141,6 +149,9 @@  discard block
 block discarded – undo
141 149
 		return $msg;
142 150
 	}
143 151
 
152
+	/**
153
+	 * @param string $message
154
+	 */
144 155
 	public function checkError($message, $dieOnError = false, $query = false, $params = false)
145 156
 	{
146 157
 		if ($this->hasActiveTransaction) {
@@ -473,6 +484,9 @@  discard block
 block discarded – undo
473 484
 		return $this->stmt->rowCount();
474 485
 	}
475 486
 
487
+	/**
488
+	 * @param integer $row
489
+	 */
476 490
 	public function queryResult(&$result, $row, $col = 0)
477 491
 	{
478 492
 		return $this->queryResultRaw($result, $row, $col);
@@ -637,6 +651,9 @@  discard block
 block discarded – undo
637 651
 		}
638 652
 	}
639 653
 
654
+	/**
655
+	 * @param string $seqname
656
+	 */
640 657
 	public function getUniqueID($seqname)
641 658
 	{
642 659
 		$tableName = $seqname . '_seq';
@@ -654,6 +671,9 @@  discard block
 block discarded – undo
654 671
 		return $id;
655 672
 	}
656 673
 
674
+	/**
675
+	 * @param string $tableName
676
+	 */
657 677
 	public function checkExistTable($tableName, $cache = true)
658 678
 	{
659 679
 		$tablePresent = Vtiger_Cache::get('checkExistTable', $tableName);
@@ -684,6 +704,9 @@  discard block
 block discarded – undo
684 704
 		return $lastInsertID;
685 705
 	}
686 706
 
707
+	/**
708
+	 * @param string $datetime
709
+	 */
687 710
 	public function formatDate($datetime, $strip_quotes = false)
688 711
 	{
689 712
 		// remove single quotes to use the date as parameter for Prepared statement
@@ -836,6 +859,9 @@  discard block
 block discarded – undo
836 859
 	protected $logSqlTimeID = false;
837 860
 	protected $logSqlTimeGroup = 1;
838 861
 
862
+	/**
863
+	 * @param double $endat
864
+	 */
839 865
 	public function logSqlTime($startat, $endat, $sql, $params = false)
840 866
 	{
841 867
 		if (!AppConfig::performance('SQL_LOG_INCLUDE_CALLER')) {
Please login to merge, or discard this patch.
api/webservice/Portal/BaseModule/Record.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
install/models/Utils.php 1 patch
Doc Comments   +1 added lines, -10 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 *
67 67
 	 * @param type $dbType
68 68
 	 *
69
-	 * @return type
69
+	 * @return boolean
70 70
 	 */
71 71
 	public static function isMySQL($dbType)
72 72
 	{
@@ -76,15 +76,6 @@  discard block
 block discarded – undo
76 76
 	/**
77 77
 	 * Function checks the database connection.
78 78
 	 *
79
-	 * @param string $db_type
80
-	 * @param string $db_hostname
81
-	 * @param string $db_username
82
-	 * @param string $db_password
83
-	 * @param string $db_name
84
-	 * @param string $create_db
85
-	 * @param string $create_utf8_db
86
-	 * @param string $root_user
87
-	 * @param string $root_password
88 79
 	 *
89 80
 	 * @return <Array>
90 81
 	 */
Please login to merge, or discard this patch.
install/views/Index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
modules/Accounts/Accounts.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,6 +264,7 @@  discard block
 block discarded – undo
264 264
 	 * @param int   $id              - accountid
265 265
 	 * @param array $parent_accounts - Array of all the parent accounts
266 266
 	 *                               returns All the parent accounts of the given accountid in array format
267
+	 * @param integer[] $encountered_accounts
267 268
 	 */
268 269
 	public function __getParentAccounts($id, &$parent_accounts, &$encountered_accounts, $depthBase = 0)
269 270
 	{
@@ -328,7 +329,7 @@  discard block
 block discarded – undo
328 329
 	 *
329 330
 	 * @param int   $id             - accountid
330 331
 	 * @param array $child_accounts - Array of all the child accounts
331
-	 * @param int   $depth          - Depth at which the particular account has to be placed in the hierarchy
332
+	 * @param int   $depthBase          - Depth at which the particular account has to be placed in the hierarchy
332 333
 	 *                              returns All the child accounts of the given accountid in array format
333 334
 	 */
334 335
 	public function __getChildAccounts($id, &$child_accounts, $depthBase)
Please login to merge, or discard this patch.