PHP Класс pchLintCheck, php-commit-hooks

Implements linter checks for all added or modified files.
Наследование: extends pchCheck
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$linters array Configured linters to check source files for validity

Открытые методы

Метод Описание
__construct ( array $linters = null ) : void Construct from linter configuration
lint ( pchRepository $repository, string $file ) : array Lint single file
validate ( pchRepository $repository ) : void Validate the current check

Описание методов

__construct() публичный Метод

Construct from linter configuration
public __construct ( array $linters = null ) : void
$linters array
Результат void

lint() публичный Метод

If issues with the passed file are found the function will return an array with the found issues, and an empty array otherwise.
public lint ( pchRepository $repository, string $file ) : array
$repository pchRepository
$file string
Результат array

validate() публичный Метод

Validate the check on the specified repository. Returns an array of found issues.
public validate ( pchRepository $repository ) : void
$repository pchRepository
Результат void

Описание свойств

$linters защищенное свойство

Configured linters to check source files for validity
protected array $linters
Результат array