PHP Class Overtrue\PHPLint\Linter

Afficher le fichier Open project: overtrue/phplint Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string | array $path, array $excludes = [], array $extensions = ['php'] ) Constructor.
getFiles ( ) : array Fetch files.
lint ( array $files = [], boolean $cache = true ) : array Check the files.
setCache ( array $cache = [] ) Cache setter.
setFiles ( array $files ) : Linter Set Files.
setProcessCallback ( callable $processCallback ) : Linter Set process callback.
setProcessLimit ( integer $procLimit ) Set process limit.

Méthodes protégées

Méthode Description
getFilesFromDir ( string $dir ) : array Get files from directory.

Method Details

__construct() public méthode

Constructor.
public __construct ( string | array $path, array $excludes = [], array $extensions = ['php'] )
$path string | array
$excludes array
$extensions array

getFiles() public méthode

Fetch files.
public getFiles ( ) : array
Résultat array

getFilesFromDir() protected méthode

Get files from directory.
protected getFilesFromDir ( string $dir ) : array
$dir string
Résultat array

lint() public méthode

Check the files.
public lint ( array $files = [], boolean $cache = true ) : array
$files array
$cache boolean
Résultat array

setCache() public méthode

Cache setter.
public setCache ( array $cache = [] )
$cache array

setFiles() public méthode

Set Files.
public setFiles ( array $files ) : Linter
$files array
Résultat Linter

setProcessCallback() public méthode

Set process callback.
public setProcessCallback ( callable $processCallback ) : Linter
$processCallback callable
Résultat Linter

setProcessLimit() public méthode

Set process limit.
public setProcessLimit ( integer $procLimit )
$procLimit integer