PHP Class HippoPHP\Hippo\Checks\Whitespace\IndentationCheck

Inheritance: extends HippoPHP\Hippo\Checks\AbstractCheck, implements HippoPHP\Hippo\Checks\CheckInterface
Show file Open project: hippophp/hippo

Protected Properties

Property Type Description
$indentCount integer Number of indentation characters per-level.
$indentStyle string Either 'tab' or 'space'.

Public Methods

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

Protected Methods

Method Description
checkFileInternal ( CheckContext $checkContext, Config $config ) checkFileInternal(): defined by AbstractCheck.

Private Methods

Method Description
escape ( $string )
getBaseIndentation ( )
getLines ( $tokenList )

Method Details

checkFileInternal() protected method

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 method

public getConfigRoot ( ) : string
return string

setIndentCount() public method

Sets the indentation count.
public setIndentCount ( integer $count ) : IndentationCheck
$count integer
return IndentationCheck

setIndentStyle() public method

Sets the indentation style.
public setIndentStyle ( string $style ) : IndentationCheck
$style string
return IndentationCheck

Property Details

$indentCount protected property

Number of indentation characters per-level.
protected int $indentCount
return integer

$indentStyle protected property

Either 'tab' or 'space'.
protected string $indentStyle
return string