Passed
Pull Request — developer (#16070)
by Arkadiusz
37:18 queued 21:56
created
app/Components/InterestsConflict.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@
 block discarded – undo
315 315
 		if (\App\Cache::has($cacheName, '')) {
316 316
 			return \App\Cache::get($cacheName, '');
317 317
 		}
318
-		$allModules = array_map(function ($v) {
318
+		$allModules = array_map(function($v) {
319 319
 			return 0 > $v ? 999 : sprintf('%03d', $v);
320 320
 		}, array_column(\vtlib\Functions::getAllModules(false, true), 'tabsequence', 'name'));
321 321
 		$excludedModules = ['ModComments'];
Please login to merge, or discard this patch.
app/Integrations/Dav/Calendar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 		$separator = '-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-';
286 286
 		$value = (string) $this->vcomponent->{$davName};
287 287
 		if (false !== strpos($value, $separator)) {
288
-			[$html,$text] = explode($separator, $value, 2);
288
+			[$html, $text] = explode($separator, $value, 2);
289 289
 			$value = trim(strip_tags($html)) . "\n" . \trim(\str_replace($separator, '', $text));
290 290
 		} else {
291 291
 			$value = trim(\str_replace('\n', PHP_EOL, $value));
@@ -448,14 +448,14 @@  discard block
 block discarded – undo
448 448
 			$currentUser = \App\User::getCurrentUserModel();
449 449
 			$userTimeZone = new \DateTimeZone($currentUser->getDetail('time_zone'));
450 450
 			$sysTimeZone = new \DateTimeZone(\App\Fields\DateTime::getTimeZone());
451
-			[$hour , $minute] = explode(':', $currentUser->getDetail('start_hour'));
451
+			[$hour, $minute] = explode(':', $currentUser->getDetail('start_hour'));
452 452
 			$date = new \DateTime('now', $userTimeZone);
453 453
 			$date->setTime($hour, $minute);
454 454
 			$date->setTimezone($sysTimeZone);
455 455
 			$timeStart = $date->format('H:i:s');
456 456
 
457 457
 			$date->setTimezone($userTimeZone);
458
-			[$hour , $minute] = explode(':', $currentUser->getDetail('end_hour'));
458
+			[$hour, $minute] = explode(':', $currentUser->getDetail('end_hour'));
459 459
 			$date->setTime($hour, $minute);
460 460
 			$date->setTimezone($sysTimeZone);
461 461
 			$timeEnd = $date->format('H:i:s');
Please login to merge, or discard this patch.
app/TextParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 			$twig = new \Twig\Environment(new \Twig\Loader\ArrayLoader(['index' => $content]));
466 466
 			$sandbox = new \Twig\Extension\SandboxExtension(\App\Extension\Twig\SecurityPolicy::getPolicy(), true);
467 467
 			$twig->addExtension($sandbox);
468
-			$twig->addFunction(new \Twig\TwigFunction('YFParser', function ($text) {
468
+			$twig->addFunction(new \Twig\TwigFunction('YFParser', function($text) {
469 469
 				$value = '';
470 470
 				preg_match(static::VARIABLE_REGEX, $text, $matches);
471 471
 				if ($matches) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 			}));
477 477
 			$content = $twig->render('index');
478 478
 		}
479
-		return preg_replace_callback(static::VARIABLE_REGEX, function ($matches) {
479
+		return preg_replace_callback(static::VARIABLE_REGEX, function($matches) {
480 480
 			[, $function, $params] = array_pad($matches, 3, '');
481 481
 			return \in_array($function, static::$baseFunctions) ? $this->{$function}($params) : '';
482 482
 		}, $content);
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 		if (isset($this->language)) {
493 493
 			Language::setTemporaryLanguage($this->language);
494 494
 		}
495
-		$this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\=\-\[\]\&\w\s\|]+)\)\$/u', function ($matches) {
495
+		$this->content = preg_replace_callback('/\$\(translate : ([,"\+\%\.\=\-\[\]\&\w\s\|]+)\)\$/u', function($matches) {
496 496
 			[, $params] = array_pad($matches, 2, '');
497 497
 			return $this->translate($params);
498 498
 		}, $this->content);
@@ -1852,7 +1852,7 @@  discard block
 block discarded – undo
1852 1852
 			$width = isset($config['width']) ? preg_replace('/[^[:alnum:]]/', '', explode(',', $config['width'])) : [];
1853 1853
 			foreach ($config['columns'] as $key => $name) {
1854 1854
 				if (false !== strpos($name, '||')) {
1855
-					[$title,$value] = explode('||', $name, 2);
1855
+					[$title, $value] = explode('||', $name, 2);
1856 1856
 					if ('(' === $title[0] && ')' === substr($title, -1)) {
1857 1857
 						$title = $this->parseVariable("\${$title}\$");
1858 1858
 					}
Please login to merge, or discard this patch.
modules/Vtiger/actions/QuickExportData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 			$this->exportModel->setFields($fields);
83 83
 		} else {
84 84
 			$fields = \App\CustomView::getInstance($this->moduelName)->getColumnsListByCvid($cvId);
85
-			array_walk($fields, function (&$fieldInfo) {
85
+			array_walk($fields, function(&$fieldInfo) {
86 86
 				['field_name' => $relatedFieldName, 'module_name' => $relatedModule, 'source_field_name' => $referenceField] = $fieldInfo;
87 87
 				$fieldInfo = $referenceField ? "{$relatedFieldName}:{$relatedModule}:{$referenceField}" : $relatedFieldName;
88 88
 			});
Please login to merge, or discard this patch.
modules/Settings/ConfigEditor/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
 	public function getFieldInstanceByName($name)
151 151
 	{
152 152
 		$moduleName = $this->getName(true);
153
-		$params = ['uitype' => 7, 'column' => $name, 'name' => $name,  'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'maximumlength' => '', 'validator' => [['name' => 'NumberRange100']], 'source' => 'main'];
153
+		$params = ['uitype' => 7, 'column' => $name, 'name' => $name, 'displaytype' => 1, 'typeofdata' => 'I~M', 'presence' => 0, 'isEditableReadOnly' => false, 'maximumlength' => '', 'validator' => [['name' => 'NumberRange100']], 'source' => 'main'];
154 154
 		switch ($name) {
155 155
 			case 'MAX_NUMBER_EXPORT_RECORDS':
156 156
 				$params['label'] = $this->performanceFields[$name];
Please login to merge, or discard this patch.