From 627ccbcd7b23a26e3ee218c2033c2385e13793a0 Mon Sep 17 00:00:00 2001 From: MZMcBride Date: Sat, 8 Nov 2014 14:07:19 -0500 Subject: [PATCH] Minor code comment tweaks for spelling and consistency Change-Id: I51391f45d0f81e4245ccc0e435a71ccd5b0e3ca3 --- includes/cache/MessageCache.php | 2 +- includes/parser/Parser.php | 14 +++++++------- includes/skins/SkinTemplate.php | 2 +- maintenance/dev/includes/router.php | 2 +- tests/phpunit/MediaWikiTestCase.php | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index 99dafa60cc..6face4fb1c 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -72,7 +72,7 @@ class MessageCache { protected $mExpiry; /** - * Message cache has it's own parser which it uses to transform + * Message cache has its own parser which it uses to transform * messages. */ protected $mParserOptions, $mParser; diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index e6486ff79f..07a104bd0c 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -35,18 +35,18 @@ * * - Parser::parse() * produces HTML output - * - Parser::preSaveTransform(). - * produces altered wiki markup. + * - Parser::preSaveTransform() + * produces altered wiki markup * - Parser::preprocess() * removes HTML comments and expands templates * - Parser::cleanSig() and Parser::cleanSigInSig() - * Cleans a signature before saving it to preferences + * cleans a signature before saving it to preferences * - Parser::getSection() - * Return the content of a section from an article for section editing + * return the content of a section from an article for section editing * - Parser::replaceSection() - * Replaces a section by number inside an article + * replaces a section by number inside an article * - Parser::getPreloadText() - * Removes sections, and tags. + * removes sections and tags * * Globals used: * object: $wgContLang @@ -4829,7 +4829,7 @@ class Parser { /** * Transform wiki markup when saving a page by doing "\r\n" -> "\n" - * conversion, substitting signatures, {{subst:}} templates, etc. + * conversion, substituting signatures, {{subst:}} templates, etc. * * @param string $text The text to transform * @param Title $title The Title object for the current article diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 0d4e623db2..6c72703c79 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -488,7 +488,7 @@ class SkinTemplate extends Skin { wfDebug( __METHOD__ . ": Hook SkinTemplateOutputPageBeforeExec broke outputPage execution!\n" ); } - // Set the bodytext to another key so that skins can just output it on it's own + // Set the bodytext to another key so that skins can just output it on its own // and output printfooter and debughtml separately $tpl->set( 'bodycontent', $tpl->data['bodytext'] ); diff --git a/maintenance/dev/includes/router.php b/maintenance/dev/includes/router.php index 0a65e31e9e..97c8954a77 100644 --- a/maintenance/dev/includes/router.php +++ b/maintenance/dev/includes/router.php @@ -98,5 +98,5 @@ if ( $mime ) { return true; } -# Let the php server handle things on it's own otherwise +# Let the php server handle things on its own otherwise return false; diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 95d3c40f20..05275c8c1e 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -783,7 +783,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { /** * Utility method taking an array of elements and wrapping - * each element in it's own array. Useful for data providers + * each element in its own array. Useful for data providers * that only return a single argument. * * @since 1.20 -- 2.20.1