Code Duplication    Length = 9-9 lines in 2 locations

src/Tokenizers/CSS.php 1 location

@@ 32-40 (lines=9) @@
29
     * @return void
30
     * @throws TokenizerException If the file appears to be minified.
31
     */
32
    public function __construct($content, Config $config, $eolChar='\n')
33
    {
34
        if ($this->isMinifiedContent($content, $eolChar) === true) {
35
            throw new TokenizerException('File appears to be minified and cannot be processed');
36
        }
37
38
        return parent::__construct($content, $config, $eolChar);
39
40
    }//end __construct()
41
42
43
    /**

src/Tokenizers/JS.php 1 location

@@ 247-255 (lines=9) @@
244
     * @return void
245
     * @throws TokenizerException If the file appears to be minified.
246
     */
247
    public function __construct($content, Config $config, $eolChar='\n')
248
    {
249
        if ($this->isMinifiedContent($content, $eolChar) === true) {
250
            throw new TokenizerException('File appears to be minified and cannot be processed');
251
        }
252
253
        return parent::__construct($content, $config, $eolChar);
254
255
    }//end __construct()
256
257
258
    /**