Documentation

IndentationTokenLinter
in package
implements TokenLinter

Table of Contents

Interfaces

TokenLinter

Properties

$lintConfiguration  : LintConfiguration

Methods

__construct()  : mixed
lint()  : Generator<string|int, TokenError>
Lints a token and returns a list of issues found.
supports()  : bool
Checks if the linter supports the given token.
checkIndentationCharacter()  : Generator<string|int, TokenError>
Check if the indentation character is allowed
generateError()  : Generator<string|int, TokenError>

Properties

Methods

lint()

Lints a token and returns a list of issues found.

public lint(Token $token) : Generator<string|int, TokenError>
Parameters
$token : Token

The token to lint.

Return values
Generator<string|int, TokenError>

A list of issues found during linting.

supports()

Checks if the linter supports the given token.

public supports(Token $token) : bool
Parameters
$token : Token

The token to check.

Return values
bool

True if the linter supports the token, false otherwise.


        
On this page

Search results