Code Duplication    Length = 15-15 lines in 2 locations

classes/external/php/minify-2.1.7-jsmin.php 1 location

@@ 370-384 (lines=15) @@
367
    /**
368
     * Consume a single line comment from input (possibly retaining it)
369
     */
370
    protected function consumeSingleLineComment()
371
    {
372
        $comment = '';
373
        while (true) {
374
            $get = $this->get();
375
            $comment .= $get;
376
            if (ord($get) <= self::ORD_LF) { // end of line reached
377
                // if IE conditional comment
378
                if (preg_match('/^\\/@(?:cc_on|if|elif|else|end)\\b/', $comment)) {
379
                    $this->keptComment .= "/{$comment}";
380
                }
381
                return;
382
            }
383
        }
384
    }
385
386
    /**
387
     * Consume a multiple line comment from input (possibly retaining it)

classes/external/php/minify-2.3.1-jsmin.php 1 location

@@ 380-394 (lines=15) @@
377
    /**
378
     * Consume a single line comment from input (possibly retaining it)
379
     */
380
    protected function consumeSingleLineComment()
381
    {
382
        $comment = '';
383
        while (true) {
384
            $get = $this->get();
385
            $comment .= $get;
386
            if (ord($get) <= self::ORD_LF) { // end of line reached
387
                // if IE conditional comment
388
                if (preg_match('/^\\/@(?:cc_on|if|elif|else|end)\\b/', $comment)) {
389
                    $this->keptComment .= "/{$comment}";
390
                }
391
                return;
392
            }
393
        }
394
    }
395
396
    /**
397
     * Consume a multiple line comment from input (possibly retaining it)