Documentation

DisallowTabIndentSniff
in package
implements Sniff

Table of Contents

Interfaces

Sniff

Constants

TOKENS_CONTAINING_INDENT  = [T_WHITESPACE => true, T_INLINE_HTML => true, T_DOC_COMMENT_WHITESPACE => true, T_DOC_COMMENT_STRING => true, T_COMMENT => true, T_END_HEREDOC => true, T_END_NOWDOC => true, T_YIELD_FROM => true]
Tokens which can include indentation.

Properties

$tabWidth  : int
The --tab-width CLI value that is being used.

Methods

process()  : int
Processes this test, when one of its tokens is encountered.
register()  : array<string|int, int|string>
Returns an array of tokens this test wants to listen for.

Constants

TOKENS_CONTAINING_INDENT

Tokens which can include indentation.

private array<int|string, true> TOKENS_CONTAINING_INDENT = [T_WHITESPACE => true, T_INLINE_HTML => true, T_DOC_COMMENT_WHITESPACE => true, T_DOC_COMMENT_STRING => true, T_COMMENT => true, T_END_HEREDOC => true, T_END_NOWDOC => true, T_YIELD_FROM => true]

Properties

Methods

process()

Processes this test, when one of its tokens is encountered.

public process(File $phpcsFile, int $stackPtr) : int
Parameters
$phpcsFile : File

All the tokens found in the document.

$stackPtr : int

The position of the current token in the stack passed in $tokens.

Return values
int

register()

Returns an array of tokens this test wants to listen for.

public register() : array<string|int, int|string>
Return values
array<string|int, int|string>

        
On this page

Search results