jenkins-bot has submitted this change and it was merged.

Change subject: Fix indentation
......................................................................


Fix indentation

Change-Id: Ib5b642c91dc72cb7767b0124c5f582d3b07f4028
---
M includes/MobileFrontend.hooks.php
1 file changed, 15 insertions(+), 15 deletions(-)

Approvals:
  MaxSem: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index 8cd4457..d1ee9e7 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -468,22 +468,22 @@
         * @return bool
         */
        public static function onBeforePageDisplay( &$out, &$sk ) {
-                       global $wgMFEnableXAnalyticsLogging;
-                       wfProfileIn( __METHOD__ );
+               global $wgMFEnableXAnalyticsLogging;
+               wfProfileIn( __METHOD__ );
 
-                       if ( !$wgMFEnableXAnalyticsLogging ) {
-                               return true;
-                       }
-
-                       // Set X-Analytics HTTP response header if necessary
-                       $context = MobileContext::singleton();
-                       $analyticsHeader = $context->getXAnalyticsHeader();
-                       if ( $analyticsHeader ) {
-                               $resp = $out->getRequest()->response();
-                               $resp->header( $analyticsHeader );
-                       }
-
-                       wfProfileOut( __METHOD__ );
+               if ( !$wgMFEnableXAnalyticsLogging ) {
                        return true;
+               }
+
+               // Set X-Analytics HTTP response header if necessary
+               $context = MobileContext::singleton();
+               $analyticsHeader = $context->getXAnalyticsHeader();
+               if ( $analyticsHeader ) {
+                       $resp = $out->getRequest()->response();
+                       $resp->header( $analyticsHeader );
+               }
+
+               wfProfileOut( __METHOD__ );
+               return true;
        }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5b642c91dc72cb7767b0124c5f582d3b07f4028
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: JGonera <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to