Test Setup Failed
Pull Request — developer (#17250)
by Arkadiusz
16:07
created
modules/API/models/CalDAV.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
 		\App\Log::trace('Start', __METHOD__);
228 228
 		$query = (new \App\Db\Query())->select([
229 229
 			'dav_calendarobjects.*',
230
-			'vtiger_crmentity.modifiedtime', 'vtiger_crmentity.setype',	'assigned_user_id' => 'vtiger_crmentity.smownerid',
230
+			'vtiger_crmentity.modifiedtime', 'vtiger_crmentity.setype', 'assigned_user_id' => 'vtiger_crmentity.smownerid',
231 231
 			'vtiger_crmentity.crmid', 'vtiger_crmentity.deleted', 'vtiger_activity.visibility'
232 232
 		])->from('dav_calendarobjects')
233 233
 			->leftJoin('vtiger_crmentity', 'vtiger_crmentity.crmid = dav_calendarobjects.crmid')
Please login to merge, or discard this patch.
modules/ModComments/ConfigTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 	'defaultSource' => [
10 10
 		'default' => ['current'],
11 11
 		'description' => "Default record loading.\nValues available: ['current', 'related'].",
12
-		'validation' => function () {
12
+		'validation' => function() {
13 13
 			$arg = func_get_arg(0);
14 14
 			return \is_array($arg) && !array_diff($arg, ['current', 'related']);
15 15
 		},
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	'dateFormat' => [
19 19
 		'default' => 'user',
20 20
 		'description' => "Date display mode in comments, values available: \n`user` -  based on user settings, the view_date_format field \n`displayDate` - date and time in user format.",
21
-		'validation' => function () {
21
+		'validation' => function() {
22 22
 			$arg = func_get_arg(0);
23 23
 			return \is_array($arg) && !array_diff($arg, ['user', 'displayDate']);
24 24
 		},
Please login to merge, or discard this patch.
modules/OpenStreetMap/ConfigTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	'mapModules' => [
16 16
 		'default' => ['Accounts', 'Contacts', 'Competition', 'Vendors', 'Partners', 'Leads', 'Locations'],
17 17
 		'description' => 'Allow modules.',
18
-		'validation' => function () {
18
+		'validation' => function() {
19 19
 			$arg = func_get_arg(0);
20 20
 			return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v) => \App\Validator::alnum($v)));
21 21
 		},
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			'Locations' => ['subject', 'email']
33 33
 		],
34 34
 		'description' => 'List of fields from which to show information in the map pin',
35
-		'validation' => function () {
35
+		'validation' => function() {
36 36
 			$arg = func_get_arg(0);
37 37
 			return \is_array($arg) && \count($arg) === \count(array_filter($arg, fn ($v, $k) => \App\Validator::alnum($k) && \is_array($v) && \count($v) === \count(array_filter($v, fn ($i) => \App\Validator::alnum($i))), ARRAY_FILTER_USE_BOTH));
38 38
 		},
Please login to merge, or discard this patch.
app/Db/Importer.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -680,7 +680,7 @@
 block discarded – undo
680 680
 							$this->logs .= "done    ({$time}s)\n";
681 681
 							$tableSchema = $schema->getTableSchema($tableName, true);
682 682
 							$columnExists = isset($tableSchema->columns[$columnName]);
683
-						}elseif (!$columnExists && 1 !== $mode) {
683
+						} elseif (!$columnExists && 1 !== $mode) {
684 684
 							$this->logs .= "  > add column: $tableName:$columnName ... ";
685 685
 							$start = microtime(true);
686 686
 							$dbCommand->addColumn($tableName, $columnName, $column)->execute();
Please login to merge, or discard this patch.
app/Installer/Developer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public static function generateSwagger(string $path = self::PATH): string
31 31
 	{
32
-		set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
32
+		set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
33 33
 			$errorString = \App\ErrorHandler::error2string($errNo);
34 34
 			$msg = reset($errorString) . ": {$errStr}\nFile: {$errFile}\nLine: $errLine" . PHP_EOL;
35 35
 			echo "<pre>$msg</pre><hr>";
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	public static function generateSwaggerByType(string $type, string $path = self::PATH, $errorHandler = true): string
54 54
 	{
55 55
 		if ($errorHandler) {
56
-			set_error_handler(function ($errNo, $errStr, $errFile, $errLine) {
56
+			set_error_handler(function($errNo, $errStr, $errFile, $errLine) {
57 57
 				$errorString = \App\ErrorHandler::error2string($errNo);
58 58
 				$msg = reset($errorString) . ": {$errStr}\nFile: {$errFile}\nLine: $errLine" . PHP_EOL;
59 59
 				echo "<pre>$msg</pre><hr>";
Please login to merge, or discard this patch.
modules/OSSMailScanner/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@
 block discarded – undo
339 339
 				$actions = $account['actions'];
340 340
 			}
341 341
 			if (!\in_array('CreatedEmail', $actions)) {
342
-				array_unshift($actions, 'CreatedEmail', );
342
+				array_unshift($actions, 'CreatedEmail',);
343 343
 			}
344 344
 			$params['actions'] = $actions;
345 345
 		}
Please login to merge, or discard this patch.
modules/Calendar/ConfigTemplate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	'DASHBOARD_CALENDAR_WIDGET_FILTER_TYPE' => [
34 34
 		'default' => 'list',
35 35
 		'description' => 'Shows the switch button or filter list in the calendar widget: switch - Switch "To realize" and "History", list - filter list',
36
-		'validation' => function () {
36
+		'validation' => function() {
37 37
 			$arg = func_get_arg(0);
38 38
 			return 'list' === $arg || 'switch' === $arg;
39 39
 		},
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	'SHOW_QUICK_CREATE_BY_STATUS' => [
42 42
 		'default' => [],
43 43
 		'description' => 'Show the Calendar quick create window after changing the status: array - PLL_COMPLETED, PLL_CANCELLED',
44
-		'validation' => function () {
44
+		'validation' => function() {
45 45
 			$arg = func_get_arg(0);
46 46
 			return \is_array($arg) && empty(array_diff($arg, ['PLL_COMPLETED', 'PLL_CANCELLED']));
47 47
 		},
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	'HIDDEN_DAYS_IN_CALENDAR_VIEW' => [
68 68
 		'default' => [0, 6],
69 69
 		'description' => 'Exclude certain days-of-the-week from being displayed. The value is an array of day-of-week indices to hide. Each index is zero-base (Sunday=0) and ranges from 0-6. By default, no days are hidden',
70
-		'validation' => function () {
70
+		'validation' => function() {
71 71
 			$arg = func_get_arg(0);
72 72
 			return 'Extended' === $arg || 'Standard' === $arg;
73 73
 		},
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	'CALENDAR_VIEW' => [
106 106
 		'default' => 'Extended',
107 107
 		'description' => 'Calendar view - allowed values: Extended, Standard, refresh menu files after you change this value',
108
-		'validation' => function () {
108
+		'validation' => function() {
109 109
 			$arg = func_get_arg(0);
110 110
 			return 'Extended' === $arg || 'Standard' === $arg;
111 111
 		},
Please login to merge, or discard this patch.
api/webservice/Token/Auth/Basic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	{
22 22
 		$this->api->app = [];
23 23
 		$type = $this->api->request->getByType('_container', \App\Purifier::STANDARD);
24
-		$query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type,  'status' => 1]);
24
+		$query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]);
25 25
 		if ($row = $query->one()) {
26 26
 			$row['id'] = (int) $row['id'];
27 27
 			$this->api->app = $row;
Please login to merge, or discard this patch.
api/webservice/PBX/Auth/Basic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 	{
22 22
 		$this->api->app = [];
23 23
 		$type = $this->api->request->getByType('_container', \App\Purifier::STANDARD);
24
-		$query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type,  'status' => 1]);
24
+		$query = (new \App\Db\Query())->from('w_#__servers')->where(['type' => $type, 'status' => 1]);
25 25
 		if ($row = $query->one()) {
26 26
 			$row['id'] = (int) $row['id'];
27 27
 			$this->api->app = $row;
Please login to merge, or discard this patch.