Remove wrong @return from doc blocks
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 24 Aug 2014 09:26:41 +0000 (11:26 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 25 Aug 2014 13:50:05 +0000 (13:50 +0000)
These functions actually does not return anything, so the @return is
wrong here. '@return void' is ignored.

Change-Id: I11495ee05b943c16c1c4715d617c8b50de22276c

includes/Block.php
includes/EditPage.php
includes/Import.php
includes/db/DatabaseMysqlBase.php
includes/debug/MWDebug.php
includes/specials/SpecialNewpages.php
maintenance/checkSyntax.php

index 88534c0..6a29a05 100644 (file)
@@ -596,7 +596,6 @@ class Block {
         *
         * @param Block $block
         * @param array &$blockIds
-        * @return array Block IDs of retroactive autoblocks made
         */
        protected static function defaultRetroactiveAutoblock( Block $block, array &$blockIds ) {
                global $wgPutIPinRC;
index 9a4567d..b83569d 100644 (file)
@@ -2758,7 +2758,6 @@ class EditPage {
         *   up top, or false if this is the comment summary
         *   down below the textarea
         * @param string $summary The text of the summary to display
-        * @return string
         */
        protected function showSummaryInput( $isSubjectPreview, $summary = "" ) {
                global $wgOut, $wgContLang;
index 3880e25..b3ca041 100644 (file)
@@ -1494,9 +1494,6 @@ class WikiRevision {
                return true;
        }
 
-       /**
-        * @return mixed
-        */
        function importLogItem() {
                $dbw = wfGetDB( DB_MASTER );
                # @todo FIXME: This will not record autoblocks
index 5ad7c78..ba0f39f 100644 (file)
@@ -901,7 +901,6 @@ abstract class DatabaseMysqlBase extends DatabaseBase {
 
        /**
         * @param bool $value
-        * @return null|bool|ResultWrapper
         */
        public function setBigSelects( $value = true ) {
                if ( $value === 'default' ) {
index 0cea658..01e0ba0 100644 (file)
@@ -182,7 +182,6 @@ class MWDebug {
         * @param int $callerOffset How far up the callstack is the original
         *    caller. 2 = function that called the function that called
         *    MWDebug::deprecated() (Added in 1.20).
-        * @return mixed
         */
        public static function deprecated( $function, $version = false,
                $component = false, $callerOffset = 2
index fbb2d73..0b70bb7 100644 (file)
@@ -117,7 +117,6 @@ class SpecialNewpages extends IncludableSpecialPage {
         * Show a form for filtering namespace and username
         *
         * @param string $par
-        * @return string
         */
        public function execute( $par ) {
                $out = $this->getOutput();
index 6ef4909..d1c2edd 100644 (file)
@@ -345,7 +345,6 @@ class CheckSyntax extends Maintenance {
         * or pointless ?> closing tags at the end.
         *
         * @param string $file String Path to a file to check for errors
-        * @return bool
         */
        private function checkForMistakes( $file ) {
                foreach ( $this->mNoStyleCheckPaths as $regex ) {