Passed
Pull Request — developer (#8408)
by Sławomir
40:51 queued 19:45
created
modules/CustomView/models/Record.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 		[$fieldModuleName, $fieldName, $sourceFieldName] = array_pad(explode(':', $rule['fieldname']), 3, false);
453 453
 		$operator = $rule['operator'];
454 454
 		$value = $rule['value'];
455
-		if (!$this->get('advfilterlistDbFormat') &&  !in_array($operator, App\CustomView::FILTERS_WITHOUT_VALUES + array_keys(App\CustomView::DATE_FILTER_CONDITIONS))) {
455
+		if (!$this->get('advfilterlistDbFormat') && !in_array($operator, App\CustomView::FILTERS_WITHOUT_VALUES + array_keys(App\CustomView::DATE_FILTER_CONDITIONS))) {
456 456
 			$value = Vtiger_Field_Model::getInstance($fieldName, Vtiger_Module_Model::getInstance($fieldModuleName))
457 457
 				->getUITypeModel()
458 458
 				->getDbConditionBuilderValue($rule['value'], $operator);
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
 			->innerJoin('vtiger_customview', 'vtiger_cvcolumnlist.cvid = vtiger_customview.cvid')
613 613
 			->where(['vtiger_customview.cvid' => $cvId])->orderBy('vtiger_cvcolumnlist.columnindex')
614 614
 			->createCommand()->queryAllByGroup(1);
615
-		return array_map(function ($item) {
615
+		return array_map(function($item) {
616 616
 			return "{$item['module_name']}:{$item['field_name']}" . ($item['source_field_name'] ? ":{$item['source_field_name']}" : '');
617 617
 		}, $selectedFields);
618 618
 	}
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/Picklist.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 	 */
17 17
 	public function getDbConditionBuilderValue($value, string $operator)
18 18
 	{
19
-		$values= [];
19
+		$values = [];
20 20
 		foreach ($value as $val) {
21
-			$values[]= parent::getDbConditionBuilderValue($val, $operator);
21
+			$values[] = parent::getDbConditionBuilderValue($val, $operator);
22 22
 		}
23 23
 		return implode('##', $values);
24 24
 	}
Please login to merge, or discard this patch.
modules/Vtiger/uitypes/Date.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
 			$values = explode(',', $value);
29 29
 			foreach ($values as &$val) {
30 30
 				$this->validate($val, true);
31
-				$val =	$this->getDBValue($val);
31
+				$val = $this->getDBValue($val);
32 32
 			}
33 33
 			return implode(',', $values);
34 34
 		}
Please login to merge, or discard this patch.