Passed
Push — master ( 4c81df...f4108d )
by John
01:57
created
src/Subs-UltimateMenu.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
 	$admin_areas['config']['areas']['umen'] = array(
192 192
 		'label' => $txt['um_admin_menu'],
193 193
 		'file' => 'ManageUltimateMenu.php',
194
-		'function' => function () {
194
+		'function' => function() {
195 195
 			new ManageUltimateMenu;
196 196
 		},
197 197
 		'icon' => 'umen.png',
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,8 @@
 block discarded – undo
191 191
 	$admin_areas['config']['areas']['umen'] = array(
192 192
 		'label' => $txt['um_admin_menu'],
193 193
 		'file' => 'ManageUltimateMenu.php',
194
-		'function' => function () {
194
+		'function' => function ()
195
+		{
195 196
 			new ManageUltimateMenu;
196 197
 		},
197 198
 		'icon' => 'umen.png',
Please login to merge, or discard this patch.
src/ManageUltimateMenu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -252,21 +252,21 @@  discard block
 block discarded – undo
252 252
 				'name' => FILTER_UNSAFE_RAW,
253 253
 				'position' => array(
254 254
 					'filter' => FILTER_CALLBACK,
255
-					'options' => function ($v)
255
+					'options' => function($v)
256 256
 					{
257 257
 						return in_array($v, ['before', 'child_of', 'after']) ? $v : false;
258 258
 					},
259 259
 				),
260 260
 				'parent' => array(
261 261
 					'filter' => FILTER_CALLBACK,
262
-					'options' => function ($v) use ($button_names)
262
+					'options' => function($v) use ($button_names)
263 263
 					{
264 264
 						return isset($button_names[$v]) ? $v : false;
265 265
 					},
266 266
 				),
267 267
 				'type' => array(
268 268
 					'filter' => FILTER_CALLBACK,
269
-					'options' => function ($v)
269
+					'options' => function($v)
270 270
 					{
271 271
 						return in_array($v, ['forum', 'external']) ? $v : false;
272 272
 					},
@@ -275,21 +275,21 @@  discard block
 block discarded – undo
275 275
 				'permissions' => array(
276 276
 					'filter' => FILTER_CALLBACK,
277 277
 					'flags' => FILTER_REQUIRE_ARRAY,
278
-					'options' => function ($v) use ($member_groups)
278
+					'options' => function($v) use ($member_groups)
279 279
 					{
280 280
 						return in_array($v, $member_groups) ? $v : false;
281 281
 					},
282 282
 				),
283 283
 				'status' => array(
284 284
 					'filter' => FILTER_CALLBACK,
285
-					'options' => function ($v)
285
+					'options' => function($v)
286 286
 					{
287 287
 						return in_array($v, ['active', 'inactive']) ? $v : false;
288 288
 					},
289 289
 				),
290 290
 				'target' => array(
291 291
 					'filter' => FILTER_CALLBACK,
292
-					'options' => function ($v)
292
+					'options' => function($v)
293 293
 					{
294 294
 						return in_array($v, ['_self', '_blank']) ? $v : false;
295 295
 					},
Please login to merge, or discard this patch.
src/ManageUltimateMenu.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 		printf('
58 58
 								<option value="%s"%s>%s...</option>',
59 59
 			$v,
60
-			$context['button_data']['position'] ==  $v ? ' selected="selected"' : '',
60
+			$context['button_data']['position'] == $v ? ' selected="selected"' : '',
61 61
 			$txt['um_menu_' . $v]);
62 62
 
63 63
 	echo '
Please login to merge, or discard this patch.