PHP Class GrumPHP\Linter\Json\JsonLinter

Inheritance: implements GrumPHP\Linter\LinterInterface
Mostra file Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
__construct ( Filesystem $filesystem, Seld\JsonLint\JsonParser $jsonParser ) JsonLinter constructor.
isInstalled ( ) : boolean
lint ( SplFileInfo $file ) : mixed
setDetectKeyConflicts ( boolean $detectKeyConflicts )

Private Methods

Method Description
calculateFlags ( ) : integer

Method Details

__construct() public method

JsonLinter constructor.
public __construct ( Filesystem $filesystem, Seld\JsonLint\JsonParser $jsonParser )
$filesystem GrumPHP\Util\Filesystem
$jsonParser Seld\JsonLint\JsonParser

isInstalled() public method

public isInstalled ( ) : boolean
return boolean

lint() public method

public lint ( SplFileInfo $file ) : mixed
$file SplFileInfo
return mixed

setDetectKeyConflicts() public method

public setDetectKeyConflicts ( boolean $detectKeyConflicts )
$detectKeyConflicts boolean