PHP Class pchCodeSnifferCheck, php-commit-hooks

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

Protected Properties

Свойство Type Description
$standard array Configured standard to check files with

Méthodes publiques

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

Method Details

__construct() public méthode

Construct from CodeSniffer standard name
public __construct ( string $standard ) : void
$standard string
Résultat void

validate() public méthode

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

Property Details

$standard protected_oe property

Configured standard to check files with
protected array $standard
Résultat array