Passed
Push — master ( 25c35d...bbde0f )
by John
05:52
created
src/Subs-UltimateMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 	$admin_areas['config']['areas']['umen'] = [
85 85
 		'label' => $txt['um_admin_menu'],
86 86
 		'file' => 'ManageUltimateMenu.php',
87
-		'function' => function (): void
87
+		'function' => function(): void
88 88
 		{
89 89
 			new ManageUltimateMenu;
90 90
 		},
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
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 use PHPUnit\Framework\TestCase;
6 6
 
Please login to merge, or discard this patch.
src/ManageUltimateMenu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 						'value' => $txt['um_menu_button_type'],
118 118
 					],
119 119
 					'data' => [
120
-						'function' => function ($rowData) use ($txt)
120
+						'function' => function($rowData) use ($txt)
121 121
 						{
122 122
 							return $txt['um_menu_' . $rowData['type'] . '_link'];
123 123
 						},
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 						'value' => $txt['um_menu_button_position'],
133 133
 					],
134 134
 					'data' => [
135
-						'function' => function ($rowData) use ($txt, $button_names)
135
+						'function' => function($rowData) use ($txt, $button_names)
136 136
 						{
137 137
 							return sprintf(
138 138
 								'%s %s',
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 						'class' => 'centertext',
167 167
 					],
168 168
 					'data' => [
169
-						'function' => function ($rowData)
169
+						'function' => function($rowData)
170 170
 						{
171 171
 							return sprintf(
172 172
 								'<input type="checkbox" name="status[%1$s]" id="status_%1$s" value="%1$s"%2$s />',
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 						'class' => 'centertext',
188 188
 					],
189 189
 					'data' => [
190
-						'function' => function ($rowData) use ($scripturl, $txt)
190
+						'function' => function($rowData) use ($scripturl, $txt)
191 191
 						{
192 192
 							return sprintf(
193 193
 								'<a href="%s?action=admin;area=umen;sa=editbutton;in=%d">%s</a>',
@@ -253,21 +253,21 @@  discard block
 block discarded – undo
253 253
 			'name' => FILTER_UNSAFE_RAW,
254 254
 			'position' => [
255 255
 				'filter' => FILTER_CALLBACK,
256
-				'options' => function ($v)
256
+				'options' => function($v)
257 257
 				{
258 258
 					return in_array($v, ['before', 'child_of', 'after']) ? $v : false;
259 259
 				},
260 260
 			],
261 261
 			'parent' => [
262 262
 				'filter' => FILTER_CALLBACK,
263
-				'options' => function ($v) use ($button_names)
263
+				'options' => function($v) use ($button_names)
264 264
 				{
265 265
 					return isset($button_names[$v]) ? $v : false;
266 266
 				},
267 267
 			],
268 268
 			'type' => [
269 269
 				'filter' => FILTER_CALLBACK,
270
-				'options' => function ($v)
270
+				'options' => function($v)
271 271
 				{
272 272
 					return in_array($v, ['forum', 'external']) ? $v : false;
273 273
 				},
@@ -276,21 +276,21 @@  discard block
 block discarded – undo
276 276
 			'permissions' => [
277 277
 				'filter' => FILTER_CALLBACK,
278 278
 				'flags' => FILTER_REQUIRE_ARRAY,
279
-				'options' => function ($v) use ($member_groups)
279
+				'options' => function($v) use ($member_groups)
280 280
 				{
281 281
 					return isset($member_groups[$v]) ? $v : false;
282 282
 				},
283 283
 			],
284 284
 			'status' => [
285 285
 				'filter' => FILTER_CALLBACK,
286
-				'options' => function ($v)
286
+				'options' => function($v)
287 287
 				{
288 288
 					return in_array($v, ['active', 'inactive']) ? $v : false;
289 289
 				},
290 290
 			],
291 291
 			'target' => [
292 292
 				'filter' => FILTER_CALLBACK,
293
-				'options' => function ($v)
293
+				'options' => function($v)
294 294
 				{
295 295
 					return in_array($v, ['_self', '_blank']) ? $v : false;
296 296
 				},
Please login to merge, or discard this patch.