PHP 클래스 pchCheck, php-commit-hooks

파일 보기 프로젝트 열기: kore/php-commit-hooks

공개 메소드들

메소드 설명
validate ( pchRepository $repository ) : void Validate the current check

보호된 메소드들

메소드 설명
getChangedFiles ( pchRepository $repository ) : array Returns an array of chanegd files
getFileContents ( pchRepository $repository, string $file ) : resource Get file contents as stream

메소드 상세

getChangedFiles() 보호된 메소드

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
리턴 array

getFileContents() 보호된 메소드

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

validate() 추상적인 공개 메소드

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