PHP Class pchCheck, php-commit-hooks

Show file Open project: kore/php-commit-hooks

Public Methods

Method Description
validate ( pchRepository $repository ) : void Validate the current check

Protected Methods

Method 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 method

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
return array

getFileContents() protected method

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

validate() abstract public method

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