void __construct(
string
$content, Config
$config, [string
$eolChar = '\n'])
Initialise the tokenizer.
Pre-checks the content to see if it looks minified.
- Throws: TokenizerException If the file appears to be minified.
- Access: public
Overrides
Tokenizer::__construct() (Initialise and run the tokenizer.)
Parameters:
string
$content
—
The content to tokenize,
\PHP_CodeSniffer\Config
$config
—
The config data for the run.
string
$eolChar
—
The EOL char used in the content.
array tokenize(
string
$string)
Creates an array of tokens when given some CSS code.
Uses the PHP tokenizer to do all the tricky work
Overrides
PHP::tokenize() (Creates an array of tokens when given some PHP code.)
Parameters:
string
$string
—
The string to tokenize.