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

Breadcrumb

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

class ScopeIndentSniff

Same name in this branch
  1. 11.1.x vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/ScopeIndentSniff.php \Drupal\Sniffs\WhiteSpace\ScopeIndentSniff
  2. 11.1.x vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff

Hierarchy

  • class \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff implements \PHP_CodeSniffer\Sniffs\Sniff
    • class \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeIndentSniff extends \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff

Expanded class hierarchy of ScopeIndentSniff

File

vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php, line 14

Namespace

PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace
View source
class ScopeIndentSniff extends GenericScopeIndentSniff {
    
    /**
     * Any scope openers that should not cause an indent.
     *
     * @var int[]
     */
    protected $nonIndentingScopes = [
        T_SWITCH,
    ];

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ScopeIndentSniff::$debug private property Show debug output for this sniff.
ScopeIndentSniff::$exact public property Does the indent need to be exactly right?
ScopeIndentSniff::$ignoreIndentation private property List of tokens not needing to be checked for indentation.
ScopeIndentSniff::$ignoreIndentationTokens public property List of tokens not needing to be checked for indentation.
ScopeIndentSniff::$indent public property The number of spaces code should be indented.
ScopeIndentSniff::$nonIndentingScopes protected property Any scope openers that should not cause an indent. Overrides ScopeIndentSniff::$nonIndentingScopes
ScopeIndentSniff::$supportedTokenizers public property A list of tokenizers this sniff supports.
ScopeIndentSniff::$tabIndent public property Should tabs be used for indenting?
ScopeIndentSniff::$tabWidth private property The --tab-width CLI value that is being used.
ScopeIndentSniff::adjustIndent protected function Processes this test, when one of its tokens is encountered.
ScopeIndentSniff::process public function Processes this test, when one of its tokens is encountered. Overrides Sniff::process
ScopeIndentSniff::register public function Returns an array of tokens this test wants to listen for. Overrides Sniff::register
RSS feed
Powered by Drupal