From 7ebf2e5165d3eab9fc9725c51119475659b0b834 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 19 Feb 2011 00:44:38 +0000 Subject: [PATCH] More function level documentation Fixup some indenting --- includes/Status.php | 2 +- includes/db/Database.php | 2 ++ includes/db/DatabasePostgres.php | 11 +++++++++-- includes/db/LBFactory_Single.php | 4 ++++ includes/db/LoadMonitor.php | 5 +++++ includes/installer/DatabaseInstaller.php | 2 +- includes/installer/Installer.php | 4 ++-- includes/installer/MysqlUpdater.php | 1 - languages/Language.php | 2 ++ 9 files changed, 26 insertions(+), 7 deletions(-) diff --git a/includes/Status.php b/includes/Status.php index efd357b583..f285cf75ff 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -237,7 +237,7 @@ class Status { /** * Merge another status object into this one * - * @param $other Other Status object + * @param $other Status Other Status object * @param $overwriteValue Boolean: whether to override the "value" member */ function merge( $other, $overwriteValue = false ) { diff --git a/includes/db/Database.php b/includes/db/Database.php index 11b9db771e..708b0e2b14 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -145,6 +145,8 @@ interface DatabaseType { * * @param $table string: table name * @param $field string: field name + * + * @return Field */ function fieldInfo( $table, $field ); diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 233e39dd91..01f41ee85e 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -9,8 +9,15 @@ class PostgresField implements Field { private $name, $tablename, $type, $nullable, $max_length, $deferred, $deferrable, $conname; - static function fromText($db, $table, $field) { - global $wgDBmwschema; + /** + * @static + * @param $db DatabaseBase + * @param $table + * @param $field + * @return null|PostgresField + */ + static function fromText( $db, $table, $field ) { + global $wgDBmwschema; $q = <<output( "......Deleted " . $this->db->affectedRows() . " records.\n" ); } - $this->output( wfTimestamp( TS_DB ) ); $this->output( "......Creating tables.\n" ); $this->db->query( "CREATE TABLE $page ( diff --git a/languages/Language.php b/languages/Language.php index 76d8fd9fc1..b8515f3669 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -199,6 +199,8 @@ class Language { /** * Get the LocalisationCache instance + * + * @return LocalisationCache */ public static function getLocalisationCache() { if ( is_null( self::$dataCache ) ) { -- 2.20.1