Метод |
Описание |
|
getFileExtensions ( ) : array(string) |
Returns an array with valid php source file extensions. |
|
getIgnorePattern ( ) : array(string) |
Returns an array with string patterns that mark a file path as invalid. |
|
getInput ( ) : string |
Returns the input source file or directory path. |
|
getOptions ( ) : array |
Returns additional options for PHPMD or one of it's parser backends. |
|
hasViolations ( ) : boolean |
This method will return true when the processed source code
contains violations. |
|
processFiles ( string $inputPath, string $ruleSets, array $renderers, RuleSetFactory $ruleSetFactory ) : void |
This method will process all files that can be found in the given input
path. It will apply rules defined in the comma-separated $ruleSets
argument. The result will be passed to all given renderer instances. |
|
setFileExtensions ( array $fileExtensions ) : void |
Sets a list of filename extensions for valid php source code files. |
|
setIgnorePattern ( array $ignorePatterns ) : void |
Sets a list of ignore patterns that is used to exclude directories from
the source analysis. |
|
setOptions ( array $options ) : void |
Sets additional options for PHPMD or one of it's parser backends. |
|