Passed
Push — developer ( c9d396...8e0a17 )
by Błażej
90:59 queued 76:12
created
app/PrivilegeFile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	/**
54 54
 	 * Creates a file with all the user, user-role,user-profile, user-groups informations.
55 55
 	 *
56
-	 * @param $userId -- user id:: Type integer
56
+	 * @param integer $userId -- user id:: Type integer
57 57
 	 */
58 58
 	public static function createUserPrivilegesFile($userId)
59 59
 	{
Please login to merge, or discard this patch.
app/PrivilegeQuery.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
 		return '';
69 69
 	}
70 70
 
71
+	/**
72
+	 * @param string|boolean $moduleName
73
+	 */
71 74
 	public static function getConditions(\App\Db\Query $query, $moduleName, $user = false, $relatedRecord = false)
72 75
 	{
73 76
 		if ($user && $user instanceof User) {
Please login to merge, or discard this patch.
app/PrivilegeUtil.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 * Get list of users based on group id.
286 286
 	 *
287 287
 	 * @param int        $groupId
288
-	 * @param bool|array $subGroups
288
+	 * @param boolean $subGroups
289 289
 	 * @param int        $i
290 290
 	 *
291 291
 	 * @return array
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 	 *
582 582
 	 * @param int $profileid
583 583
 	 *
584
-	 * @return array
584
+	 * @return string|null
585 585
 	 */
586 586
 	public static function getStandardPermissions($profileid)
587 587
 	{
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
 	 * Get data share.
681 681
 	 *
682 682
 	 * @param int $tabId
683
-	 * @param int $roleId
683
+	 * @param string $type
684 684
 	 *
685 685
 	 * @return array
686 686
 	 */
Please login to merge, or discard this patch.
app/Purifier.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,6 @@
 block discarded – undo
376 376
 	 * Function to convert the given string to html.
377 377
 	 *
378 378
 	 * @param string $string
379
-	 * @param bool   $encode
380 379
 	 *
381 380
 	 * @return string
382 381
 	 */
Please login to merge, or discard this patch.
app/QueryField/BaseField.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,6 @@
 block discarded – undo
53 53
 	 *
54 54
 	 * @param \App\QueryGenerator $queryGenerator
55 55
 	 * @param \Vtiger_Field_Model $fieldModel
56
-	 * @param string|array        $value
57
-	 * @param string              $operator
58 56
 	 */
59 57
 	public function __construct(\App\QueryGenerator $queryGenerator, $fieldModel = false)
60 58
 	{
Please login to merge, or discard this patch.
app/QueryField/DateField.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	/**
67 67
 	 * Get value.
68 68
 	 *
69
-	 * @return mixed
69
+	 * @return string
70 70
 	 */
71 71
 	public function getValue()
72 72
 	{
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	/**
129 129
 	 * Before operator.
130 130
 	 *
131
-	 * @return array
131
+	 * @return string[]
132 132
 	 */
133 133
 	public function operatorB()
134 134
 	{
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	/**
139 139
 	 * After operator.
140 140
 	 *
141
-	 * @return array
141
+	 * @return string[]
142 142
 	 */
143 143
 	public function operatorA()
144 144
 	{
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	/**
161 161
 	 * Greater operator.
162 162
 	 *
163
-	 * @return array
163
+	 * @return string[]
164 164
 	 */
165 165
 	public function operatorGreaterthannow()
166 166
 	{
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	/**
171 171
 	 * Smaller operator.
172 172
 	 *
173
-	 * @return array
173
+	 * @return string[]
174 174
 	 */
175 175
 	public function operatorSmallerthannow()
176 176
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	 */
86 86
 	public function getArrayValue()
87 87
 	{
88
-		return array_map(function ($row) {
88
+		return array_map(function($row) {
89 89
 			return \DateTimeField::convertToDBFormat(\current(explode(' ', $row)));
90 90
 		}, explode(',', $this->value));
91 91
 	}
Please login to merge, or discard this patch.
app/QueryField/DatetimeField.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	/**
39 39
 	 * Equals operator.
40 40
 	 *
41
-	 * @return array
41
+	 * @return string[]
42 42
 	 */
43 43
 	public function operatorE()
44 44
 	{
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * Not equal operator.
52 52
 	 *
53
-	 * @return array
53
+	 * @return string[]
54 54
 	 */
55 55
 	public function operatorN()
56 56
 	{
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	/**
63 63
 	 * Between operator.
64 64
 	 *
65
-	 * @return array
65
+	 * @return string[]
66 66
 	 */
67 67
 	public function operatorBw()
68 68
 	{
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	/**
75 75
 	 * Before operator.
76 76
 	 *
77
-	 * @return array
77
+	 * @return string[]
78 78
 	 */
79 79
 	public function operatorB()
80 80
 	{
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	/**
85 85
 	 * After operator.
86 86
 	 *
87
-	 * @return array
87
+	 * @return string[]
88 88
 	 */
89 89
 	public function operatorA()
90 90
 	{
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	/**
95 95
 	 * Greater operator.
96 96
 	 *
97
-	 * @return array
97
+	 * @return string[]
98 98
 	 */
99 99
 	public function operatorGreaterthannow()
100 100
 	{
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	/**
105 105
 	 * Smaller operator.
106 106
 	 *
107
-	 * @return array
107
+	 * @return string[]
108 108
 	 */
109 109
 	public function operatorSmallerthannow()
110 110
 	{
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	/**
115 115
 	 * Get value.
116 116
 	 *
117
-	 * @return mixed
117
+	 * @return string[]
118 118
 	 */
119 119
 	public function getStdValue()
120 120
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	 */
29 29
 	public function getArrayValue()
30 30
 	{
31
-		return array_map(function ($row) {
31
+		return array_map(function($row) {
32 32
 			$parts = explode(' ', $row);
33 33
 
34 34
 			return \DateTimeField::convertToDBFormat(reset($parts));
Please login to merge, or discard this patch.
app/QueryGenerator.php 2 patches
Doc Comments   +14 added lines, -15 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	/**
134 134
 	 * Get module model.
135 135
 	 *
136
-	 * @return string
136
+	 * @return \Vtiger_Module_Model
137 137
 	 */
138 138
 	public function getModuleModel()
139 139
 	{
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 *
177 177
 	 * @param string[] $fields
178 178
 	 *
179
-	 * @return \self
179
+	 * @return QueryGenerator
180 180
 	 */
181 181
 	public function setFields($fields)
182 182
 	{
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	 *
191 191
 	 * @param int $offset
192 192
 	 *
193
-	 * @return \self
193
+	 * @return QueryGenerator
194 194
 	 */
195 195
 	public function setOffset($offset)
196 196
 	{
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	 *
205 205
 	 * @param int $limit
206 206
 	 *
207
-	 * @return \self
207
+	 * @return QueryGenerator
208 208
 	 */
209 209
 	public function setLimit($limit)
210 210
 	{
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 	 *
227 227
 	 * @param string|string[] $fields
228 228
 	 *
229
-	 * @return \self
229
+	 * @return QueryGenerator
230 230
 	 */
231 231
 	public function setField($fields)
232 232
 	{
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 	 *
257 257
 	 * @param type $columns
258 258
 	 *
259
-	 * @return \self
259
+	 * @return QueryGenerator
260 260
 	 */
261 261
 	public function setCustomColumn($columns)
262 262
 	{
@@ -278,9 +278,8 @@  discard block
 block discarded – undo
278 278
 	/**
279 279
 	 * Set concat column.
280 280
 	 *
281
-	 * @param type $columns
282 281
 	 *
283
-	 * @return \self
282
+	 * @return QueryGenerator
284 283
 	 */
285 284
 	public function setConcatColumn($fieldName, $concat)
286 285
 	{
@@ -331,7 +330,7 @@  discard block
 block discarded – undo
331 330
 	 *
332 331
 	 * @param string[] $field
333 332
 	 *
334
-	 * @return \self
333
+	 * @return QueryGenerator
335 334
 	 */
336 335
 	public function addRelatedField($field)
337 336
 	{
@@ -400,7 +399,7 @@  discard block
 block discarded – undo
400 399
 	 * @param string $fieldName
401 400
 	 * @param string $order     ASC/DESC
402 401
 	 *
403
-	 * @return \self
402
+	 * @return QueryGenerator
404 403
 	 */
405 404
 	public function setOrder($fieldName, $order = false)
406 405
 	{
@@ -415,7 +414,7 @@  discard block
 block discarded – undo
415 414
 	 *
416 415
 	 * @param string $fieldName
417 416
 	 *
418
-	 * @return \self
417
+	 * @return QueryGenerator
419 418
 	 */
420 419
 	public function setGroup($fieldName)
421 420
 	{
@@ -428,9 +427,9 @@  discard block
 block discarded – undo
428 427
 	/**
429 428
 	 * Set custom group.
430 429
 	 *
431
-	 * @param string|array $groups
430
+	 * @param \yii\db\Expression[] $groups
432 431
 	 *
433
-	 * @return \self
432
+	 * @return QueryGenerator
434 433
 	 */
435 434
 	public function setCustomGroup($groups)
436 435
 	{
@@ -636,7 +635,7 @@  discard block
 block discarded – undo
636 635
 	/**
637 636
 	 * Parsing advanced filters conditions.
638 637
 	 *
639
-	 * @return bool
638
+	 * @return false|null
640 639
 	 */
641 640
 	public function parseAdvFilter($advFilterList = false)
642 641
 	{
@@ -1077,7 +1076,7 @@  discard block
 block discarded – undo
1077 1076
 	 * Set base search condition (search_key,search_value in url).
1078 1077
 	 *
1079 1078
 	 * @param string $fieldName
1080
-	 * @param mixed  $value
1079
+	 * @param mixed  $values
1081 1080
 	 * @param string $operator
1082 1081
 	 */
1083 1082
 	public function addBaseSearchConditions($fieldName, $values, $operator = 'e')
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -693,7 +693,7 @@
 block discarded – undo
693 693
 			$this->stdFilterList = $customView->getStdFilterByCvid($viewId);
694 694
 			$this->advFilterList = $customView->getAdvFilterByCvid($viewId);
695 695
 			if (is_array($this->stdFilterList) && !empty($this->stdFilterList['columnname'])) {
696
-				list(, , $fieldName) = explode(':', $this->stdFilterList['columnname']);
696
+				list(,, $fieldName) = explode(':', $this->stdFilterList['columnname']);
697 697
 				$this->addNativeCondition([
698 698
 					'between',
699 699
 					$fieldName,
Please login to merge, or discard this patch.
app/Record.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -174,6 +174,10 @@
 block discarded – undo
174 174
 		return $entityDisplay;
175 175
 	}
176 176
 
177
+	/**
178
+	 * @param string $moduleName
179
+	 * @param integer $id
180
+	 */
177 181
 	public static function updateLabel($moduleName, $id, $insertMode = false, $updater = false)
178 182
 	{
179 183
 		$labelInfo = static::computeLabels($moduleName, $id, true);
Please login to merge, or discard this patch.