Passed
Pull Request — developer (#16008)
by Arkadiusz
21:29
created
app/Conditions/QueryFields/DateField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	 */
73 73
 	public function getArrayValue()
74 74
 	{
75
-		return array_map(function ($row) {
75
+		return array_map(function($row) {
76 76
 			return \current(explode(' ', $row));
77 77
 		}, explode(',', $this->value));
78 78
 	}
Please login to merge, or discard this patch.
app/Fields/Date.php 1 patch
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -293,17 +293,17 @@
 block discarded – undo
293 293
 				$formatToConvert = str_replace(['/', '.'], '-', $fromFormat);
294 294
 				$dateToConvert = str_replace($separator, '-', $date);
295 295
 				switch ($formatToConvert) {
296
-				case 'dd-mm-yyyy':
297
-					[$d, $m, $y] = explode('-', $dateToConvert, 3);
298
-					break;
299
-				case 'mm-dd-yyyy':
300
-					[$m, $d, $y] = explode('-', $dateToConvert, 3);
301
-					break;
302
-				case 'yyyy-mm-dd':
303
-					[$y, $m, $d] = explode('-', $dateToConvert, 3);
304
-					break;
305
-				default:
306
-					break;
296
+					case 'dd-mm-yyyy':
297
+						[$d, $m, $y] = explode('-', $dateToConvert, 3);
298
+						break;
299
+					case 'mm-dd-yyyy':
300
+						[$m, $d, $y] = explode('-', $dateToConvert, 3);
301
+						break;
302
+					case 'yyyy-mm-dd':
303
+						[$y, $m, $d] = explode('-', $dateToConvert, 3);
304
+						break;
305
+					default:
306
+						break;
307 307
 			}
308 308
 				$dbDate = $y . '-' . $m . '-' . $d;
309 309
 			} else {
Please login to merge, or discard this patch.
modules/Settings/YetiForce/views/BuyModal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 		$recordModel = $formFields = [];
70 70
 		if ($companies) {
71 71
 			$recordModel = Settings_Companies_Record_Model::getInstance($companies['id'])->set('source', $qualifiedModuleName);
72
-			$formFields = array_filter(Settings_Companies_Module_Model::getFormFields(), function ($key) {
72
+			$formFields = array_filter(Settings_Companies_Module_Model::getFormFields(), function($key) {
73 73
 				return isset($key['paymentData']);
74 74
 			});
75 75
 		} elseif (!$isCustom) {
Please login to merge, or discard this patch.
modules/Import/actions/Data.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 								}
311 311
 							}
312 312
 							// remove empty values - do not modify existing
313
-							$fieldData = array_filter($fieldData, function ($fieldValue) {
313
+							$fieldData = array_filter($fieldData, function($fieldValue) {
314 314
 								return '' !== $fieldValue;
315 315
 							});
316 316
 							$fieldData = $this->transformForImport($fieldData);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 								}
333 333
 							}
334 334
 							// remove empty values - do not modify existing
335
-							$fieldData = array_filter($fieldData, function ($fieldValue) {
335
+							$fieldData = array_filter($fieldData, function($fieldValue) {
336 336
 								return '' !== $fieldValue;
337 337
 							});
338 338
 							$fieldData = $this->transformForImport($fieldData);
Please login to merge, or discard this patch.
app/YetiForce/Updater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 	{
67 67
 		$data = self::get();
68 68
 		if (\Config\Developer::$updaterDevMode) {
69
-			$where = ['like', 'from_version',  self::$version . '.%', false];
69
+			$where = ['like', 'from_version', self::$version . '.%', false];
70 70
 		} else {
71 71
 			$where = ['from_version' => \App\Version::get()];
72 72
 			foreach ($data as $key => $row) {
Please login to merge, or discard this patch.
app/Mail/RecordFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 		$moduleData = \App\Fields\RecordNumber::getInstance($moduleName);
232 232
 		$prefix = str_replace(['\{\{YYYY\}\}', '\{\{YY\}\}', '\{\{MM\}\}', '\{\{DD\}\}', '\{\{M\}\}', '\{\{D\}\}'], ['\d{4}', '\d{2}', '\d{2}', '\d{2}', '\d{1,2}', '\d{1,2}'], preg_quote($moduleData->get('prefix'), '/'));
233 233
 		$postfix = str_replace(['\{\{YYYY\}\}', '\{\{YY\}\}', '\{\{MM\}\}', '\{\{DD\}\}', '\{\{M\}\}', '\{\{D\}\}'], ['\d{4}', '\d{2}', '\d{2}', '\d{2}', '\d{1,2}', '\d{1,2}'], preg_quote($moduleData->get('postfix'), '/'));
234
-		$redex = preg_replace_callback('/\\\\{\\\\{picklist\\\\:([a-z0-9_]+)\\\\}\\\\}/i', function ($matches) {
234
+		$redex = preg_replace_callback('/\\\\{\\\\{picklist\\\\:([a-z0-9_]+)\\\\}\\\\}/i', function($matches) {
235 235
 			$picklistPrefix = array_column(\App\Fields\Picklist::getValues($matches[1]), 'prefix');
236 236
 			if (!$picklistPrefix) {
237 237
 				return '';
Please login to merge, or discard this patch.
modules/ModTracker/ConfigTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 	'DEFAULT_VIEW' => [
10 10
 		'default' => 'TimeLine',
11 11
 		'description' => 'default view in History (Timeline/List)',
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return \in_array($arg, ['Timeline', 'List']);
15 15
 		}
Please login to merge, or discard this patch.
app/Log.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 				}
64 64
 			}
65 65
 		} else {
66
-			$bitmapValues = array_reduce(self::$levelMap, function ($carry, $item) {
66
+			$bitmapValues = array_reduce(self::$levelMap, function($carry, $item) {
67 67
 				return $carry | $item;
68 68
 			});
69 69
 			if (!($bitmapValues & $levels) && 0 !== $levels) {
Please login to merge, or discard this patch.
modules/CustomView/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -675,7 +675,7 @@
 block discarded – undo
675 675
 			->innerJoin('vtiger_customview', 'vtiger_cvcolumnlist.cvid = vtiger_customview.cvid')
676 676
 			->where(['vtiger_customview.cvid' => $cvId])->orderBy('vtiger_cvcolumnlist.columnindex')
677 677
 			->createCommand()->queryAllByGroup(1);
678
-		return array_map(function ($item) {
678
+		return array_map(function($item) {
679 679
 			return "{$item['field_name']}:{$item['module_name']}" . ($item['source_field_name'] ? ":{$item['source_field_name']}" : '');
680 680
 		}, $selectedFields);
681 681
 	}
Please login to merge, or discard this patch.