Esempio n. 1
0
File: JS.php Progetto: thekabal/tki
 /**
  * Initialise the tokenizer.
  *
  * Pre-checks the content to see if it looks minified.
  *
  * @param string                  $content The content to tokenize,
  * @param \PHP_CodeSniffer\Config $config  The config data for the run.
  * @param string                  $eolChar The EOL char used in the content.
  *
  * @return void
  * @throws TokenizerException If the file appears to be minified.
  */
 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');
     }
     return parent::__construct($content, $config, $eolChar);
 }