Code Duplication    Length = 3-4 lines in 2 locations

main/inc/lib/document.lib.php 2 locations

@@ 2437-2439 (lines=3) @@
2434
                $name = trim($regs[3][$i]);
2435
                $check = trim($regs[0][$i]);
2436
                $value = trim($regs[10][$i]);
2437
                if (empty($value) and !empty($regs[13][$i])) {
2438
                    $value = $regs[13][$i];
2439
                }
2440
                if (empty($name) && !empty($regs[16][$i])) {
2441
                    $name = '@import';
2442
                    $value = trim($regs[16][$i]);
@@ 2440-2443 (lines=4) @@
2437
                if (empty($value) and !empty($regs[13][$i])) {
2438
                    $value = $regs[13][$i];
2439
                }
2440
                if (empty($name) && !empty($regs[16][$i])) {
2441
                    $name = '@import';
2442
                    $value = trim($regs[16][$i]);
2443
                }
2444
                if (!empty($name)) {
2445
                    if (!$reduced OR in_array(strtolower($name), $wanted)) {
2446
                        if ($name == $check) {