Completed
Pull Request — developer (#8881)
by Sławomir
178:12 queued 163:40
created
config/csrf_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	{
18 18
 		//Override the default expire time of token
19 19
 		\CsrfMagic\Csrf::$expires = 259200;
20
-		\CsrfMagic\Csrf::$callback = function ($tokens) {
20
+		\CsrfMagic\Csrf::$callback = function($tokens) {
21 21
 			throw new \App\Exceptions\AppException('Invalid request - Response For Illegal Access');
22 22
 		};
23 23
 		$js = 'vendor/yetiforce/csrf-magic/src/Csrf.min.js';
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/MultiImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 		if (!is_array($value)) {
124 124
 			return '';
125 125
 		}
126
-		$value = array_map(function ($v) {
126
+		$value = array_map(function($v) {
127 127
 			return $v['name'];
128 128
 		}, $value);
129 129
 		$result = implode(', ', $value);
Please login to merge, or discard this patch.
app/Encryption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 	 */
190 190
 	public static function getMethods()
191 191
 	{
192
-		return array_filter(openssl_get_cipher_methods(), function ($methodName) {
192
+		return array_filter(openssl_get_cipher_methods(), function($methodName) {
193 193
 			return stripos($methodName, 'gcm') === false && stripos($methodName, 'ccm') === false;
194 194
 		});
195 195
 	}
Please login to merge, or discard this patch.
app/Fields/File.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1030,7 +1030,7 @@
 block discarded – undo
1030 1030
 	 */
1031 1031
 	public static function parse(array $value)
1032 1032
 	{
1033
-		return array_reduce($value, function ($result, $item) {
1033
+		return array_reduce($value, function($result, $item) {
1034 1034
 			$result[$item['key']] = $item;
1035 1035
 			return $result;
1036 1036
 		}, []);
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 *
111 111
 	 * @param array $fileInfo
112 112
 	 *
113
-	 * @return \self
113
+	 * @return File
114 114
 	 */
115 115
 	public static function loadFromInfo($fileInfo)
116 116
 	{
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 *
127 127
 	 * @param array $file
128 128
 	 *
129
-	 * @return \self
129
+	 * @return File
130 130
 	 */
131 131
 	public static function loadFromRequest($file)
132 132
 	{
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 *
144 144
 	 * @param array $path
145 145
 	 *
146
-	 * @return \self
146
+	 * @return File
147 147
 	 */
148 148
 	public static function loadFromPath($path)
149 149
 	{
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
 	/**
700 700
 	 * Create document from content.
701 701
 	 *
702
-	 * @param \self $file
702
+	 * @param File $file
703 703
 	 * @param array $params
704 704
 	 *
705 705
 	 * @throws \Exception
Please login to merge, or discard this patch.
modules/com_vtiger_workflow/Workflow.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	/**
205 205
 	 * Sets next trigger time.
206 206
 	 *
207
-	 * @param timestamp $time
207
+	 * @param string|null $time
208 208
 	 */
209 209
 	public function setNextTriggerTime($time)
210 210
 	{
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	 *
280 280
 	 * @global string $default_timezone
281 281
 	 *
282
-	 * @return timestamp
282
+	 * @return string|null
283 283
 	 */
284 284
 	public function getNextTriggerTime()
285 285
 	{
@@ -326,9 +326,9 @@  discard block
 block discarded – undo
326 326
 	/**
327 327
 	 * get next trigger time for daily.
328 328
 	 *
329
-	 * @param type $schTime
329
+	 * @param type $scheduledTime
330 330
 	 *
331
-	 * @return time
331
+	 * @return string
332 332
 	 */
333 333
 	public function getNextTriggerTimeForDaily($scheduledTime)
334 334
 	{
@@ -346,10 +346,10 @@  discard block
 block discarded – undo
346 346
 	/**
347 347
 	 * get next trigger Time For weekly.
348 348
 	 *
349
-	 * @param json $scheduledDaysOfWeek
349
+	 * @param integer $scheduledDaysOfWeek
350 350
 	 * @param time $scheduledTime
351 351
 	 *
352
-	 * @return time
352
+	 * @return string
353 353
 	 */
354 354
 	public function getNextTriggerTimeForWeekly($scheduledDaysOfWeek, $scheduledTime)
355 355
 	{
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 	 * @param int $scheduledDayOfMonth
411 411
 	 * @param int $scheduledTime
412 412
 	 *
413
-	 * @return time
413
+	 * @return string
414 414
 	 */
415 415
 	public function getNextTriggerTimeForMonthlyByDate($scheduledDayOfMonth, $scheduledTime)
416 416
 	{
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
 	 * @param int       $scheduledWeekDayOfMonth
461 461
 	 * @param timestamp $scheduledTime
462 462
 	 *
463
-	 * @return time
463
+	 * @return string
464 464
 	 */
465 465
 	public function getNextTriggerTimeForMonthlyByWeekDay($scheduledWeekDayOfMonth, $scheduledTime)
466 466
 	{
@@ -485,10 +485,10 @@  discard block
 block discarded – undo
485 485
 	/**
486 486
 	 * to get next trigger time.
487 487
 	 *
488
-	 * @param json      $annualDates
488
+	 * @param boolean      $annualDates
489 489
 	 * @param timestamp $scheduledTime
490 490
 	 *
491
-	 * @return time
491
+	 * @return string
492 492
 	 */
493 493
 	public function getNextTriggerTimeForAnnualDates($annualDates, $scheduledTime)
494 494
 	{
Please login to merge, or discard this patch.
modules/Vtiger/helpers/AdvancedFilter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -165,6 +165,9 @@
 block discarded – undo
165 165
 		return $wfCondition;
166 166
 	}
167 167
 
168
+	/**
169
+	 * @param string|boolean $moduleName
170
+	 */
168 171
 	public static function getDateFilter($moduleName)
169 172
 	{
170 173
 		foreach (\App\CustomView::getDateFilterTypes() as $comparatorKey => $comparatorInfo) {
Please login to merge, or discard this patch.
app/Controller/Modal.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 *
59 59
 	 * @param \App\Request $request
60 60
 	 *
61
-	 * @return \Vtiger_JsScript_Model[]
61
+	 * @return Vtiger_JsScript_Model[]
62 62
 	 */
63 63
 	public function getModalScripts(\App\Request $request)
64 64
 	{
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 *
75 75
 	 * @param \App\Request $request
76 76
 	 *
77
-	 * @return \Vtiger_CssScript_Model[]
77
+	 * @return Vtiger_CssScript_Model[]
78 78
 	 */
79 79
 	public function getModalCss(\App\Request $request)
80 80
 	{
Please login to merge, or discard this patch.
modules/Vtiger/models/ChartFilter.php 2 patches
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 * @param int $linkId
273 273
 	 * @param int $userId
274 274
 	 *
275
-	 * @return \self
275
+	 * @return Vtiger_ChartFilter_Model
276 276
 	 */
277 277
 	public static function getInstance($linkId = 0, $userId = 0)
278 278
 	{
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 	/**
396 396
 	 * Get filter id.
397 397
 	 *
398
-	 * @param string|int $dividingValue
398
+	 * @param integer $dividingValue
399 399
 	 *
400 400
 	 * @return int
401 401
 	 */
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 	/**
574 574
 	 * Iterate through all rows collected from db.
575 575
 	 *
576
-	 * @param {callback} $callback
576
+	 * @param Closure $callback
577 577
 	 */
578 578
 	protected function iterateAllRows($callback)
579 579
 	{
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 	/**
653 653
 	 * Set colors.
654 654
 	 *
655
-	 * @param {string} $from
655
+	 * @param string $from
656 656
 	 */
657 657
 	protected function setColorsFrom($from)
658 658
 	{
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
 	/**
679 679
 	 * Add query to get picklists id (for colors).
680 680
 	 *
681
-	 * @param $query
681
+	 * @param App\Db\Query $query
682 682
 	 * @param $queryGenerator
683 683
 	 *
684 684
 	 * @return $query
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
 	/**
711 711
 	 * Get query for specified filter.
712 712
 	 *
713
-	 * @param $filter
713
+	 * @param integer $filter
714 714
 	 *
715 715
 	 * @return \App\Db\Query
716 716
 	 */
@@ -866,7 +866,6 @@  discard block
 block discarded – undo
866 866
 	/**
867 867
 	 * Get current rows.
868 868
 	 *
869
-	 * @param int        $index         row index
870 869
 	 * @param string|int $groupValue
871 870
 	 * @param string|int $dividingValue
872 871
 	 */
@@ -879,7 +878,7 @@  discard block
 block discarded – undo
879 878
 	 * Get rows for dividing field chart.
880 879
 	 *
881 880
 	 * @param \App\QueryGenerator $query
882
-	 * @param string|int          $dividingValue
881
+	 * @param integer          $dividingValue
883 882
 	 *
884 883
 	 * @return array
885 884
 	 */
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
 		$colors = \App\Fields\Picklist::getColors($fieldName);
595 595
 		$this->colorsFrom = 'picklist';
596 596
 		$this->colorsFromRow = 'picklist_id';
597
-		$this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) use ($colors) {
597
+		$this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) use ($colors) {
598 598
 			if (isset($colors[$row['picklist_id']])) {
599 599
 				$this->colors[$row['picklist_id']] = $colors[$row['picklist_id']];
600 600
 			}
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
 		$this->colorsFrom = 'filters';
610 610
 		$this->colorsFromRow = 'color';
611 611
 		$colors = \App\Colors::getAllFilterColors();
612
-		$this->iterateAllRows(function (&$row, $groupValue, $dividingValue, $rowIndex) use ($colors) {
612
+		$this->iterateAllRows(function(&$row, $groupValue, $dividingValue, $rowIndex) use ($colors) {
613 613
 			$this->colors[$dividingValue] = $colors[$this->filterIds[$dividingValue]];
614 614
 		});
615 615
 	}
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 	{
622 622
 		$this->colorsFrom = 'assigned_user_id';
623 623
 		$this->colorsFromRow = 'assigned_user_id';
624
-		$this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) {
624
+		$this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) {
625 625
 			$this->colors[$row['assigned_user_id']] = \App\Fields\Owner::getColor($row['assigned_user_id']);
626 626
 		});
627 627
 	}
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 	{
634 634
 		$this->colorsFrom = 'record_id';
635 635
 		$this->colorsFromRow = 'id';
636
-		$this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) {
636
+		$this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) {
637 637
 			$this->colors[$row['id']] = \App\Colors::getRandomColor('from_id_' . $row['id']);
638 638
 		});
639 639
 	}
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 	{
646 646
 		$this->colorsFrom = 'record_number';
647 647
 		$this->colorsFromRow = 'record_number';
648
-		$this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) {
648
+		$this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) {
649 649
 			$this->colors[$groupValue] = \App\Colors::getRandomColor('generated_' . $groupValue);
650 650
 		});
651 651
 	}
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
 		$this->calculateAverage();
939 939
 		$this->normalizeData();
940 940
 		$this->setColorsFrom($this->findOutColorsFromRows());
941
-		$this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) {
941
+		$this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) {
942 942
 			$this->setColorFromRow($row, $groupValue, $dividingValue);
943 943
 		});
944 944
 		return $this->data;
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
 	protected function generateSectorsData()
1184 1184
 	{
1185 1185
 		// in funnel chart there is only one dividingValue 0 so it will iterate only once like flat array
1186
-		$this->iterateAllRows(function ($row, $groupValue, $dividingValue, $rowIndex) {
1186
+		$this->iterateAllRows(function($row, $groupValue, $dividingValue, $rowIndex) {
1187 1187
 			$value = (float) $row[$this->valueName];
1188 1188
 			$sectorId = $this->getSectorForValue($value);
1189 1189
 			$sectorIndex = array_search($sectorId, $this->sectors);
Please login to merge, or discard this patch.
modules/Vtiger/actions/Mass.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	 *
17 17
 	 * @param \App\Request $request
18 18
 	 *
19
-	 * @return \App\QueryGenerator|bool
19
+	 * @return string[]
20 20
 	 */
21 21
 	public static function getQuery(\App\Request $request)
22 22
 	{
Please login to merge, or discard this patch.