Siebrand has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/96485


Change subject: Break long lines in MWDebug class
......................................................................

Break long lines in MWDebug class

Change-Id: I65a080f8024a79e6e6b4ccc39e457b26d3637cf7
---
M includes/debug/Debug.php
1 file changed, 16 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/85/96485/1

diff --git a/includes/debug/Debug.php b/includes/debug/Debug.php
index 6e9ccc4..acd0724 100644
--- a/includes/debug/Debug.php
+++ b/includes/debug/Debug.php
@@ -31,7 +31,6 @@
  * @since 1.19
  */
 class MWDebug {
-
        /**
         * Log lines
         *
@@ -185,7 +184,9 @@
         *    MWDebug::deprecated() (Added in 1.20).
         * @return mixed
         */
-       public static function deprecated( $function, $version = false, 
$component = false, $callerOffset = 2 ) {
+       public static function deprecated( $function, $version = false,
+               $component = false, $callerOffset = 2
+       ) {
                $callerDescription = self::getCallerDescription( $callerOffset 
);
                $callerFunc = $callerDescription['func'];
 
@@ -227,7 +228,11 @@
 
                if ( $sendToLog ) {
                        global $wgDevelopmentWarnings; // we could have a more 
specific $wgDeprecationWarnings setting.
-                       self::sendWarning( $msg, $callerDescription, 
$wgDevelopmentWarnings ? E_USER_DEPRECATED : false );
+                       self::sendWarning(
+                               $msg,
+                               $callerDescription,
+                               $wgDevelopmentWarnings ? E_USER_DEPRECATED : 
false
+                       );
                }
 
                if ( self::$enabled ) {
@@ -445,10 +450,15 @@
                                $display = "\xc2\xa0";
                        }
 
-                       if ( !$ident && $diff < 0 && substr( $display, 0, 9 ) 
!= 'Entering ' && substr( $display, 0, 8 ) != 'Exiting ' ) {
+                       if ( !$ident
+                               && $diff < 0
+                               && substr( $display, 0, 9 ) != 'Entering '
+                               && substr( $display, 0, 8 ) != 'Exiting '
+                       ) {
                                $ident = $curIdent;
                                $diff = 0;
-                               $display = '<span style="background:yellow;">' 
. nl2br( htmlspecialchars( $display ) ) . '</span>';
+                               $display = '<span style="background:yellow;">' .
+                                       nl2br( htmlspecialchars( $display ) ) . 
'</span>';
                        } else {
                                $display = nl2br( htmlspecialchars( $display ) 
);
                        }
@@ -517,6 +527,7 @@
 
                global $wgVersion, $wgRequestTime;
                $request = $context->getRequest();
+
                return array(
                        'mwVersion' => $wgVersion,
                        'phpVersion' => PHP_VERSION,

-- 
To view, visit https://gerrit.wikimedia.org/r/96485
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I65a080f8024a79e6e6b4ccc39e457b26d3637cf7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to