Passed
Push — release-2.1 ( 7b18b6...249e75 )
by Mathias
06:31 queued 12s
created
Sources/Post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1259,7 +1259,7 @@
 block discarded – undo
1259 1259
 	// File Upload.
1260 1260
 	if ($context['can_post_attachment'])
1261 1261
 	{
1262
-		$acceptedFiles = empty($context['allowed_extensions']) ? '' : implode(',', array_map(function ($val) use ($smcFunc)
1262
+		$acceptedFiles = empty($context['allowed_extensions']) ? '' : implode(',', array_map(function($val) use ($smcFunc)
1263 1263
 		{
1264 1264
 			return !empty($val) ? ('.' . $smcFunc['htmltrim']($val)) : '';
1265 1265
 		}, explode(',', $context['allowed_extensions'])));
Please login to merge, or discard this patch.
Sources/Display.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1655,14 +1655,14 @@  discard block
 block discarded – undo
1655 1655
 	$output['quickbuttons'] = array(
1656 1656
 		'quote' => array(
1657 1657
 			'label' => $txt['quote_action'],
1658
-			'href' => $scripturl.'?action=post;quote='.$output['id'].';topic='.$context['current_topic'], '.'.$context['start'].';last_msg='.$context['topic_last_message'],
1659
-			'javascript' => 'onclick="return oQuickReply.quote('.$output['id'].');"',
1658
+			'href' => $scripturl . '?action=post;quote=' . $output['id'] . ';topic=' . $context['current_topic'], '.' . $context['start'] . ';last_msg=' . $context['topic_last_message'],
1659
+			'javascript' => 'onclick="return oQuickReply.quote(' . $output['id'] . ');"',
1660 1660
 			'icon' => 'quote',
1661 1661
 			'show' => $context['can_quote']
1662 1662
 		),
1663 1663
 		'quote_selected' => array(
1664 1664
 			'label' => $txt['quote_selected_action'],
1665
-			'id' => 'quoteSelected_'. $output['id'],
1665
+			'id' => 'quoteSelected_' . $output['id'],
1666 1666
 			'href' => 'javascript:void(0)',
1667 1667
 			'custom' => 'style="display:none"',
1668 1668
 			'icon' => 'quote_selected',
@@ -1671,71 +1671,71 @@  discard block
 block discarded – undo
1671 1671
 		'quick_edit' => array(
1672 1672
 			'label' => $txt['quick_edit'],
1673 1673
 			'class' => 'quick_edit',
1674
-			'id' =>' modify_button_'. $output['id'],
1675
-			'custom' => 'onclick="oQuickModify.modifyMsg(\''.$output['id'].'\', \''.!empty($modSettings['toggle_subject']).'\')"',
1674
+			'id' =>' modify_button_' . $output['id'],
1675
+			'custom' => 'onclick="oQuickModify.modifyMsg(\'' . $output['id'] . '\', \'' . !empty($modSettings['toggle_subject']) . '\')"',
1676 1676
 			'icon' => 'quick_edit_button',
1677 1677
 			'show' => $output['can_modify']
1678 1678
 		),
1679 1679
 		'more' => array(
1680 1680
 			'modify' => array(
1681 1681
 				'label' => $txt['modify'],
1682
-				'href' => $scripturl.'?action=post;msg='.$output['id'].';topic='.$context['current_topic'].'.'.$context['start'],
1682
+				'href' => $scripturl . '?action=post;msg=' . $output['id'] . ';topic=' . $context['current_topic'] . '.' . $context['start'],
1683 1683
 				'icon' => 'modify_button',
1684 1684
 				'show' => $output['can_modify']
1685 1685
 			),
1686 1686
 			'remove_topic' => array(
1687 1687
 				'label' => $txt['remove_topic'],
1688
-				'href' => $scripturl.'?action=removetopic2;topic='.$context['current_topic'].'.'.$context['start'].';'.$context['session_var'].'='.$context['session_id'],
1689
-				'javascript' => 'data-confirm="'.$txt['are_sure_remove_topic'].'" class="you_sure"',
1688
+				'href' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1689
+				'javascript' => 'data-confirm="' . $txt['are_sure_remove_topic'] . '" class="you_sure"',
1690 1690
 				'icon' => 'remove_button',
1691 1691
 				'show' => $context['can_delete'] && ($context['topic_first_message'] == $output['id'])
1692 1692
 			),
1693 1693
 			'remove' => array(
1694 1694
 				'label' => $txt['remove'],
1695
-				'href' => $scripturl.'?action=deletemsg;topic='.$context['current_topic'].'.'.$context['start'].';msg='.$output['id'].';'.$context['session_var'].'='.$context['session_id'],
1696
-				'javascript' => 'data-confirm="'.$txt['remove_message_question'].'" class="you_sure"',
1695
+				'href' => $scripturl . '?action=deletemsg;topic=' . $context['current_topic'] . '.' . $context['start'] . ';msg=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1696
+				'javascript' => 'data-confirm="' . $txt['remove_message_question'] . '" class="you_sure"',
1697 1697
 				'icon' => 'remove_button',
1698 1698
 				'show' => $output['can_remove'] && ($context['topic_first_message'] != $output['id'])
1699 1699
 			),
1700 1700
 			'split' => array(
1701 1701
 				'label' => $txt['split'],
1702
-				'href' => $scripturl.'?action=splittopics;topic='.$context['current_topic'].'.0;at='.$output['id'],
1702
+				'href' => $scripturl . '?action=splittopics;topic=' . $context['current_topic'] . '.0;at=' . $output['id'],
1703 1703
 				'icon' => 'split_button',
1704 1704
 				'show' => $context['can_split'] && !empty($context['real_num_replies'])
1705 1705
 			),
1706 1706
 			'report' => array(
1707 1707
 				'label' => $txt['report_to_mod'],
1708
-				'href' => $scripturl.'?action=reporttm;topic='.$context['current_topic'].'.'.$output['counter'].';msg='.$output['id'],
1708
+				'href' => $scripturl . '?action=reporttm;topic=' . $context['current_topic'] . '.' . $output['counter'] . ';msg=' . $output['id'],
1709 1709
 				'icon' => 'error',
1710 1710
 				'show' => $context['can_report_moderator']
1711 1711
 			),
1712 1712
 			'warn' => array(
1713 1713
 				'label' => $txt['issue_warning'],
1714
-				'href' => $scripturl.'?action=profile;area=issuewarning;u='.$output['member']['id'].';msg='.$output['id'],
1714
+				'href' => $scripturl . '?action=profile;area=issuewarning;u=' . $output['member']['id'] . ';msg=' . $output['id'],
1715 1715
 				'icon' => 'warn_button',
1716 1716
 				'show' => $context['can_issue_warning'] && !$output['is_message_author'] && !$output['member']['is_guest']
1717 1717
 			),
1718 1718
 			'restore' => array(
1719 1719
 				'label' => $txt['restore_message'],
1720
-				'href' => $scripturl.'?action=restoretopic;msgs='.$output['id'].';'.$context['session_var'].'='.$context['session_id'],
1720
+				'href' => $scripturl . '?action=restoretopic;msgs=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1721 1721
 				'icon' => 'restore_button',
1722 1722
 				'show' => $context['can_restore_msg']
1723 1723
 			),
1724 1724
 			'approve' => array(
1725 1725
 				'label' => $txt['approve'],
1726
-				'href' => $scripturl.'?action=moderate;area=postmod;sa=approve;topic='.$context['current_topic'].'.'.$context['start'].';msg='.$output['id'].';'.$context['session_var'].'='.$context['session_id'],
1726
+				'href' => $scripturl . '?action=moderate;area=postmod;sa=approve;topic=' . $context['current_topic'] . '.' . $context['start'] . ';msg=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1727 1727
 				'icon' => 'approve_button',
1728 1728
 				'show' => $output['can_approve']
1729 1729
 			),
1730 1730
 			'unapprove' => array(
1731 1731
 				'label' => $txt['unapprove'],
1732
-				'href' => $scripturl.'?action=moderate;area=postmod;sa=approve;topic='.$context['current_topic'].'.'.$context['start'].';msg='.$output['id'].';'.$context['session_var'].'='.$context['session_id'],
1732
+				'href' => $scripturl . '?action=moderate;area=postmod;sa=approve;topic=' . $context['current_topic'] . '.' . $context['start'] . ';msg=' . $output['id'] . ';' . $context['session_var'] . '=' . $context['session_id'],
1733 1733
 				'icon' => 'unapprove_button',
1734 1734
 				'show' => $output['can_unapprove']
1735 1735
 			),
1736 1736
 		),
1737 1737
 		'quickmod' => array(
1738
-			'id' => 'in_topic_mod_check_'. $output['id'],
1738
+			'id' => 'in_topic_mod_check_' . $output['id'],
1739 1739
 			'custom' => 'style="display: none;"',
1740 1740
 			'content' => '',
1741 1741
 			'show' => !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $output['can_remove'],
Please login to merge, or discard this patch.