Documentation
authorSam Reed <reedy@users.mediawiki.org>
Thu, 13 Oct 2011 18:44:26 +0000 (18:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 13 Oct 2011 18:44:26 +0000 (18:44 +0000)
Swap a lot of "@returns" to "@return"

includes/EditPage.php
includes/HttpFunctions.php
includes/installer/WebInstallerPage.php
includes/media/SVG.php
includes/revisiondelete/RevisionDeleter.php

index cece348..f2cdc00 100644 (file)
@@ -169,7 +169,7 @@ class EditPage {
         * Fetch initial editing page content.
         *
         * @param $def_text string
-        * @returns mixed string on success, $def_text for invalid sections
+        * @return mixed string on success, $def_text for invalid sections
         * @private
         */
        function getContent( $def_text = '' ) {
index aa69ae7..d249571 100644 (file)
@@ -127,7 +127,7 @@ class Http {
         * @fixme this is wildly inaccurate and fails to actually check most stuff
         *
         * @param $uri Mixed: URI to check for validity
-        * @returns Boolean
+        * @return Boolean
         */
        public static function isValidURI( $uri ) {
                return preg_match(
@@ -525,7 +525,7 @@ class MWHttpRequest {
        /**
         * Returns the cookie jar in use.
         *
-        * @returns CookieJar
+        * @return CookieJar
         */
        public function getCookieJar() {
                if ( !$this->respHeaders ) {
@@ -571,7 +571,7 @@ class MWHttpRequest {
         * Relative values of the "Location" header are incorrect as stated in RFC, however they do happen and modern browsers support them.
         * This function loops backwards through all locations in order to build the proper absolute URI - Marooned at wikia-inc.com
         *
-        * @returns string
+        * @return string
         */
        public function getFinalUrl() {
                $headers = $this->getResponseHeaders();
index caf4fd6..08235e3 100644 (file)
@@ -122,7 +122,7 @@ abstract class WebInstallerPage {
        /**
         * Get the end tag of a fieldset.
         *
-        * @returns string
+        * @return string
         */
        protected function getFieldsetEnd() {
                return "</fieldset>\n";
index 9a32cf6..986c164 100644 (file)
@@ -119,7 +119,7 @@ class SvgHandler extends ImageHandler {
        * @param string $dstPath
        * @param string $width
        * @param string $height
-       * @returns TRUE/MediaTransformError
+       * @return true|MediaTransformError
        */
        public function rasterize( $srcPath, $dstPath, $width, $height ) {
                global $wgSVGConverters, $wgSVGConverter, $wgSVGConverterPath;
index 7868cb7..9f05c62 100644 (file)
@@ -65,10 +65,11 @@ class RevisionDeleter {
                return $ret;
        }
 
-       // Get DB field name for URL param...
-       // Future code for other things may also track
-       // other types of revision-specific changes.
-       // @returns string One of log_id/rev_id/fa_id/ar_timestamp/oi_archive_name
+       /** Get DB field name for URL param...
+        * Future code for other things may also track
+        * other types of revision-specific changes.
+        * @return string One of log_id/rev_id/fa_id/ar_timestamp/oi_archive_name
+        */
        public static function getRelationType( $typeName ) {
                if ( isset( SpecialRevisionDelete::$deprecatedTypeMap[$typeName] ) ) {
                        $typeName = SpecialRevisionDelete::$deprecatedTypeMap[$typeName];