Passed
Pull Request — patch_1-1-9 (#3687)
by Spuds
06:23
created
sources/subs/Editor.subs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@
 block discarded – undo
344 344
 					ORDER BY smiley_row, smiley_order',
345 345
 					array(
346 346
 					),
347
-					function ($row)
347
+					function($row)
348 348
 					{
349 349
 						global $context;
350 350
 
Please login to merge, or discard this patch.
sources/subs/Util.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -598,7 +598,7 @@
 block discarded – undo
598 598
 		if (is_null($timestamp))
599 599
 			$timestamp = time();
600 600
 
601
-		$date_equivalents = array (
601
+		$date_equivalents = array(
602 602
 			'%a' => 'D',
603 603
 			'%A' => 'l',
604 604
 			'%d' => 'd',
Please login to merge, or discard this patch.
sources/subs/ManagePermissions.subs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1140,7 +1140,7 @@  discard block
 block discarded – undo
1140 1140
 		array(
1141 1141
 			'min_posts' => -1,
1142 1142
 		),
1143
-		function ($row)
1143
+		function($row)
1144 1144
 		{
1145 1145
 			return $row['id_group'];
1146 1146
 		}
@@ -1205,7 +1205,7 @@  discard block
 block discarded – undo
1205 1205
 		array(
1206 1206
 			'copy_from' => $copy_from,
1207 1207
 		),
1208
-		function ($row) use ($profile_id)
1208
+		function($row) use ($profile_id)
1209 1209
 		{
1210 1210
 			return array($profile_id, $row['id_group'], $row['permission'], $row['add_deny']);
1211 1211
 		}
Please login to merge, or discard this patch.
sources/subs/Profile.subs.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 			'type' => 'callback',
395 395
 			'callback_func' => 'birthdate',
396 396
 			'permission' => 'profile_extra',
397
-			'preload' => function () {
397
+			'preload' => function() {
398 398
 				global $cur_profile, $context;
399 399
 
400 400
 				// Split up the birth date....
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
 
408 408
 				return true;
409 409
 			},
410
-			'input_validate' => function (&$value) {
410
+			'input_validate' => function(&$value) {
411 411
 				global $profile_vars, $cur_profile;
412 412
 
413 413
 				if (isset($_POST['bday2'], $_POST['bday3']) && $value > 0 && $_POST['bday2'] > 0)
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 		'birthdate' => array(
431 431
 			'type' => 'hidden',
432 432
 			'permission' => 'profile_extra',
433
-			'input_validate' => function (&$value) {
433
+			'input_validate' => function(&$value) {
434 434
 				global $cur_profile;
435 435
 
436 436
 				// @todo Should we check for this year and tell them they made a mistake :P? (based on coppa at least?)
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 			'label' => $txt['date_registered'],
453 453
 			'log_change' => true,
454 454
 			'permission' => 'moderate_forum',
455
-			'input_validate' => function (&$value) {
455
+			'input_validate' => function(&$value) {
456 456
 				global $txt, $user_info, $modSettings, $cur_profile;
457 457
 
458 458
 				// Bad date!  Go try again - please?
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
 			'subtext' => $txt['valid_email'],
477 477
 			'log_change' => true,
478 478
 			'permission' => 'profile_identity',
479
-			'input_validate' => function (&$value) {
479
+			'input_validate' => function(&$value) {
480 480
 				global $context, $old_profile, $profile_vars, $modSettings;
481 481
 
482 482
 				if (strtolower($value) == strtolower($old_profile['email_address']))
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 			'value' => empty($cur_profile['hide_email']) ? true : false,
504 504
 			'label' => $txt['allow_user_email'],
505 505
 			'permission' => 'profile_identity',
506
-			'input_validate' => function (&$value) {
506
+			'input_validate' => function(&$value) {
507 507
 				$value = $value == 0 ? 1 : 0;
508 508
 
509 509
 				return true;
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 			'callback_func' => 'theme_pick',
524 524
 			'permission' => 'profile_extra',
525 525
 			'enabled' => empty($settings['disable_user_variant']) || !empty($modSettings['theme_allow']) || allowedTo('admin_forum'),
526
-			'preload' => function () {
526
+			'preload' => function() {
527 527
 				global $context, $cur_profile, $txt;
528 528
 
529 529
 				$db = database();
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
 				);
548 548
 				return true;
549 549
 			},
550
-			'input_validate' => function (&$value) {
550
+			'input_validate' => function(&$value) {
551 551
 				$value = (int) $value;
552 552
 				return true;
553 553
 			},
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
 			'callback_func' => 'karma_modify',
558 558
 			'permission' => 'admin_forum',
559 559
 			// Set karma_bad too!
560
-			'input_validate' => function (&$value) {
560
+			'input_validate' => function(&$value) {
561 561
 				global $profile_vars, $cur_profile;
562 562
 
563 563
 				$value = (int) $value;
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 				}
569 569
 				return true;
570 570
 			},
571
-			'preload' => function () {
571
+			'preload' => function() {
572 572
 				global $context, $cur_profile;
573 573
 
574 574
 				$context['member']['karma']['good'] = $cur_profile['karma_good'];
@@ -586,7 +586,7 @@  discard block
 block discarded – undo
586 586
 			'preload' => 'profileLoadLanguages',
587 587
 			'enabled' => !empty($modSettings['userLanguage']),
588 588
 			'value' => empty($cur_profile['lngfile']) ? $language : $cur_profile['lngfile'],
589
-			'input_validate' => function (&$value) {
589
+			'input_validate' => function(&$value) {
590 590
 				global $context, $cur_profile;
591 591
 
592 592
 				// Load the languages.
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 			'log_change' => true,
614 614
 			'permission' => 'profile_identity',
615 615
 			'prehtml' => allowedTo('admin_forum') && isset($_GET['changeusername']) ? '<div class="warningbox">' . $txt['username_warning'] . '</div>' : '',
616
-			'input_validate' => function (&$value) {
616
+			'input_validate' => function(&$value) {
617 617
 				global $context, $user_info, $cur_profile;
618 618
 
619 619
 				if (allowedTo('admin_forum'))
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 			'permission' => 'profile_identity',
666 666
 			'save_key' => 'passwd',
667 667
 			// Note this will only work if passwrd2 also exists!
668
-			'input_validate' => function (&$value) {
668
+			'input_validate' => function(&$value) {
669 669
 				global $user_info, $cur_profile;
670 670
 
671 671
 				// If we didn't try it then ignore it!
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
 			),
728 728
 			'subtext' => $txt['receive_from_description'],
729 729
 			'value' => empty($cur_profile['receive_from']) ? 0 : $cur_profile['receive_from'],
730
-			'input_validate' => function (&$value) {
730
+			'input_validate' => function(&$value) {
731 731
 				global $cur_profile, $profile_vars;
732 732
 
733 733
 				// Simple validate and apply the two "sub settings"
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
 			'callback_func' => 'pm_settings',
745 745
 			'permission' => 'pm_read',
746 746
 			'save_key' => 'pm_prefs',
747
-			'preload' => function () {
747
+			'preload' => function() {
748 748
 				global $context, $cur_profile;
749 749
 
750 750
 				$context['display_mode'] = $cur_profile['pm_prefs'] & 3;
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 
753 753
 				return true;
754 754
 			},
755
-			'input_validate' => function (&$value) {
755
+			'input_validate' => function(&$value) {
756 756
 				global $cur_profile, $profile_vars;
757 757
 
758 758
 				// Simple validate and apply the two "sub settings"
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
 			'log_change' => true,
770 770
 			'size' => 7,
771 771
 			'permission' => 'moderate_forum',
772
-			'input_validate' => function (&$value) {
772
+			'input_validate' => function(&$value) {
773 773
 				if (!is_numeric($value))
774 774
 					return 'digits_only';
775 775
 				else
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
 			'input_attr' => array('maxlength="60"'),
786 786
 			'permission' => 'profile_identity',
787 787
 			'enabled' => !empty($modSettings['allow_editDisplayName']) || allowedTo('moderate_forum'),
788
-			'input_validate' => function (&$value) {
788
+			'input_validate' => function(&$value) {
789 789
 				global $context, $cur_profile;
790 790
 
791 791
 				$value = trim(preg_replace('~[\s]~u', ' ', $value));
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
 			'postinput' => '<span class="smalltext" style="margin-left: 4ex;">[<a href="' . $scripturl . '?action=quickhelp;help=secret_why_blank" onclick="return reqOverlayDiv(this.href);">' . $txt['secret_why_blank'] . '</a>]</span>',
819 819
 			'value' => '',
820 820
 			'permission' => 'profile_identity',
821
-			'input_validate' => function (&$value) {
821
+			'input_validate' => function(&$value) {
822 822
 				global $cur_profile;
823 823
 
824 824
 				if (empty($value))
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
 			'callback_func' => 'smiley_pick',
863 863
 			'enabled' => !empty($modSettings['smiley_sets_enable']),
864 864
 			'permission' => 'profile_extra',
865
-			'preload' => function () {
865
+			'preload' => function() {
866 866
 				global $modSettings, $context, $txt, $cur_profile;
867 867
 
868 868
 				$context['member']['smiley_set']['id'] = empty($cur_profile['smiley_set']) ? '' : $cur_profile['smiley_set'];
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
 				}
882 882
 				return true;
883 883
 			},
884
-			'input_validate' => function (&$value) {
884
+			'input_validate' => function(&$value) {
885 885
 				global $modSettings;
886 886
 
887 887
 				$smiley_sets = explode(',', $modSettings['smiley_sets_known']);
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
 			'callback_func' => 'theme_settings',
897 897
 			'permission' => 'profile_extra',
898 898
 			'is_dummy' => true,
899
-			'preload' => function () {
899
+			'preload' => function() {
900 900
 				global $context, $user_info;
901 901
 
902 902
 				loadLanguage('Settings');
@@ -913,7 +913,7 @@  discard block
 block discarded – undo
913 913
 			'type' => 'callback',
914 914
 			'callback_func' => 'timeformat_modify',
915 915
 			'permission' => 'profile_extra',
916
-			'preload' => function () {
916
+			'preload' => function() {
917 917
 				global $context, $user_info, $txt, $cur_profile, $modSettings;
918 918
 
919 919
 				$context['easy_timeformats'] = array(
@@ -936,13 +936,13 @@  discard block
 block discarded – undo
936 936
 			'type' => 'callback',
937 937
 			'callback_func' => 'timeoffset_modify',
938 938
 			'permission' => 'profile_extra',
939
-			'preload' => function () {
939
+			'preload' => function() {
940 940
 				global $context, $cur_profile;
941 941
 
942 942
 				$context['member']['time_offset'] = $cur_profile['time_offset'];
943 943
 				return true;
944 944
 			},
945
-			'input_validate' => function (&$value) {
945
+			'input_validate' => function(&$value) {
946 946
 				// Validate the time_offset...
947 947
 				$value = (float) strtr($value, ',', '.');
948 948
 
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
 			'size' => 50,
961 961
 			'permission' => 'profile_title',
962 962
 			'enabled' => !empty($modSettings['titlesEnable']),
963
-			'input_validate' => function (&$value) {
963
+			'input_validate' => function(&$value) {
964 964
 				if (Util::strlen($value) > 50)
965 965
 					return 'user_title_too_long';
966 966
 
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
 			'size' => 50,
983 983
 			'permission' => 'profile_extra',
984 984
 			// Fix the URL...
985
-			'input_validate' => function (&$value) {
985
+			'input_validate' => function(&$value) {
986 986
 
987 987
 				$value = addProtocol($value, array('http://', 'https://', 'ftp://', 'ftps://'));
988 988
 				if (strlen($value) < 8)
Please login to merge, or discard this patch.
sources/subs/Admin.subs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 		'file_versions_subs' => SUBSDIR,
242 242
 		'file_versions_modules' => SOURCEDIR . '/modules',
243 243
 	);
244
-	$tmp_version_info = array_combine(array_keys($directories),array_fill(0,count($directories),array()));
244
+	$tmp_version_info = array_combine(array_keys($directories), array_fill(0, count($directories), array()));
245 245
 	readFileVersions($tmp_version_info, $directories, '.php', true);
246 246
 
247 247
 	foreach ($tmp_version_info['file_versions_subs'] as $key => $val)
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 			'notify_types' => 4,
485 485
 			'group_array_implode' => implode(', additional_groups) != 0 OR FIND_IN_SET(', $groups),
486 486
 		),
487
-		function ($row) use($replacements, $modSettings, $language, $template)
487
+		function($row) use($replacements, $modSettings, $language, $template)
488 488
 		{
489 489
 			// Stick their particulars in the replacement data.
490 490
 			$replacements['IDMEMBER'] = $row['id_member'];
Please login to merge, or discard this patch.
sources/subs/Members.subs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 			'pm_ignore_list' => implode(', pm_ignore_list) != 0 OR FIND_IN_SET(', $users),
431 431
 			'buddy_list' => implode(', buddy_list) != 0 OR FIND_IN_SET(', $users),
432 432
 		),
433
-		function ($row) use ($users)
433
+		function($row) use ($users)
434 434
 		{
435 435
 			updateMemberData($row['id_member'], array(
436 436
 				'pm_ignore_list' => implode(',', array_diff(explode(',', $row['pm_ignore_list']), $users)),
@@ -1054,7 +1054,7 @@  discard block
 block discarded – undo
1054 1054
 			'member_group_allowed_implode' => implode(', mem.additional_groups) != 0 OR FIND_IN_SET(', $member_groups['allowed']),
1055 1055
 			'member_group_denied_implode' => implode(', mem.additional_groups) != 0 OR FIND_IN_SET(', $member_groups['denied']),
1056 1056
 		),
1057
-		function ($row)
1057
+		function($row)
1058 1058
 		{
1059 1059
 			return $row['id_member'];
1060 1060
 		}
@@ -1509,7 +1509,7 @@  discard block
 block discarded – undo
1509 1509
 {
1510 1510
 	$allowed_conditions = array(
1511 1511
 		'member_ids'   => 'id_member IN ({array_int:member_ids})',
1512
-		'member_names' => function (&$members)
1512
+		'member_names' => function(&$members)
1513 1513
 		{
1514 1514
 			$mem_query = array();
1515 1515
 
@@ -1811,7 +1811,7 @@  discard block
 block discarded – undo
1811 1811
 			'activation_status' => array(1, 12),
1812 1812
 			'limit' => Util::strlen($search) <= 2 ? 100 : 200,
1813 1813
 		),
1814
-		function ($row)
1814
+		function($row)
1815 1815
 		{
1816 1816
 			$row['real_name'] = strtr($row['real_name'], array('&amp;' => '&#038;', '&lt;' => '&#060;', '&gt;' => '&#062;', '&quot;' => '&#034;'));
1817 1817
 
@@ -2509,7 +2509,7 @@  discard block
 block discarded – undo
2509 2509
 					FROM {db_prefix}members
2510 2510
 					WHERE ' . $condition,
2511 2511
 					$parameters,
2512
-					function ($row)
2512
+					function($row)
2513 2513
 					{
2514 2514
 						return $row['member_name'];
2515 2515
 					}
Please login to merge, or discard this patch.
sources/subs/Membergroups.subs.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 			'group_list' => $groups,
343 343
 			'member_list' => $members,
344 344
 		),
345
-		function ($row) use ($group_names)
345
+		function($row) use ($group_names)
346 346
 		{
347 347
 			return array('group' => $group_names[$row['id_group']], 'member' => $row['id_member']);
348 348
 		}
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 			'mod_group' => 3,
596 596
 			'blank_string' => '',
597 597
 		),
598
-		function ($row) use ($scripturl)
598
+		function($row) use ($scripturl)
599 599
 		{
600 600
 			return '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $row['id_group'] . '" ' . ($row['online_color'] ? 'style="color: ' . $row['online_color'] . '"' : '') . '>' . $row['group_name'] . '</a>';
601 601
 		}
@@ -1316,7 +1316,7 @@  discard block
 block discarded – undo
1316 1316
 		array(
1317 1317
 			'copy_from' => $copy_from,
1318 1318
 		),
1319
-		function ($row) use ($id_group)
1319
+		function($row) use ($id_group)
1320 1320
 		{
1321 1321
 			return array($id_group, $row['id_profile'], $row['permission'], $row['add_deny']);
1322 1322
 		}
@@ -1463,7 +1463,7 @@  discard block
 block discarded – undo
1463 1463
 			'board_access_list' => $boards[$access_list],
1464 1464
 			'column' => $access_list == 'allow' ? 'member_groups' : 'deny_member_groups',
1465 1465
 		),
1466
-		function ($row) use ($id_group, $access_list, $db)
1466
+		function($row) use ($id_group, $access_list, $db)
1467 1467
 		{
1468 1468
 			$db->query('', '
1469 1469
 				UPDATE {db_prefix}boards
@@ -1657,7 +1657,7 @@  discard block
 block discarded – undo
1657 1657
 		array(
1658 1658
 			'moderators' => $moderators,
1659 1659
 		),
1660
-		function ($row)
1660
+		function($row)
1661 1661
 		{
1662 1662
 			return $row['id_member'];
1663 1663
 		}
@@ -1980,7 +1980,7 @@  discard block
 block discarded – undo
1980 1980
 		array_merge($where_parameters, array(
1981 1981
 			'sort' => $sort,
1982 1982
 		)),
1983
-		function ($row) use ($scripturl)
1983
+		function($row) use ($scripturl)
1984 1984
 		{
1985 1985
 			return array(
1986 1986
 				'id' => $row['id_request'],
@@ -2100,7 +2100,7 @@  discard block
 block discarded – undo
2100 2100
 			'min_posts' => -1,
2101 2101
 			'is_protected' => 1,
2102 2102
 		),
2103
-		function ($row)
2103
+		function($row)
2104 2104
 		{
2105 2105
 			return $row['id_group'];
2106 2106
 		},
Please login to merge, or discard this patch.
sources/subs/BBC/SmileyParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 				ORDER BY LENGTH(code) DESC',
251 251
 				array(
252 252
 				),
253
-				function ($row) use (&$smileysfrom, &$smileysto, &$smileysdescs)
253
+				function($row) use (&$smileysfrom, &$smileysto, &$smileysdescs)
254 254
 				{
255 255
 					$smileysfrom[] = $row['code'];
256 256
 					$smileysto[] = htmlspecialchars($row['filename']);
Please login to merge, or discard this patch.
sources/subs/BBC/Codes.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 				self::ATTR_TAG => 'code',
359 359
 				self::ATTR_TYPE => self::TYPE_UNPARSED_CONTENT,
360 360
 				self::ATTR_CONTENT => '<div class="codeheader">' . $txt['code'] . ': <a href="#" onclick="return elkSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><pre class="bbc_code prettyprint">$1</pre>',
361
-				self::ATTR_VALIDATE => $this->isDisabled('code') ? null : function (&$tag, &$data) {
361
+				self::ATTR_VALIDATE => $this->isDisabled('code') ? null : function(&$tag, &$data) {
362 362
 					$data = tabToHtmlTab(strtr($data, array('[' => '&#91;', ']' => '&#93;')));
363 363
 				},
364 364
 				self::ATTR_BLOCK_LEVEL => true,
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 				self::ATTR_TAG => 'code',
370 370
 				self::ATTR_TYPE => self::TYPE_UNPARSED_EQUALS_CONTENT,
371 371
 				self::ATTR_CONTENT => '<div class="codeheader">' . $txt['code'] . ': ($2) <a href="#" onclick="return elkSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><pre class="bbc_code prettyprint">$1</pre>',
372
-				self::ATTR_VALIDATE => $this->isDisabled('code') ? null : function (&$tag, &$data) {
372
+				self::ATTR_VALIDATE => $this->isDisabled('code') ? null : function(&$tag, &$data) {
373 373
 					$data[0] = tabToHtmlTab(strtr($data[0], array('[' => '&#91;', ']' => '&#93;')));
374 374
 				},
375 375
 				self::ATTR_BLOCK_LEVEL => true,
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 					),
480 480
 				),
481 481
 				self::ATTR_CONTENT => '<img src="$1" title="{title}" alt="{alt}" style="{width}{height}" class="bbc_img resized" />',
482
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
482
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
483 483
 					$data = addProtocol($data);
484 484
 				},
485 485
 				self::ATTR_DISABLED_CONTENT => '($1)',
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 				self::ATTR_TAG => 'img',
492 492
 				self::ATTR_TYPE => self::TYPE_UNPARSED_CONTENT,
493 493
 				self::ATTR_CONTENT => '<img src="$1" alt="" class="bbc_img" />',
494
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
494
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
495 495
 					$data = addProtocol($data);
496 496
 				},
497 497
 				self::ATTR_DISABLED_CONTENT => '($1)',
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 				self::ATTR_TAG => 'iurl',
504 504
 				self::ATTR_TYPE => self::TYPE_UNPARSED_CONTENT,
505 505
 				self::ATTR_CONTENT => '<a href="$1" class="bbc_link">$1</a>',
506
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
506
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
507 507
 					//$data = removeBr($data);
508 508
 					$data = addProtocol($data);
509 509
 				},
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
 				self::ATTR_TYPE => self::TYPE_UNPARSED_EQUALS,
517 517
 				self::ATTR_BEFORE => '<a href="$1" class="bbc_link">',
518 518
 				self::ATTR_AFTER => '</a>',
519
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
519
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
520 520
 					if ($data[0] === '#')
521 521
 					{
522 522
 						$data = '#post_' . substr($data, 1);
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 				self::ATTR_TEST => '[1-7]{1}',
731 731
 				self::ATTR_BEFORE => '<span style="font-size: $1;" class="bbc_size">',
732 732
 				self::ATTR_AFTER => '</span>',
733
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
733
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
734 734
 					$sizes = array(1 => 0.7, 2 => 1.0, 3 => 1.35, 4 => 1.45, 5 => 2.0, 6 => 2.65, 7 => 3.95);
735 735
 					$data = $sizes[(int) $data] . 'em';
736 736
 				},
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
 				self::ATTR_TAG => 'url',
868 868
 				self::ATTR_TYPE => self::TYPE_UNPARSED_CONTENT,
869 869
 				self::ATTR_CONTENT => '<a href="$1" class="bbc_link" target="_blank" rel="noopener noreferrer">$1</a>',
870
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
870
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
871 871
 					$data = addProtocol($data);
872 872
 				},
873 873
 				self::ATTR_BLOCK_LEVEL => false,
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
 				self::ATTR_TYPE => self::TYPE_UNPARSED_EQUALS,
880 880
 				self::ATTR_BEFORE => '<a href="$1" class="bbc_link" target="_blank" rel="noopener noreferrer">',
881 881
 				self::ATTR_AFTER => '</a>',
882
-				self::ATTR_VALIDATE => function (&$tag, &$data) {
882
+				self::ATTR_VALIDATE => function(&$tag, &$data) {
883 883
 					$data = addProtocol($data);
884 884
 				},
885 885
 				self::ATTR_DISALLOW_CHILDREN => array(
Please login to merge, or discard this patch.