function Text::processSniff
Process the documentation for a single sniff.
Parameters
\DOMNode $doc The DOMNode object for the sniff.: It represents the "documentation" tag in the XML standard file.
Return value
void
Overrides Generator::processSniff
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Generators/ Text.php, line 29
Class
Namespace
PHP_CodeSniffer\GeneratorsCode
public function processSniff(DOMNode $doc) {
$this->printTitle($doc);
foreach ($doc->childNodes as $node) {
if ($node->nodeName === 'standard') {
$this->printTextBlock($node);
}
else {
if ($node->nodeName === 'code_comparison') {
$this->printCodeComparisonBlock($node);
}
}
}
}