Constructs a PHP_CodeSniffer object.
public __construct ( integer $verbosity, integer $tabWidth, string $encoding = 'iso-8859-1', boolean $interactive = false ) | ||
$verbosity | integer | The verbosity level. 1: Print progress information. 2: Print tokenizer debug information. 3: Print sniff debug information. |
$tabWidth | integer | The number of spaces each tab represents. If greater than zero, tabs will be replaced by spaces before testing each file. |
$encoding | string | The charset of the sniffed files. This is important for some reports that output with utf-8 encoding as you don't want it double encoding messages. |
$interactive | boolean | If TRUE, will stop after each file with errors and wait for user input. |