PHP Class HippoPHP\Hippo\Checks\Naming\QuoteStyleCheck

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

Protected Properties

Property Type Description
$style string Quote style to use.

Public Methods

Method Description
getConfigRoot ( ) : string
setQuoteStyle ( $style )

Protected Methods

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

Private Methods

Method Description
getQuoteFromToken ( $token )
isBadStyle ( $token )

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

setQuoteStyle() public method

public setQuoteStyle ( $style )

Property Details

$style protected property

Quote style to use.
protected string $style
return string