From: Siebrand Mazeland Date: Sat, 10 May 2014 08:42:13 +0000 (+0200) Subject: Pass phpcs-strict on includes/rcfeed/ X-Git-Tag: 1.31.0-rc.0~15809^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=97da10e3b2de617842dc003b13fe372af10fa8f2;p=lhc%2Fweb%2Fwiklou.git Pass phpcs-strict on includes/rcfeed/ Change-Id: I197b4963a29fc5c13d71cd820ab780dedbc30b99 --- diff --git a/includes/rcfeed/IRCColourfulRCFeedFormatter.php b/includes/rcfeed/IRCColourfulRCFeedFormatter.php index c2e5b0300c..02a8d7eb85 100644 --- a/includes/rcfeed/IRCColourfulRCFeedFormatter.php +++ b/includes/rcfeed/IRCColourfulRCFeedFormatter.php @@ -77,15 +77,22 @@ class IRCColourfulRCFeedFormatter implements RCFeedFormatter { if ( $attribs['rc_type'] == RC_LOG ) { $targetText = $rc->getTitle()->getPrefixedText(); - $comment = self::cleanupForIRC( str_replace( "[[$targetText]]", "[[\00302$targetText\00310]]", $actionComment ) ); + $comment = self::cleanupForIRC( str_replace( + "[[$targetText]]", + "[[\00302$targetText\00310]]", + $actionComment + ) ); $flag = $attribs['rc_log_action']; } else { $comment = self::cleanupForIRC( $attribs['rc_comment'] ); $flag = ''; - if ( !$attribs['rc_patrolled'] && ( $wgUseRCPatrol || $attribs['rc_type'] == RC_NEW && $wgUseNPPatrol ) ) { + if ( !$attribs['rc_patrolled'] + && ( $wgUseRCPatrol || $attribs['rc_type'] == RC_NEW && $wgUseNPPatrol ) + ) { $flag .= '!'; } - $flag .= ( $attribs['rc_type'] == RC_NEW ? "N" : "" ) . ( $attribs['rc_minor'] ? "M" : "" ) . ( $attribs['rc_bot'] ? "B" : "" ); + $flag .= ( $attribs['rc_type'] == RC_NEW ? "N" : "" ) + . ( $attribs['rc_minor'] ? "M" : "" ) . ( $attribs['rc_bot'] ? "B" : "" ); } if ( $feed['add_interwiki_prefix'] === true && $wgLocalInterwikis ) {