PHP Class pchCodeSnifferCheck, php-commit-hooks

Implements linter checks for all added or modified files.
Inheritance: extends pchCheck
Show file Open project: kore/php-commit-hooks Class Usage Examples

Protected Properties

Property Type Description
$standard array Configured standard to check files with

Public Methods

Method Description
__construct ( string $standard ) : void Construct from CodeSniffer standard name
validate ( pchRepository $repository ) : void Validate the current check

Method Details

__construct() public method

Construct from CodeSniffer standard name
public __construct ( string $standard ) : void
$standard string
return void

validate() public method

Validate the check on the specified repository. Returns an array of found issues.
public validate ( pchRepository $repository ) : void
$repository pchRepository
return void

Property Details

$standard protected property

Configured standard to check files with
protected array $standard
return array