Passed
Pull Request — developer (#15265)
by Arkadiusz
20:15
created
vtlib/Vtiger/PackageImport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 		$this->importCustomLinks($this->_modulexml, $moduleInstance);
657 657
 		$this->importCronTasks($this->_modulexml);
658 658
 		Module::fireEvent($moduleInstance->name, Module::EVENT_MODULE_POSTINSTALL);
659
-		register_shutdown_function(function () {
659
+		register_shutdown_function(function() {
660 660
 			chdir(ROOT_DIRECTORY);
661 661
 			(new \App\BatchMethod(['method' => '\App\UserPrivilegesFile::recalculateAll', 'params' => []]))->save();
662 662
 		});
@@ -1147,7 +1147,7 @@  discard block
 block discarded – undo
1147 1147
 			$db->createCommand()->update('vtiger_version', ['current_version' => (string) $this->_modulexml->to_version])->execute();
1148 1148
 		}
1149 1149
 		Functions::recurseDelete($dirName);
1150
-		register_shutdown_function(function () {
1150
+		register_shutdown_function(function() {
1151 1151
 			$viewer = \Vtiger_Viewer::getInstance();
1152 1152
 			$viewer->clearAllCache();
1153 1153
 			Functions::recurseDelete('cache/templates_c');
Please login to merge, or discard this patch.
modules/Vtiger/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Users/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Calendar/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
modules/Documents/models/EditRecordStructure.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
 					}
55 55
 				}
56 56
 			}
57
-		}
58
-		++Vtiger_Field_Model::$tabIndexLastSeq;
57
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
59 58
 		return $this->structuredValues = $values;
60 59
 	}
61 60
 }
Please login to merge, or discard this patch.
app/Integrations/Dav/Calendar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -407,14 +407,14 @@
 block discarded – undo
407 407
 			$currentUser = \App\User::getCurrentUserModel();
408 408
 			$userTimeZone = new \DateTimeZone($currentUser->getDetail('time_zone'));
409 409
 			$sysTimeZone = new \DateTimeZone(\App\Fields\DateTime::getTimeZone());
410
-			[$hour , $minute] = explode(':', $currentUser->getDetail('start_hour'));
410
+			[$hour, $minute] = explode(':', $currentUser->getDetail('start_hour'));
411 411
 			$date = new \DateTime('now', $userTimeZone);
412 412
 			$date->setTime($hour, $minute);
413 413
 			$date->setTimezone($sysTimeZone);
414 414
 			$timeStart = $date->format('H:i:s');
415 415
 
416 416
 			$date->setTimezone($userTimeZone);
417
-			[$hour , $minute] = explode(':', $currentUser->getDetail('end_hour'));
417
+			[$hour, $minute] = explode(':', $currentUser->getDetail('end_hour'));
418 418
 			$date->setTime($hour, $minute);
419 419
 			$date->setTimezone($sysTimeZone);
420 420
 			$timeEnd = $date->format('H:i:s');
Please login to merge, or discard this patch.
modules/Vtiger/handlers/FieldsDependency.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
 	public function vars(string $name, array $params, string $moduleName): ?array
73 73
 	{
74 74
 		if (\App\EventHandler::EDIT_VIEW_CHANGE_VALUE === $name) {
75
-			[$recordModel,$view] = $params;
75
+			[$recordModel, $view] = $params;
76 76
 			if (empty($recordModel)) {
77 77
 				$recordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
78 78
 			}
Please login to merge, or discard this patch.
modules/Vtiger/views/QuickEditModal.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,8 +189,7 @@
 block discarded – undo
189 189
 				$fieldModel->set('hideField', true);
190 190
 			}
191 191
 			$values[$fieldName] = $fieldModel;
192
-		}
193
-		++Vtiger_Field_Model::$tabIndexLastSeq;
192
+		}++Vtiger_Field_Model::$tabIndexLastSeq;
194 193
 		return $values;
195 194
 	}
196 195
 
Please login to merge, or discard this patch.
app/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@
 block discarded – undo
333 333
 	public static function url(string $url): bool
334 334
 	{
335 335
 		if (mb_strlen($url) != \strlen($url) && \function_exists('idn_to_ascii') && \defined('INTL_IDNA_VARIANT_UTS46')) {
336
-			$url = preg_replace_callback('/:\/\/([^\/]+)/', function ($matches) {
336
+			$url = preg_replace_callback('/:\/\/([^\/]+)/', function($matches) {
337 337
 				return '://' . idn_to_ascii($matches[1], IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
338 338
 			}, $url);
339 339
 		}
Please login to merge, or discard this patch.