From 3f704bbe0b7cab8ba330859807a79d5b9b2ad2af Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 10 Jan 2012 18:42:59 +0000 Subject: [PATCH] Fix whitespace Fix/improve documentation --- includes/SiteStats.php | 2 +- includes/parser/StripState.php | 7 +++++++ languages/classes/LanguageBs.php | 5 +++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/includes/SiteStats.php b/includes/SiteStats.php index e9137fe235..4dc62dac55 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -409,7 +409,7 @@ class SiteStatsInit { * Do all updates and commit them. More or less a replacement * for the original initStats, but without output. * - * @param $database Boolean or DatabaseBase: + * @param $database DatabaseBase|bool * - Boolean: whether to use the master DB * - DatabaseBase: database connection to use * @param $options Array of options, may contain the following values diff --git a/includes/parser/StripState.php b/includes/parser/StripState.php index 357dc2c8bf..aac2257a16 100644 --- a/includes/parser/StripState.php +++ b/includes/parser/StripState.php @@ -11,6 +11,9 @@ class StripState { protected $tempType, $tempMergePrefix; + /** + * @param $prefix string + */ function __construct( $prefix ) { $this->prefix = $prefix; $this->data = array( @@ -170,6 +173,10 @@ class StripState { return $texts; } + /** + * @param $m + * @return string + */ protected function mergeCallback( $m ) { $key = $m[1]; return "{$this->prefix}{$this->tempMergePrefix}-$key" . Parser::MARKER_SUFFIX; diff --git a/languages/classes/LanguageBs.php b/languages/classes/LanguageBs.php index c501b35a1c..7c13037e57 100644 --- a/languages/classes/LanguageBs.php +++ b/languages/classes/LanguageBs.php @@ -30,9 +30,10 @@ class LanguageBs extends Language { } } - # Convert from the nominative form of a noun to some other case - # Invoked with {{GRAMMAR:case|word}} /** + * Convert from the nominative form of a noun to some other case + * Invoked with {{GRAMMAR:case|word}} + * * Cases: genitiv, dativ, akuzativ, vokativ, instrumental, lokativ * * @param $word string -- 2.20.1