Passed
Pull Request — developer (#16340)
by Arkadiusz
24:20 queued 06:30
created
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.