Passed
Push — master ( e945a6...9c54c2 )
by John
02:19
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
@@ -258,21 +258,21 @@  discard block
 block discarded – undo
258 258
 				'name' => FILTER_UNSAFE_RAW,
259 259
 				'position' => array(
260 260
 					'filter' => FILTER_CALLBACK,
261
-					'options' => function ($v)
261
+					'options' => function($v)
262 262
 					{
263 263
 						return in_array($v, ['before', 'child_of', 'after']) ? $v : false;
264 264
 					},
265 265
 				),
266 266
 				'parent' => array(
267 267
 					'filter' => FILTER_CALLBACK,
268
-					'options' => function ($v) use ($button_names)
268
+					'options' => function($v) use ($button_names)
269 269
 					{
270 270
 						return isset($button_names[$v]) ? $v : false;
271 271
 					},
272 272
 				),
273 273
 				'type' => array(
274 274
 					'filter' => FILTER_CALLBACK,
275
-					'options' => function ($v)
275
+					'options' => function($v)
276 276
 					{
277 277
 						return in_array($v, ['forum', 'external']) ? $v : false;
278 278
 					},
@@ -281,21 +281,21 @@  discard block
 block discarded – undo
281 281
 				'permissions' => array(
282 282
 					'filter' => FILTER_CALLBACK,
283 283
 					'flags' => FILTER_REQUIRE_ARRAY,
284
-					'options' => function ($v) use ($member_groups)
284
+					'options' => function($v) use ($member_groups)
285 285
 					{
286 286
 						return isset($member_groups[$v]) ? $v : false;
287 287
 					},
288 288
 				),
289 289
 				'status' => array(
290 290
 					'filter' => FILTER_CALLBACK,
291
-					'options' => function ($v)
291
+					'options' => function($v)
292 292
 					{
293 293
 						return in_array($v, ['active', 'inactive']) ? $v : false;
294 294
 					},
295 295
 				),
296 296
 				'target' => array(
297 297
 					'filter' => FILTER_CALLBACK,
298
-					'options' => function ($v)
298
+					'options' => function($v)
299 299
 					{
300 300
 						return in_array($v, ['_self', '_blank']) ? $v : false;
301 301
 					},
Please login to merge, or discard this patch.
src/Class-UltimateMenu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -378,11 +378,11 @@
 block discarded – undo
378 378
 			if (!empty($button_data['sub_buttons']))
379 379
 				foreach ($button_data['sub_buttons'] as $child_button => $child_button_data)
380 380
 				{
381
-					$button_names[$child_button] = [1,  $child_button_data['title']];
381
+					$button_names[$child_button] = [1, $child_button_data['title']];
382 382
 
383 383
 					if (!empty($child_button_data['sub_buttons']))
384 384
 						foreach ($child_button_data['sub_buttons'] as $grand_child_button => $grand_child_button_data)
385
-							$button_names[$grand_child_button] = [ 2,  $grand_child_button_data['title']];
385
+							$button_names[$grand_child_button] = [2, $grand_child_button_data['title']];
386 386
 				}
387 387
 		}
388 388
 
Please login to merge, or discard this patch.
src/ManageUltimateMenu.template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		printf('
71 71
 								<option value="%s"%s>%s...</option>',
72 72
 			$v,
73
-			$context['button_data']['position'] ==  $v ? ' selected="selected"' : '',
73
+			$context['button_data']['position'] == $v ? ' selected="selected"' : '',
74 74
 			$txt['um_menu_' . $v]);
75 75
 
76 76
 	echo '
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 		printf('
82 82
 								<option value="%s"%s>%s</option>',
83 83
 			$idx,
84
-			$context['button_data']['parent'] ==  $idx ? ' selected="selected"' : '',
85
-			str_repeat('&emsp;', $title[0]*2) . $title[1]
84
+			$context['button_data']['parent'] == $idx ? ' selected="selected"' : '',
85
+			str_repeat('&emsp;', $title[0] * 2) . $title[1]
86 86
 		);
87 87
 
88 88
 	echo '
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 									<input type="checkbox" class="input_check" name="permissions[]" value="', $id, '"', $permission['checked'] ? ' checked="checked"' : '', ' />
124 124
 									<span';
125 125
 
126
-		if  ($permission['is_post_group'])
126
+		if ($permission['is_post_group'])
127 127
 			echo ' title="' . $txt['mboards_groups_post_group'] . '"';
128 128
 
129 129
 		echo '>', $permission['name'], '</span>
Please login to merge, or discard this patch.