Remove @static from all over the place. That's what the static keyword is for, this...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 21 Apr 2011 00:07:09 +0000 (00:07 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 21 Apr 2011 00:07:09 +0000 (00:07 +0000)
22 files changed:
includes/ChangesList.php
includes/Collation.php
includes/Linker.php
includes/MagicWord.php
includes/RecentChange.php
includes/api/ApiDelete.php
includes/api/ApiMain.php
includes/api/ApiQueryImageInfo.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQueryUsers.php
includes/db/DatabasePostgres.php
includes/filerepo/ForeignAPIFile.php
includes/filerepo/LocalRepo.php
includes/filerepo/OldLocalFile.php
includes/installer/DatabaseUpdater.php
includes/parser/CoreLinkFunctions.php
includes/parser/CoreParserFunctions.php
includes/parser/CoreTagHooks.php
includes/parser/Parser.php
includes/revisiondelete/RevisionDeleter.php

index 8732e6f..59bb7b2 100644 (file)
@@ -17,7 +17,6 @@ class RCCacheEntry extends RecentChange {
        var $userlink, $timestamp, $watched;
 
        /**
-        * @static
         * @param $rc RecentChange
         * @return RCCacheEntry
         */
index 1277c50..4cd921d 100644 (file)
@@ -4,7 +4,6 @@ abstract class Collation {
        static $instance;
 
        /**
-        * @static
         * @return Collation
         */
        static function singleton() {
@@ -16,7 +15,6 @@ abstract class Collation {
        }
 
        /**
-        * @static
         * @throws MWException
         * @param $collationName string
         * @return Collation
index 4f2b833..7c9031a 100644 (file)
@@ -1208,7 +1208,6 @@ class Linker {
        }
 
        /**
-        * @static
         * @param $contextTitle Title
         * @param  $target
         * @param  $text
index f77d5f9..d30f7cc 100644 (file)
@@ -190,7 +190,6 @@ class MagicWord {
 
        /**
         * Factory: creates an object representing an ID
-        * @static
         * @return MagicWord
         */
        static function &get( $id ) {
@@ -481,6 +480,7 @@ class MagicWord {
         * thereby gaining some efficiency. The result is placed in the out variable
         * $result. The return value is true if something was replaced.
         * @static
+        * @todo Should this be static? It doesn't seem to be used at all
         **/
        function replaceMultiple( $magicarr, $subject, &$result ){
                $search = array();
index 11b65b7..ca3d208 100644 (file)
@@ -340,7 +340,6 @@ class RecentChange {
        /**
         * Makes an entry in the database corresponding to an edit
         *
-        * @static
         * @param $timestamp
         * @param $title Title
         * @param $minor
@@ -407,7 +406,6 @@ class RecentChange {
         * Note: the title object must be loaded with the new id using resetArticleID()
         * @todo Document parameters and return
         *
-        * @static
         * @param $timestamp
         * @param $title Title
         * @param $minor
@@ -469,7 +467,6 @@ class RecentChange {
        # Makes an entry in the database corresponding to a rename
 
        /**
-        * @static
         * @param $timestamp
         * @param $oldTitle Title
         * @param $newTitle Title
@@ -547,7 +544,6 @@ class RecentChange {
        }
 
        /**
-        * @static
         * @param $timestamp
         * @param $title Title
         * @param $user User
index 0eba219..c5cf855 100644 (file)
@@ -155,7 +155,6 @@ class ApiDelete extends ApiBase {
        }
 
        /**
-        * @static
         * @param $token
         * @param $title Title
         * @param $oldimage
index 60820a7..f6b98cd 100644 (file)
@@ -880,7 +880,6 @@ class ApiMain extends ApiBase {
        }
 
        /**
-        * @static
         * @param  $module ApiBase
         * @param  $paramName String What type of request is this? e.g. action, query, list, prop, meta, format
         * @return string
index 002820d..2ccee27 100644 (file)
@@ -486,7 +486,6 @@ class ApiQueryImageInfo extends ApiQueryBase {
         *
         * @param array $filter List of properties to filter out
         *
-        * @static
         * @return Array
         */
        public static function getPropertyNames( $filter = array() ) {
@@ -496,7 +495,6 @@ class ApiQueryImageInfo extends ApiQueryBase {
        /**
         * Returns array key value pairs of properties and their descriptions
         *
-        * @static
         * @return array
         */
        private static function getProperties() {
@@ -524,7 +522,6 @@ class ApiQueryImageInfo extends ApiQueryBase {
         * 
         * @param array $filter List of properties to filter out
         *
-        * @static
         * @return array
         */
        public static function getPropertyDescriptions( $filter = array() ) {
index 0863b76..2e51c3f 100644 (file)
@@ -197,7 +197,6 @@ class ApiQueryLogEvents extends ApiQueryBase {
        }
 
        /**
-        * @static
         * @param $result ApiResult
         * @param $vals
         * @param $params
index 324b12f..67c50f1 100644 (file)
@@ -73,7 +73,6 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
        }
 
        /**
-        * @static
         * @param  $pageid
         * @param  $title
         * @param $rc RecentChange
index c17ea06..ef1b1e0 100644 (file)
@@ -74,7 +74,6 @@ class ApiQueryRevisions extends ApiQueryBase {
        }
 
        /**
-        * @static
         * @param $pageid
         * @param $title Title
         * @param $rev Revision
index ff4d907..6e8ddf4 100644 (file)
@@ -67,7 +67,6 @@ class ApiQueryUsers extends ApiQueryBase {
        }
 
         /**
-         * @static
          * @param $user User
          * @return String
          */
index a14bcc0..521e8c0 100644 (file)
@@ -10,7 +10,6 @@ class PostgresField implements Field {
        private $name, $tablename, $type, $nullable, $max_length, $deferred, $deferrable, $conname;
 
        /**
-        * @static
         * @param $db DatabaseBase
         * @param  $table
         * @param  $field
index a56131a..69223e1 100644 (file)
@@ -29,7 +29,6 @@ class ForeignAPIFile extends File {
        }
 
        /**
-        * @static
         * @param  $title Title
         * @param  $repo ForeignApiRepo
         * @return ForeignAPIFile|null
index 662dfd9..26651e6 100644 (file)
@@ -86,7 +86,6 @@ class LocalRepo extends FSRepo {
        /**
         * Gets the SHA1 hash from a storage key
         *
-        * @static
         * @param string $key
         * @return string
         */
index 7e733cc..544d3de 100644 (file)
@@ -36,7 +36,6 @@ class OldLocalFile extends LocalFile {
        }
 
        /**
-        * @static
         * @param  $sha1
         * @param $repo LocalRepo
         * @param bool $timestamp
index cd94206..c0cfcc2 100644 (file)
@@ -88,7 +88,6 @@ abstract class DatabaseUpdater {
        }
 
        /**
-        * @static
         * @throws MWException
         * @param DatabaseBase $db
         * @param bool $shared
index 4893614..8de1327 100644 (file)
@@ -11,7 +11,6 @@
  */
 class CoreLinkFunctions {
        /**
-        * @static
         * @param $parser Parser_LinkHooks
         * @return bool
         */
@@ -21,7 +20,6 @@ class CoreLinkFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param $holders LinkHolderArray
         * @param $markers LinkMarkerReplacer
@@ -45,7 +43,6 @@ class CoreLinkFunctions {
        }
 
        /**
-        * @static
         * @param  $parser Parser
         * @param  $holders LinkHolderArray
         * @param  $markers LinkMarkerReplacer
index 466c487..ab970e4 100644 (file)
@@ -11,7 +11,6 @@
  */
 class CoreParserFunctions {
        /**
-        * @static
         * @param $parser Parser
         * @return void
         */
@@ -89,7 +88,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param string $part1
         * @return array
@@ -106,7 +104,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param  $date
         * @param null $defaultPref
@@ -190,7 +187,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param string $s
         * @return
@@ -205,7 +201,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param string $s
         * @return
@@ -249,7 +244,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param string $num
         * @param null $raw
@@ -264,7 +258,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param string $case
         * @param string $word
@@ -275,7 +268,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param $user User
         * @return
@@ -306,7 +298,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param string $text
         * @return
@@ -643,7 +634,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param  $text
         * @return string
@@ -663,7 +653,6 @@ class CoreParserFunctions {
        }
 
        /**
-        * @static
         * @param $parser Parser
         * @param  $text
         * @return string
index 1d5208d..1eb24f4 100644 (file)
@@ -11,7 +11,6 @@
  */
 class CoreTagHooks {
        /**
-        * @static
         * @param $parser Parser
         * @return void
         */
@@ -50,7 +49,6 @@ class CoreTagHooks {
        }
 
        /**
-        * @static
         * @param  $content
         * @param  $attributes
         * @param $parser Parser
index c3f6a39..8bcb416 100644 (file)
@@ -495,8 +495,6 @@ class Parser {
 
        /**
         * Get a random string
-        *
-        * @static
         */
        static public function getRandomString() {
                return dechex( mt_rand( 0, 0x7fffffff ) ) . dechex( mt_rand( 0, 0x7fffffff ) );
index 2450bb8..623c08f 100644 (file)
@@ -131,7 +131,6 @@ class RevisionDeleter {
         * If it doesn't, returns the corresponding ar_timestamp field
         * so that this key can be used instead.
         *
-        * @static
         * @param $title Title
         * @param  $revid
         * @return bool|mixed
@@ -156,7 +155,6 @@ class RevisionDeleter {
        /**
         * Creates utility links for log entries.
         *
-        * @static
         * @param $title Title
         * @param $paramArray Array
         * @param $skin Skin