arrray -> array
authorSam Reed <reedy@users.mediawiki.org>
Tue, 1 Nov 2011 23:48:09 +0000 (23:48 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 1 Nov 2011 23:48:09 +0000 (23:48 +0000)
Whitespace

Other documentation improvements

Comment out some unused code (which has a fixme left with it already)

includes/MWFunction.php
includes/MagicWord.php
includes/api/ApiQueryCategoryMembers.php
includes/db/Database.php
includes/mime.types
includes/specials/SpecialWantedpages.php
maintenance/Maintenance.php

index 53ce446..0113f91 100644 (file)
 
 class MWFunction {
 
+       /**
+        * @param $callback
+        * @return array
+        * @throws MWException
+        */
        protected static function cleanCallback( $callback ) {
                if( is_string( $callback ) ) {
                        if ( strpos( $callback, '::' ) !== false ) {
@@ -39,6 +44,10 @@ class MWFunction {
                return $callback;
        }
 
+       /**
+        * @param $callback
+        * @return mixed
+        */
        public static function call( $callback ) {
                $callback = self::cleanCallback( $callback );
 
@@ -47,11 +56,21 @@ class MWFunction {
                return call_user_func_array( 'call_user_func', $args );
        }
 
+       /**
+        * @param $callback
+        * @param $argsarams
+        * @return mixed
+        */
        public static function callArray( $callback, $argsarams ) {
                $callback = self::cleanCallback( $callback );
                return call_user_func_array( $callback, $argsarams );
        }
 
+       /**
+        * @param $class
+        * @param $args array
+        * @return object
+        */
        public static function newObj( $class, $args = array() ) {
                if( !count( $args ) ) {
                        return new $class;
index 136aac9..99aca4a 100644 (file)
@@ -748,7 +748,7 @@ class MagicWordArray {
         * Returns array(magic word ID, parameter value)
         * If there is no parameter value, that element will be false.
         *
-        * @param $m arrray
+        * @param $m array
         *
         * @return array
         */
index 98a4eac..0fe1489 100644 (file)
@@ -153,7 +153,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase {
                                $endsortkey = $params['endsortkeyprefix'] !== null ?
                                        Collation::singleton()->getSortkey( $params['endsortkeyprefix'] ) :
                                        $params['endsortkey'];
-                               
+
                                // The below produces ORDER BY cl_sortkey, cl_from, possibly with DESC added to each of them
                                $this->addWhereRange( 'cl_sortkey',
                                        $dir,
index 4d1830d..4967d77 100644 (file)
@@ -3192,6 +3192,8 @@ abstract class DatabaseBase implements DatabaseType {
        /**
         * Get schema variables. If none have been set via setSchemaVars(), then
         * use some defaults from the current object.
+        *
+        * @return array
         */
        protected function getSchemaVars() {
                if ( $this->mSchemaVars ) {
index 0e0b067..3bba192 100644 (file)
@@ -59,7 +59,7 @@ application/xhtml+xml xhtml xht
 application/xslt+xml xslt
 application/xml xml xsl xsd
 application/xml-dtd dtd
-application/zip zip jar xpi  sxc stc  sxd std   sxi sti   sxm stm   sxw stw
+application/zip zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw
 application/x-rar rar
 audio/basic au snd
 audio/midi mid midi kar
index a655d44..3a5d9d3 100644 (file)
@@ -39,10 +39,10 @@ class WantedPagesPage extends WantedQueryPage {
                        $parts = explode( '/', $par, 2 );
                        $this->limit = (int)$parts[0];
                        // @todo FIXME: nlinks is ignored
-                       $nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks';
+                       //$nlinks = isset( $parts[1] ) && $parts[1] === 'nlinks';
                        $this->offset = 0;
                } else {
-                       $nlinks = true;
+                       //$nlinks = true;
                }
                $this->setListoutput( $inc );
                $this->shownavigation = !$inc;
index 5e7f0d4..67d50cf 100644 (file)
@@ -456,6 +456,9 @@ abstract class Maintenance {
                        }
                }
 
+               /**
+                * @var $child Maintenance
+                */
                $child = new $maintClass();
                $child->loadParamsAndArgs( $this->mSelf, $this->mOptions, $this->mArgs );
                if ( !is_null( $this->mDb ) ) {