Code Duplication    Length = 6-7 lines in 2 locations

manager/media/rss/rss_fetch.inc 1 location

@@ 301-307 (lines=7) @@
298
        // find Etag, and Last-Modified
299
        foreach($resp->headers as $h) {
300
            // 2003-03-02 - Nicola Asuni (www.tecnick.com) - fixed bug "Undefined offset: 1"
301
            if (strpos($h, ": ")) {
302
                list($field, $val) = explode(": ", $h, 2);
303
            }
304
            else {
305
                $field = $h;
306
                $val = "";
307
            }
308
309
            if ( $field == 'ETag' ) {
310
                $rss->etag = $val;

manager/includes/src/Legacy/Modifiers.php 1 location

@@ 695-700 (lines=6) @@
692
                }
693
            case 'limit':
694
            case 'trim_to': // http://www.movabletype.jp/documentation/appendices/modifiers/trim_to.html
695
                if (strpos($opt, '+') !== false) {
696
                    list($len, $str) = explode('+', $opt, 2);
697
                } else {
698
                    $len = $opt;
699
                    $str = '';
700
                }
701
                if ($len === '') {
702
                    $len = 100;
703
                }