PHP Class HippoPHP\Hippo\Checks\Line\MaxLineLengthCheck

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

Protected Properties

Property Type Description
$limits int[] Limits for emitting violations.
$tabExpand integer Defines how many spaces a tab takes up.

Public Methods

Method Description
getConfigRoot ( ) : string
setLimit ( $violationSeverity, integer $length ) : MaxLength Sets the error line length limit.
setTabExpand ( integer $size ) : MaxLength Sets how many spaces make up a tab.

Protected Methods

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

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

setLimit() public method

Sets the error line length limit.
public setLimit ( $violationSeverity, integer $length ) : MaxLength
$length integer
return MaxLength

setTabExpand() public method

Sets how many spaces make up a tab.
public setTabExpand ( integer $size ) : MaxLength
$size integer
return MaxLength

Property Details

$limits protected property

Limits for emitting violations.
protected int[] $limits
return int[]

$tabExpand protected property

Defines how many spaces a tab takes up.
protected int $tabExpand
return integer