PHP Class HippoPHP\Hippo\Checks\Whitespace\IndentationCheck

Inheritance: extends HippoPHP\Hippo\Checks\AbstractCheck, implements HippoPHP\Hippo\Checks\CheckInterface
Afficher le fichier Open project: hippophp/hippo

Protected Properties

Свойство Type Description
$indentCount integer Number of indentation characters per-level.
$indentStyle string Either 'tab' or 'space'.

Méthodes publiques

Méthode Description
getConfigRoot ( ) : string
setIndentCount ( integer $count ) : IndentationCheck Sets the indentation count.
setIndentStyle ( string $style ) : IndentationCheck Sets the indentation style.

Méthodes protégées

Méthode Description
checkFileInternal ( CheckContext $checkContext, Config $config ) checkFileInternal(): defined by AbstractCheck.

Private Methods

Méthode Description
escape ( $string )
getBaseIndentation ( )
getLines ( $tokenList )

Method Details

checkFileInternal() protected méthode

checkFileInternal(): defined by AbstractCheck.
See also: AbstractCheck::checkFileInternal()
protected checkFileInternal ( CheckContext $checkContext, Config $config )
$checkContext HippoPHP\Hippo\CheckContext
$config HippoPHP\Hippo\Config\Config

getConfigRoot() public méthode

public getConfigRoot ( ) : string
Résultat string

setIndentCount() public méthode

Sets the indentation count.
public setIndentCount ( integer $count ) : IndentationCheck
$count integer
Résultat IndentationCheck

setIndentStyle() public méthode

Sets the indentation style.
public setIndentStyle ( string $style ) : IndentationCheck
$style string
Résultat IndentationCheck

Property Details

$indentCount protected_oe property

Number of indentation characters per-level.
protected int $indentCount
Résultat integer

$indentStyle protected_oe property

Either 'tab' or 'space'.
protected string $indentStyle
Résultat string