Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Text.php

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

Text

Namespace

PHP_CodeSniffer\Generators

Code

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);
            }
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal