From: Umherirrender Date: Sat, 29 Jun 2019 22:28:30 +0000 (+0200) Subject: Add @var annotations to XmlTypeCheck class X-Git-Tag: 1.34.0-rc.0~1191^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=commitdiff_plain;h=e22e8e11acf25a3c9bb45b70eb1482d766e1ec52;p=lhc%2Fweb%2Fwiklou.git Add @var annotations to XmlTypeCheck class Also fix type of XmlTypeCheck::elementOpen argument Change-Id: Ia54464e98440992b435eac89f14b7e60fe812f62 --- diff --git a/includes/libs/mime/XmlTypeCheck.php b/includes/libs/mime/XmlTypeCheck.php index 0b523916cb..65cc54bdff 100644 --- a/includes/libs/mime/XmlTypeCheck.php +++ b/includes/libs/mime/XmlTypeCheck.php @@ -27,13 +27,13 @@ class XmlTypeCheck { /** - * Will be set to true or false to indicate whether the file is + * @var bool|null Will be set to true or false to indicate whether the file is * well-formed XML. Note that this doesn't check schema validity. */ public $wellFormed = null; /** - * Will be set to true if the optional element filter returned + * @var bool Will be set to true if the optional element filter returned * a match at some point. */ public $filterMatch = false; @@ -46,30 +46,30 @@ class XmlTypeCheck { public $filterMatchType = false; /** - * Name of the document's root element, including any namespace + * @var string Name of the document's root element, including any namespace * as an expanded URL. */ public $rootElement = ''; /** - * A stack of strings containing the data of each xml element as it's processed. Append - * data to the top string of the stack, then pop off the string and process it when the + * @var string[] A stack of strings containing the data of each xml element as it's processed. + * Append data to the top string of the stack, then pop off the string and process it when the * element is closed. */ protected $elementData = []; /** - * A stack of element names and attributes, as we process them. + * @var array A stack of element names and attributes, as we process them. */ protected $elementDataContext = []; /** - * Current depth of the data stack. + * @var int Current depth of the data stack. */ protected $stackDepth = 0; /** - * Additional parsing options + * @var array Additional parsing options */ private $parserOptions = [ 'processing_instruction_handler' => null, @@ -308,7 +308,7 @@ class XmlTypeCheck { /** * @param string $name - * @param string $attribs + * @param array $attribs */ private function elementOpen( $name, $attribs ) { $this->elementDataContext[] = [ $name, $attribs ];