Fix spacing between two functions
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 15 Mar 2014 19:57:00 +0000 (20:57 +0100)
committerIAlex <codereview@emsenhuber.ch>
Sat, 15 Mar 2014 20:57:23 +0000 (20:57 +0000)
Added and removed some new lines to have one new line between two
functions

Change-Id: I1ccfbd575dd26b160396ef3d3e2e079f5cdbe196

15 files changed:
includes/Html.php
includes/Pager.php
includes/Sanitizer.php
includes/Skin.php
includes/parser/Parser.php
includes/parser/Preprocessor_Hash.php
includes/resourceloader/ResourceLoaderStartUpModule.php
includes/revisiondelete/RevisionDelete.php
includes/search/SearchEngine.php
includes/search/SearchOracle.php
includes/search/SearchPostgres.php
includes/specialpage/SpecialPage.php
includes/specials/SpecialStatistics.php
includes/specials/SpecialUpload.php
maintenance/benchmarks/bench_strtr_str_replace.php

index 0eb6474..c4fc29a 100644 (file)
@@ -689,6 +689,7 @@ class Html {
                }
                return self::element( 'textarea', $attribs, $spacedValue );
        }
+
        /**
         * Build a drop-down box for selecting a namespace
         *
index 6a10e88..747d2c1 100644 (file)
@@ -249,6 +249,7 @@ abstract class IndexPager extends ContextSource implements Pager {
        function setOffset( $offset ) {
                $this->mOffset = $offset;
        }
+
        /**
         * Set the limit from an other source than the request
         *
index 53bb8fb..dd87b06 100644 (file)
@@ -1302,6 +1302,7 @@ class Sanitizer {
                        array( 'Sanitizer', 'normalizeCharReferencesCallback' ),
                        $text );
        }
+
        /**
         * @param string $matches
         * @return string
index 5fa01ae..9312a0d 100644 (file)
@@ -1249,6 +1249,7 @@ abstract class Skin extends ContextSource {
                wfProfileOut( __METHOD__ );
                return $bar;
        }
+
        /**
         * Add content from a sidebar system message
         * Currently only used for MediaWiki:Sidebar (but may be used by Extensions)
index e3d7fdf..915beba 100644 (file)
@@ -1684,6 +1684,7 @@ class Parser {
                wfProfileOut( __METHOD__ );
                return $s;
        }
+
        /**
         * Get the rel attribute for a particular external link.
         *
@@ -1703,6 +1704,7 @@ class Parser {
                }
                return null;
        }
+
        /**
         * Get an associative array of additional HTML attributes appropriate for a
         * particular external link.  This currently may include rel => nofollow
index 53e79d4..deaf288 100644 (file)
@@ -1385,6 +1385,7 @@ class PPTemplateFrame_Hash extends PPFrame_Hash {
                $s .= '}';
                return $s;
        }
+
        /**
         * Returns true if there are no arguments in this frame
         *
index 9ae7795..64fafd7 100644 (file)
@@ -221,7 +221,6 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
                return  wfAppendQuery( wfScript( 'load' ), $query );
        }
 
-
        /**
         * @param $context ResourceLoaderContext
         * @return string
index 0509008..7992882 100644 (file)
@@ -687,6 +687,7 @@ class RevDel_FileItem extends RevDel_Item {
                }
                return '<span class="history-deleted">' . $link . '</span>';
        }
+
        /**
         * Generate a user tool link cluster if the current user is allowed to view it
         * @return string HTML
index eea723b..45d0044 100644 (file)
@@ -439,6 +439,7 @@ class SearchEngine {
                $lc = $this->legalSearchChars();
                return trim( preg_replace( "/[^{$lc}]/", " ", $text ) );
        }
+
        /**
         * Load up the appropriate search engine class for the currently
         * active database backend, and return a configured instance.
@@ -775,6 +776,7 @@ class SearchResult {
                $result->initFromTitle( $title );
                return $result;
        }
+
        /**
         * Return a new SearchResult and initializes it with a row.
         *
@@ -986,23 +988,28 @@ class SearchResult {
                return false;
        }
 }
+
 /**
  * A SearchResultSet wrapper for SearchEngine::getNearMatch
  */
 class SearchNearMatchResultSet extends SearchResultSet {
        private $fetched = false;
+
        /**
         * @param $match mixed Title if matched, else null
         */
        public function __construct( $match ) {
                $this->result = $match;
        }
+
        public function hasResult() {
                return (bool)$this->result;
        }
+
        public function numRows() {
                return $this->hasResults() ? 1 : 0;
        }
+
        public function next() {
                if ( $this->fetched || !$this->result ) {
                        return false;
index 4532178..2603161 100644 (file)
@@ -230,6 +230,7 @@ class SearchOracle extends SearchDatabase {
                $t = preg_replace( '/([-&|])/', '\\\\$1', $t );
                return $t;
        }
+
        /**
         * Create or update the search index record for the given page.
         * Title and text should be pre-processed.
index 9dc1e77..dff6a72 100644 (file)
@@ -217,6 +217,7 @@ class PostgresSearchResult extends SearchResult {
                parent::__construct( $row );
                $this->score = $row->score;
        }
+
        function getScore() {
                return $this->score;
        }
index e5ce48f..91a2de2 100644 (file)
@@ -169,6 +169,7 @@ class SpecialPage {
        function isListed() {
                return $this->mListed;
        }
+
        /**
         * Set whether this page is listed in Special:Specialpages, at run-time
         * @since 1.3
@@ -178,6 +179,7 @@ class SpecialPage {
        function setListed( $listed ) {
                return wfSetVar( $this->mListed, $listed );
        }
+
        /**
         * Get or set whether this special page is listed in Special:SpecialPages
         * @since 1.6
index f26d1a6..56f3f41 100644 (file)
@@ -151,6 +151,7 @@ class SpecialStatistics extends SpecialPage {
                                                $this->getLanguage()->formatNum( $this->images ),
                                                array( 'class' => 'mw-statistics-files' ) );
        }
+
        private function getEditStats() {
                return Xml::openElement( 'tr' ) .
                        Xml::tags( 'th', array( 'colspan' => '2' ), $this->msg( 'statistics-header-edits' )->parse() ) .
index 27ba78e..35bbf0b 100644 (file)
@@ -315,6 +315,7 @@ class SpecialUpload extends SpecialPage {
                $form->setSubmitText( $this->msg( 'upload-tryagain' )->escaped() );
                $this->showUploadForm( $form );
        }
+
        /**
         * Stashes the upload, shows the main form, but adds a "continue anyway button".
         * Also checks whether there are actually warnings to display.
index bd21b18..76b5e3c 100644 (file)
@@ -63,7 +63,6 @@ class bench_strtr_str_replace extends Benchmarker {
                str_replace( "_", " ", "[[MediaWiki:Some_random_test_page]]");
        }
 
-
        function benchstrtr_indirect() {
                bfNormalizeTitleStrTr( "[[MediaWiki:Some_random_test_page]]" );
        }