From 664884900d18bb608aaa5748edeb4ac1a9a6a957 Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Fri, 2 Nov 2012 13:09:42 +0100 Subject: [PATCH] minor style improvements Change-Id: Iae617e8967e98b4aad596fa2de784b3b6c36a11d --- includes/content/Content.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/includes/content/Content.php b/includes/content/Content.php index 66d720955d..3c776941bc 100644 --- a/includes/content/Content.php +++ b/includes/content/Content.php @@ -241,7 +241,6 @@ interface Content { */ public function isCountable( $hasLinks = null ); - /** * Parse the Content object and generate a ParserOutput from the result. * $result->getText() can be used to obtain the generated HTML. If no HTML @@ -262,7 +261,7 @@ interface Content { public function getParserOutput( Title $title, $revId = null, ParserOptions $options = null, $generateHtml = true ); - # TODO: make RenderOutput and RenderOptions base classes + // TODO: make RenderOutput and RenderOptions base classes /** * Returns a list of DataUpdate objects for recording information about this @@ -381,7 +380,7 @@ interface Content { * * @since 1.21 * - * @param $section Empty/null/false or a section number (0, 1, 2, T1, T2...), or "new" + * @param $section null/false or a section number (0, 1, 2, T1, T2...), or "new" * @param $with Content: new content of the section * @param $sectionTitle String: new section's subject, only if $section is 'new' * @return string Complete article text, or null if error @@ -396,10 +395,10 @@ interface Content { * * @param $title Title * @param $user User - * @param $popts null|ParserOptions + * @param $parserOptions null|ParserOptions * @return Content */ - public function preSaveTransform( Title $title, User $user, ParserOptions $popts ); + public function preSaveTransform( Title $title, User $user, ParserOptions $parserOptions ); /** * Returns a new WikitextContent object with the given section heading @@ -420,10 +419,10 @@ interface Content { * @since 1.21 * * @param $title Title - * @param $popts null|ParserOptions + * @param $parserOptions null|ParserOptions * @return Content */ - public function preloadTransform( Title $title, ParserOptions $popts ); + public function preloadTransform( Title $title, ParserOptions $parserOptions ); /** * Prepare Content for saving. Called before Content is saved by WikiPage::doEditContent() and in @@ -482,9 +481,9 @@ interface Content { */ public function matchMagicWord( MagicWord $word ); - # TODO: ImagePage and CategoryPage interfere with per-content action handlers - # TODO: nice&sane integration of GeSHi syntax highlighting - # [11:59] Hooks are ugly; make CodeHighlighter interface and a - # config to set the class which handles syntax highlighting - # [12:00] And default it to a DummyHighlighter + // TODO: ImagePage and CategoryPage interfere with per-content action handlers + // TODO: nice&sane integration of GeSHi syntax highlighting + // [11:59] Hooks are ugly; make CodeHighlighter interface and a + // config to set the class which handles syntax highlighting + // [12:00] And default it to a DummyHighlighter } -- 2.20.1