Passed
Push — master ( a7aa61...6609d4 )
by John
08:55
created
src/ManageUltimateMenu.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 						'class' => 'centertext',
145 145
 					],
146 146
 					'data' => [
147
-						'function' => fn(array $rowData): string =>
147
+						'function' => fn(array $rowData) : string =>
148 148
 							sprintf(
149 149
 								'<input type="checkbox" name="status[%1$s]" id="status_%1$s" value="%1$s"%2$s />',
150 150
 								$rowData['id_button'],
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 						'class' => 'centertext',
164 164
 					],
165 165
 					'data' => [
166
-						'function' => fn(array $rowData): string =>
166
+						'function' => fn(array $rowData) : string =>
167 167
 							sprintf(
168 168
 								'<a href="%s?action=admin;area=umen;sa=editbutton;in=%d">%s</a>',
169 169
 								$scripturl,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
 			],
254 254
 		];
255 255
 
256
-		return filter_input_array(INPUT_POST, $args, FALSE) ?: [];
256
+		return filter_input_array(INPUT_POST, $args, false) ?: [];
257 257
 	}
258 258
 
259 259
 	private function validateInput(array $menu_entry): array
Please login to merge, or discard this patch.
src/Subs-UltimateMenu.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 	$admin_areas['config']['areas']['umen'] = [
88 88
 		'label' => $txt['um_admin_menu'],
89 89
 		'file' => 'ManageUltimateMenu.php',
90
-		'function' => function (): void
90
+		'function' => function(): void
91 91
 		{
92 92
 			global $sourcedir;
93 93
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 					$info['sub_buttons'][$key] = $needle;
62 62
 					break 2;
63 63
 			}
64
-		elseif (!empty($info['sub_buttons']))
64
+			elseif (!empty($info['sub_buttons']))
65 65
 			recursive_button($needle, $info['sub_buttons'], $insertion_point, $where, $key);
66 66
 }
67 67
 
Please login to merge, or discard this patch.
tests/Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 							'show' => true,
118 118
 							'sub_buttons' => [
119 119
 								'inserted_sub' => $btn,
120
-								'sub' => $btn ,
120
+								'sub' => $btn,
121 121
 								'sub1' => $btn,
122 122
 							],
123 123
 						],
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 require_once './src/ManageUltimateMenu.php';
6 6
 require_once './src/Subs-UltimateMenu.php';
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 ];
25 25
 $modSettings = ['lastActive' => 0, 'settings_updated' => 0, 'postmod_active' => false];
26 26
 
27
-$smcFunc['db_query'] = function ($name, $query, $args)
27
+$smcFunc['db_query'] = function($name, $query, $args)
28 28
 {
29 29
 	global $current_item, $modSettings;
30 30
 
@@ -35,22 +35,22 @@  discard block
 block discarded – undo
35 35
 
36 36
 	return [['']];
37 37
 };
38
-$smcFunc['db_fetch_assoc'] = function ($request)
38
+$smcFunc['db_fetch_assoc'] = function($request)
39 39
 {
40 40
 	global $current_item;
41 41
 
42 42
 	return $request[$current_item++] ?? null;
43 43
 };
44
-$smcFunc['db_fetch_row'] = function ($request)
44
+$smcFunc['db_fetch_row'] = function($request)
45 45
 {
46 46
 	global $current_item;
47 47
 
48 48
 	return $request[$current_item++] ?? null;
49 49
 };
50
-$smcFunc['db_free_result'] = function (): void
50
+$smcFunc['db_free_result'] = function(): void
51 51
 {
52 52
 };
53
-$smcFunc['db_insert'] = function (): void
53
+$smcFunc['db_insert'] = function(): void
54 54
 {
55 55
 };
56 56
 require_once './vendor/simplemachines/smf2.1/Sources/Load.php';
Please login to merge, or discard this patch.