diff options
author | Titouan Galopin <[email protected]> | 2018-11-25 15:13:54 +0100 |
---|---|---|
committer | Titouan Galopin <[email protected]> | 2018-11-25 15:14:46 +0100 |
commit | 91e7977d14f1ea2e78b5d46f85851c30bf3c6695 (patch) | |
tree | 5089aec726a28a1247e21f7febd96e746cf4c6f1 /src/HTML5/Parser/Tokenizer.php | |
parent | d829a30e092ea5d868b93a258724b12f9aa313fd (diff) |
Normalize PHPDoc comments
Diffstat (limited to 'src/HTML5/Parser/Tokenizer.php')
-rw-r--r-- | src/HTML5/Parser/Tokenizer.php | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php index cfd0e43..6284733 100644 --- a/src/HTML5/Parser/Tokenizer.php +++ b/src/HTML5/Parser/Tokenizer.php @@ -56,8 +56,8 @@ class Tokenizer * it a scanner (input) and an event handler (output), and then calling * the Tokenizer::parse() method.` * - * @param Scanner $scanner A scanner initialized with an input stream - * @param EventHandler $eventHandler An event handler, initialized and ready to receive events + * @param Scanner $scanner A scanner initialized with an input stream. + * @param EventHandler $eventHandler An event handler, initialized and ready to receive events. * @param string $mode */ public function __construct($scanner, $eventHandler, $mode = self::CONFORMANT_HTML) @@ -100,7 +100,7 @@ class Tokenizer * Normally, setting is done by the event handler via a special return code on * startTag(), but it can also be set manually using this function. * - * @param int $textmode One of Elements::TEXT_* + * @param int $textmode One of Elements::TEXT_*. * @param string $untilTag The tag that should stop RAW or RCDATA mode. Normal mode does not * use this indicator. */ @@ -204,7 +204,7 @@ class Tokenizer /** * This buffers the current token as character data. * - * @param string $tok the current token + * @param string $tok The current token. * * @return bool */ @@ -229,7 +229,7 @@ class Tokenizer /** * Read text in RAW mode. * - * @param string $tok the current token + * @param string $tok The current token. * * @return bool */ @@ -250,7 +250,7 @@ class Tokenizer /** * Read text in RCDATA mode. * - * @param string $tok the current token + * @param string $tok The current token. * * @return bool */ @@ -334,8 +334,7 @@ class Tokenizer } /** - * Consume an end tag. - * 8.2.4.9. + * Consume an end tag. See section 8.2.4.9. */ protected function endTag() { @@ -376,8 +375,7 @@ class Tokenizer } /** - * Consume a tag name and body. - * 8.2.4.10. + * Consume a tag name and body. See section 8.2.4.10. */ protected function tagName() { @@ -519,8 +517,7 @@ class Tokenizer } /** - * Consume an attribute value. - * 8.2.4.37 and after. + * Consume an attribute value. See section 8.2.4.37 and after. * * @return string|null */ @@ -568,7 +565,7 @@ class Tokenizer * termination of an attribute's value. E.g. "\"'" will stop at either * ' or ". * - * @return string the attribute value + * @return string The attribute value. */ protected function quotedAttributeValue($quote) { @@ -626,8 +623,7 @@ class Tokenizer * <!--</+foo>--> * * @param string $leading Prepend any leading characters. This essentially - * negates the need to backtrack, but it's sort of - * a hack. + * negates the need to backtrack, but it's sort of a hack. * * @return bool */ @@ -652,7 +648,6 @@ class Tokenizer /** * Read a comment. - * * Expects the first tok to be inside of the comment. * * @return bool @@ -848,7 +843,7 @@ class Tokenizer * @param string $stopchars Characters (in addition to a close-quote) that should stop the string. * E.g. sometimes '>' is higher precedence than '"' or "'". * - * @return mixed String if one is found (quotations omitted) + * @return mixed String if one is found (quotations omitted). */ protected function quotedString($stopchars) { |