From be0d31ace0802af841c1989d43b4a81cf975e7f7 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 28 Sep 2015 19:48:33 +0200 Subject: [PATCH] Use variable documentation in Preprocessor_DOM.php Instead of having comments behind variable declaration. This also avoids mixed tabs and spaces at begin of line Change-Id: Iba62430f4413fd52bac1d51f5c5df4cb6479284d --- includes/parser/Preprocessor_DOM.php | 36 ++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/includes/parser/Preprocessor_DOM.php b/includes/parser/Preprocessor_DOM.php index 562062fcde..4e359a6249 100644 --- a/includes/parser/Preprocessor_DOM.php +++ b/includes/parser/Preprocessor_DOM.php @@ -848,12 +848,31 @@ class PPDStack { * @ingroup Parser */ class PPDStackElement { - public $open, // Opening character (\n for heading) - $close, // Matching closing character - $count, // Number of opening characters found (number of "=" for heading) - $parts, // Array of PPDPart objects describing pipe-separated parts. - $lineStart; // True if the open char appeared at the start of the input line. - // Not set for headings. + /** + * @var string Opening character (\n for heading) + */ + public $open; + + /** + * @var string Matching closing character + */ + public $close; + + /** + * @var int Number of opening characters found (number of "=" for heading) + */ + public $count; + + /** + * @var PPDPart[] Array of PPDPart objects describing pipe-separated parts. + */ + public $parts; + + /** + * @var bool True if the open char appeared at the start of the input line. + * Not set for headings. + */ + public $lineStart; public $partClass = 'PPDPart'; @@ -924,7 +943,10 @@ class PPDStackElement { * @ingroup Parser */ class PPDPart { - public $out; // Output accumulator string + /** + * @var string Output accumulator string + */ + public $out; // Optional member variables: // eqpos Position of equals sign in output accumulator -- 2.20.1