Processes the file and runs the PHP_CodeSniffer sniffs to verify that it
conforms with the standard. Returns the processed file object, or NULL
if no file was processed due to error.
public processFile ( string $file, string $contents = null ) : PHP_CodeSniffer_File | ||
$file | string | The file to process. |
$contents | string | The contents to parse. If NULL, the content is taken from the file system. |
return | PHP_CodeSniffer_File |