Code Duplication    Length = 9-9 lines in 2 locations

classes/external/php/yui-php-cssmin-2.4.8-4_fgo.php 1 location

@@ 136-144 (lines=9) @@
133
        }
134
135
        // Minify each chunk
136
        for ($i = 0, $n = count($css_chunks); $i < $n; $i++) {
137
            $css_chunks[$i] = $this->minify($css_chunks[$i], $linebreak_pos);
138
            // Keep the first @charset at-rule found
139
            if (empty($charset) && preg_match($charset_regexp, $css_chunks[$i], $matches)) {
140
                $charset = strtolower($matches[1]) . $matches[2];
141
            }
142
            // Delete all @charset at-rules
143
            $css_chunks[$i] = preg_replace($charset_regexp, '', $css_chunks[$i]);
144
        }
145
146
        // Update the first chunk and push the charset to the top of the file.
147
        $css_chunks[0] = $charset . $css_chunks[0];

classes/external/php/yui-php-cssmin-2.4.8-p10/cssmin.php 1 location

@@ 133-141 (lines=9) @@
130
        }
131
132
        // Minify each chunk
133
        for ($i = 0, $n = count($cssChunks); $i < $n; $i++) {
134
            $cssChunks[$i] = $this->minify($cssChunks[$i], $linebreakPos);
135
            // Keep the first @charset at-rule found
136
            if (empty($charset) && preg_match($charsetRegexp, $cssChunks[$i], $matches)) {
137
                $charset = strtolower($matches[1]) . $matches[2];
138
            }
139
            // Delete all @charset at-rules
140
            $cssChunks[$i] = preg_replace($charsetRegexp, '', $cssChunks[$i]);
141
        }
142
143
        // Update the first chunk and push the charset to the top of the file.
144
        $cssChunks[0] = $charset . $cssChunks[0];