Passed
Push — master ( 652433...a7aa61 )
by John
08:30
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.