function CSS::__construct
Initialise the tokenizer.
Pre-checks the content to see if it looks minified.
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.:
Return value
void
Throws
\PHP_CodeSniffer\Exceptions\TokenizerException If the file appears to be minified.
Overrides Tokenizer::__construct
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Tokenizers/ CSS.php, line 32
Class
Namespace
PHP_CodeSniffer\TokenizersCode
public function __construct($content, Config $config, $eolChar = '\\n') {
if ($this->isMinifiedContent($content, $eolChar) === true) {
throw new TokenizerException('File appears to be minified and cannot be processed');
}
parent::__construct($content, $config, $eolChar);
}