Fix indenting errors introduced in Wikidata branch
authorTim Starling <tstarling@wikimedia.org>
Tue, 19 Jun 2012 01:28:05 +0000 (11:28 +1000)
committerTim Starling <tstarling@wikimedia.org>
Tue, 19 Jun 2012 09:45:31 +0000 (19:45 +1000)
Change-Id: I487a0966a26359d4a6769331a6e2ee356eeb41db

includes/Article.php
includes/AutoLoader.php
includes/DefaultSettings.php
includes/DeprecatedGlobal.php
includes/FeedUtils.php
includes/ImagePage.php
includes/actions/RollbackAction.php
includes/api/ApiComparePages.php
includes/api/ApiEditPage.php
includes/api/ApiParse.php
includes/specials/SpecialComparePages.php

index 7c76806..0c32e19 100644 (file)
@@ -250,9 +250,9 @@ class Article extends Page {
 
        /**
         * Returns a Content object representing the pages effective display content,
-     * not necessarily the revision's content!
-     *
-     * Note that getContent/loadContent do not follow redirects anymore.
+        * not necessarily the revision's content!
+        *
+        * Note that getContent/loadContent do not follow redirects anymore.
         * If you need to fetch redirectable content easily, try
         * the shortcut in WikiPage::getRedirectTarget()
         *
index e8e0b93..0fee7c1 100644 (file)
@@ -280,18 +280,18 @@ $wgAutoloadLocalClasses = array(
        'ZhClient' => 'includes/ZhClient.php',
        'ZipDirectoryReader' => 'includes/ZipDirectoryReader.php',
 
-    # content handler
-    'Content' => 'includes/Content.php',
-    'AbstractContent' => 'includes/Content.php',
-    'ContentHandler' => 'includes/ContentHandler.php',
-    'CssContent' => 'includes/Content.php',
-    'CssContentHandler' => 'includes/ContentHandler.php',
-    'JavaScriptContent' => 'includes/Content.php',
-    'JavaScriptContentHandler' => 'includes/ContentHandler.php',
-    'MessageContent' => 'includes/Content.php',
-    'TextContent' => 'includes/Content.php',
-    'WikitextContent' => 'includes/Content.php',
-    'WikitextContentHandler' => 'includes/ContentHandler.php',
+       # content handler
+       'Content' => 'includes/Content.php',
+       'AbstractContent' => 'includes/Content.php',
+       'ContentHandler' => 'includes/ContentHandler.php',
+       'CssContent' => 'includes/Content.php',
+       'CssContentHandler' => 'includes/ContentHandler.php',
+       'JavaScriptContent' => 'includes/Content.php',
+       'JavaScriptContentHandler' => 'includes/ContentHandler.php',
+       'MessageContent' => 'includes/Content.php',
+       'TextContent' => 'includes/Content.php',
+       'WikitextContent' => 'includes/Content.php',
+       'WikitextContentHandler' => 'includes/ContentHandler.php',
 
        # includes/actions
        'CachedAction' => 'includes/actions/CachedAction.php',
@@ -335,7 +335,7 @@ $wgAutoloadLocalClasses = array(
        'ApiFormatDump' => 'includes/api/ApiFormatDump.php',
        'ApiFormatFeedWrapper' => 'includes/api/ApiFormatBase.php',
        'ApiFormatJson' => 'includes/api/ApiFormatJson.php',
-        'ApiFormatNone' => 'includes/api/ApiFormatNone.php',
+       'ApiFormatNone' => 'includes/api/ApiFormatNone.php',
        'ApiFormatPhp' => 'includes/api/ApiFormatPhp.php',
        'ApiFormatRaw' => 'includes/api/ApiFormatRaw.php',
        'ApiFormatTxt' => 'includes/api/ApiFormatTxt.php',
index 9bc0fd2..41bb970 100644 (file)
@@ -674,10 +674,10 @@ $wgMediaHandlers = array(
  * Each entry in the array maps a model id to a class name
  */
 $wgContentHandlers = array(
-    CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', // the usual case
-    CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', // dumb version, no syntax highlighting
-    CONTENT_MODEL_CSS => 'CssContentHandler', // dumb version, no syntax highlighting
-    CONTENT_MODEL_TEXT => 'TextContentHandler', // dumb plain text in <pre>
+       CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler', // the usual case
+       CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler', // dumb version, no syntax highlighting
+       CONTENT_MODEL_CSS => 'CssContentHandler', // dumb version, no syntax highlighting
+       CONTENT_MODEL_TEXT => 'TextContentHandler', // dumb plain text in <pre>
 );
 
 /**
index 4d7b968..d48bd0b 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 class DeprecatedGlobal extends StubObject {
-        // The m's are to stay consistent with parent class.
+       // The m's are to stay consistent with parent class.
        protected $mRealValue, $mVersion;
 
        function __construct( $name, $realValue, $version = false ) {
index a094255..d60d5c8 100644 (file)
@@ -138,8 +138,8 @@ class FeedUtils {
                        $diffText = '';
                        // Don't bother generating the diff if we won't be able to show it
                        if ( $wgFeedDiffCutoff > 0 ) {
-                $contentHandler = ContentHandler::getForTitle( $title );
-                $de = $contentHandler->createDifferenceEngine( $title, $oldid, $newid );
+                               $contentHandler = ContentHandler::getForTitle( $title );
+                               $de = $contentHandler->createDifferenceEngine( $title, $oldid, $newid );
                                $diffText = $de->getDiff(
                                        wfMsg( 'previousrevision' ), // hack
                                        wfMsg( 'revisionasof',
index 6fd253a..62fdcca 100644 (file)
@@ -270,20 +270,20 @@ class ImagePage extends Article {
                return $r;
        }
 
-    /**
-     * Overloading Article's getContentObject method.
-     *
-     * Omit noarticletext if sharedupload; text will be fetched from the
-     * shared upload server if possible.
-     * @return string
-     */
-    public function getContentObject() {
-        $this->loadFile();
-        if ( $this->mPage->getFile() && !$this->mPage->getFile()->isLocal() && 0 == $this->getID() ) {
-            return null;
-        }
-        return parent::getContentObject();
-    }
+       /**
+        * Overloading Article's getContentObject method.
+        *
+        * Omit noarticletext if sharedupload; text will be fetched from the
+        * shared upload server if possible.
+        * @return string
+        */
+       public function getContentObject() {
+               $this->loadFile();
+               if ( $this->mPage->getFile() && !$this->mPage->getFile()->isLocal() && 0 == $this->getID() ) {
+                       return null;
+               }
+               return parent::getContentObject();
+       }
 
        protected function openShowImage() {
                global $wgImageLimits, $wgEnableUploads, $wgSend404Code;
index 5c85d53..5ee6786 100644 (file)
@@ -109,8 +109,8 @@ class RollbackAction extends FormlessAction {
                $this->getOutput()->returnToMain( false, $this->getTitle() );
 
                if ( !$request->getBool( 'hidediff', false ) && !$this->getUser()->getBoolOption( 'norollbackdiff', false ) ) {
-            $contentHandler = ContentHandler::getForTitle( $this->getTitle() );
-            $de = $contentHandler->createDifferenceEngine( $this->getContext(), $current->getId(), $newId, false, true );
+                       $contentHandler = ContentHandler::getForTitle( $this->getTitle() );
+                       $de = $contentHandler->createDifferenceEngine( $this->getContext(), $current->getId(), $newId, false, true );
                        $de->showDiff( '', '' );
                }
        }
index 5106527..0808521 100644 (file)
@@ -35,8 +35,8 @@ class ApiComparePages extends ApiBase {
                $rev1 = $this->revisionOrTitleOrId( $params['fromrev'], $params['fromtitle'], $params['fromid'] );
                $rev2 = $this->revisionOrTitleOrId( $params['torev'], $params['totitle'], $params['toid'] );
 
-        $contentHandler = ContentHandler::getForModelID( $rev1->getContentModel() );
-        $de = $contentHandler->createDifferenceEngine( $this->getContext(),
+               $contentHandler = ContentHandler::getForModelID( $rev1->getContentModel() );
+               $de = $contentHandler->createDifferenceEngine( $this->getContext(),
                        $rev1,
                        $rev2,
                        null, // rcid
index d445d68..814f0d4 100644 (file)
@@ -119,8 +119,8 @@ class ApiEditPage extends ApiBase {
                        if ( !is_null( $params['section'] ) ) {
                                // Process the content for section edits
                                $section = intval( $params['section'] );
-                $sectionContent = $content->getSection( $section );
-                $text = ContentHandler::getContentText( $sectionContent ); #FIXME: serialize?! get format from params?...
+                               $sectionContent = $content->getSection( $section );
+                               $text = ContentHandler::getContentText( $sectionContent ); #FIXME: serialize?! get format from params?...
                                if ( $text === false || $text === null ) {
                                        $this->dieUsage( "There is no section {$section}.", 'nosuchsection' );
                                }
@@ -242,7 +242,7 @@ class ApiEditPage extends ApiBase {
                // TODO: Make them not or check if they still do
                $wgTitle = $titleObj;
 
-        $handler = ContentHandler::getForTitle( $titleObj );
+               $handler = ContentHandler::getForTitle( $titleObj );
                $ep = $handler->createEditPage( $articleObj );
 
                $ep->setContextTitle( $titleObj );
index 72808e0..9cbaf3f 100644 (file)
@@ -336,7 +336,7 @@ class ApiParse extends ApiBase {
                                $this->dieUsage( "There is no revision ID {$page->getLatest()}", 'missingrev' );
                        }
                        if ( $getWikitext ) {
-                $this->content = $page->getContent( Revision::RAW ); #FIXME: use $this->content everywhere
+                               $this->content = $page->getContent( Revision::RAW ); #FIXME: use $this->content everywhere
                                $this->text = ContentHandler::getContentText( $this->content ); #FIXME: serialize, get format from params; or use object structure in result?
                        }
                        return $pout;
index ecc0b83..565bfda 100644 (file)
@@ -111,7 +111,7 @@ class SpecialComparePages extends SpecialPage {
                $rev2 = self::revOrTitle( $data['Revision2'], $data['Page2'] );
 
                if( $rev1 && $rev2 ) {
-            $contentHandler = ContentHandler::getForModelID( $rev1->getContentModel() );
+                       $contentHandler = ContentHandler::getForModelID( $rev1->getContentModel() );
                        $de = $contentHandler->createDifferenceEngine( $form->getContext(),
                                $rev1,
                                $rev2,