PHP Class pchCheck, php-commit-hooks

Afficher le fichier Open project: kore/php-commit-hooks

Méthodes publiques

Méthode Description
validate ( pchRepository $repository ) : void Validate the current check

Méthodes protégées

Méthode Description
getChangedFiles ( pchRepository $repository ) : array Returns an array of chanegd files
getFileContents ( pchRepository $repository, string $file ) : resource Get file contents as stream

Method Details

getChangedFiles() protected méthode

Returns an array with the names of all files wich have been changed in the specified transaction / revision.
protected getChangedFiles ( pchRepository $repository ) : array
$repository pchRepository
Résultat array

getFileContents() protected méthode

Return the contents of the specified file as a PHP stream
protected getFileContents ( pchRepository $repository, string $file ) : resource
$repository pchRepository
$file string
Résultat resource

validate() abstract public méthode

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