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

Breadcrumb

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

function AbstractPatternSniff::__construct

Constructs a AbstractPatternSniff.

Parameters

boolean $ignoreComments If true, comments will be ignored.:

File

vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractPatternSniff.php, line 63

Class

AbstractPatternSniff

Namespace

PHP_CodeSniffer\Sniffs

Code

public function __construct($ignoreComments = null) {
    // This is here for backwards compatibility.
    if ($ignoreComments !== null) {
        $this->ignoreComments = $ignoreComments;
    }
    $this->supplementaryTokens = $this->registerSupplementary();
}

API Navigation

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