Passed
Push — master ( 5998ab...41f8ea )
by John
01:51
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.
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>',
@@ -263,21 +263,21 @@  discard block
 block discarded – undo
263 263
 				'name' => FILTER_UNSAFE_RAW,
264 264
 				'position' => [
265 265
 					'filter' => FILTER_CALLBACK,
266
-					'options' => function ($v)
266
+					'options' => function($v)
267 267
 					{
268 268
 						return in_array($v, ['before', 'child_of', 'after']) ? $v : false;
269 269
 					},
270 270
 				],
271 271
 				'parent' => [
272 272
 					'filter' => FILTER_CALLBACK,
273
-					'options' => function ($v) use ($button_names)
273
+					'options' => function($v) use ($button_names)
274 274
 					{
275 275
 						return isset($button_names[$v]) ? $v : false;
276 276
 					},
277 277
 				],
278 278
 				'type' => [
279 279
 					'filter' => FILTER_CALLBACK,
280
-					'options' => function ($v)
280
+					'options' => function($v)
281 281
 					{
282 282
 						return in_array($v, ['forum', 'external']) ? $v : false;
283 283
 					},
@@ -286,21 +286,21 @@  discard block
 block discarded – undo
286 286
 				'permissions' => [
287 287
 					'filter' => FILTER_CALLBACK,
288 288
 					'flags' => FILTER_REQUIRE_ARRAY,
289
-					'options' => function ($v) use ($member_groups)
289
+					'options' => function($v) use ($member_groups)
290 290
 					{
291 291
 						return isset($member_groups[$v]) ? $v : false;
292 292
 					},
293 293
 				],
294 294
 				'status' => [
295 295
 					'filter' => FILTER_CALLBACK,
296
-					'options' => function ($v)
296
+					'options' => function($v)
297 297
 					{
298 298
 						return in_array($v, ['active', 'inactive']) ? $v : false;
299 299
 					},
300 300
 				],
301 301
 				'target' => [
302 302
 					'filter' => FILTER_CALLBACK,
303
-					'options' => function ($v)
303
+					'options' => function($v)
304 304
 					{
305 305
 						return in_array($v, ['_self', '_blank']) ? $v : false;
306 306
 					},
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.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 // What are you doing here, SMF?
11 11
 define('SMF', 1);
12 12
 
13
-$user_info = ['is_admin' => true ,'groups' => []];
13
+$user_info = ['is_admin' => true, 'groups' => []];
14 14
 
15 15
 $smcFunc['db_query'] = function($name, $query, $args)
16 16
 {
Please login to merge, or discard this patch.