A couple more for r108785
authorSam Reed <reedy@users.mediawiki.org>
Fri, 13 Jan 2012 02:30:51 +0000 (02:30 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 13 Jan 2012 02:30:51 +0000 (02:30 +0000)
More doucmentations

includes/HTMLForm.php
includes/Preferences.php
includes/filerepo/file/FSFile.php

index 099b51e..7751def 100644 (file)
@@ -1115,7 +1115,7 @@ abstract class HTMLFormField {
        /**
         * flatten an array of options to a single array, for instance,
         * a set of <options> inside <optgroups>.
-        * @param $options Associative Array with values either Strings
+        * @param $options array Associative Array with values either Strings
         *       or Arrays
         * @return Array flattened input
         */
index 410567d..14168a3 100644 (file)
@@ -509,10 +509,10 @@ class Preferences {
 
        /**
         * @param $user User
-        * @param $context IContextSource
+        * @param $context ContextSource
         * @param $defaultPreferences Array
         */
-       static function filesPreferences( $user, IContextSource $context, &$defaultPreferences ) {
+       static function filesPreferences( $user, ContextSource $context, &$defaultPreferences ) {
                ## Files #####################################
                $defaultPreferences['imagesize'] = array(
                        'type' => 'select',
@@ -530,11 +530,11 @@ class Preferences {
 
        /**
         * @param $user User
-        * @param $context IContextSource
+        * @param $context ContextSource
         * @param $defaultPreferences
         * @return void
         */
-       static function datetimePreferences( $user, IContextSource $context, &$defaultPreferences ) {
+       static function datetimePreferences( $user, ContextSource $context, &$defaultPreferences ) {
                ## Date and time #####################################
                $dateOptions = self::getDateOptions( $context );
                if ( $dateOptions ) {
index 40f69c5..38dfbac 100644 (file)
@@ -196,7 +196,7 @@ class FSFile {
         * Get the final file extension from a file system path
         * 
         * @param $path string
-        * @returns string
+        * @return string
         */
        public static function extensionFromPath( $path ) {
                $i = strrpos( $path, '.' );