Various fixes for RecentChange
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Tue, 19 Nov 2013 12:29:45 +0000 (13:29 +0100)
committerSiebrand <siebrand@wikimedia.org>
Tue, 19 Nov 2013 12:43:02 +0000 (12:43 +0000)
* Do not return the value of a function that returns void
* Update documentation

Change-Id: I2b25bf34f578be516a19c84d45860ab6c7f93e0e

includes/changes/RecentChange.php

index a6920f6..7deae5c 100644 (file)
@@ -105,6 +105,7 @@ class RecentChange {
        }
 
        /**
+        * No uses left in Gerrit on 2013-11-19.
         * @deprecated in 1.22
         * @param $row
         * @return RecentChange
@@ -324,7 +325,7 @@ class RecentChange {
                        'add_interwiki_prefix' => $wgRC2UDPInterwikiPrefix,
                );
 
-               return $engine->send( $feed, $line );
+               $engine->send( $feed, $line );
        }
 
        /**
@@ -351,6 +352,7 @@ class RecentChange {
                                continue;
                        }
 
+                       /** @var $formatter RCFeedFormatter */
                        $formatter = new $feed['formatter']();
                        $line = $formatter->getLine( $feed, $this, $actionComment );
 
@@ -361,7 +363,8 @@ class RecentChange {
        /**
         * Gets the stream engine object for a given URI from $wgRCEngines
         *
-        * @param $uri string URI to get the engine object for
+        * @param string $uri URI to get the engine object for
+        * @throws MWException
         * @return object The engine object
         */
        private static function getEngine( $uri ) {