Code Duplication    Length = 5-5 lines in 8 locations

manager/includes/document.parser.class.inc.php 8 locations

@@ 1313-1317 (lines=5) @@
1310
                $value = $this->applyFilter($value, $modifiers, $key);
1311
            }
1312
1313
            if (strpos($content, $s) !== false) {
1314
                $content = str_replace($s, $value, $content);
1315
            } elseif($this->debug) {
1316
                $this->addLog('mergeDocumentContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1317
            }
1318
        }
1319
1320
        return $content;
@@ 1481-1485 (lines=5) @@
1478
                $value = $this->applyFilter($value, $modifiers, $key);
1479
            }
1480
            $s = &$matches[0][$i];
1481
            if (strpos($content, $s) !== false) {
1482
                $content = str_replace($s, $value, $content);
1483
            } elseif($this->debug) {
1484
                $this->addLog('mergeSettingsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1485
            }
1486
        }
1487
        return $content;
1488
    }
@@ 1550-1554 (lines=5) @@
1547
            }
1548
1549
            $s = &$matches[0][$i];
1550
            if (strpos($content, $s) !== false) {
1551
                $content = str_replace($s, $value, $content);
1552
            } elseif($this->debug) {
1553
                $this->addLog('mergeChunkContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1554
            }
1555
        }
1556
        return $content;
1557
    }
@@ 1609-1613 (lines=5) @@
1606
                $value = $this->applyFilter($value, $modifiers, $key);
1607
            }
1608
            $s = &$matches[0][$i];
1609
            if (strpos($content, $s) !== false) {
1610
                $content = str_replace($s, $value, $content);
1611
            } elseif($this->debug) {
1612
                $this->addLog('mergePlaceholderContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1613
            }
1614
        }
1615
        return $content;
1616
    }
@@ 1820-1824 (lines=5) @@
1817
        foreach ($matches[1] as $i => $v) {
1818
            $v = str_ireplace($sTags, $rTags, $v);
1819
            $s = &$matches[0][$i];
1820
            if (strpos($content, $s) !== false) {
1821
                $content = str_replace($s, $v, $content);
1822
            } elseif($this->debug) {
1823
                $this->addLog('ignoreCommentedTagsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1824
            }
1825
        }
1826
        return $content;
1827
    }
@@ 1977-1981 (lines=5) @@
1974
                } else {
1975
                    $value = $s;
1976
                }
1977
                if (strpos($content, $s) !== false) {
1978
                    $content = str_replace($s, $value, $content);
1979
                } elseif($this->debug) {
1980
                    $this->addLog('evalSnippetsSGVar parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1981
                }
1982
                continue;
1983
            }
1984
            $value = $this->_get_snip_result($call);
@@ 1989-1993 (lines=5) @@
1986
                continue;
1987
            }
1988
1989
            if (strpos($content, $s) !== false) {
1990
                $content = str_replace($s, $value, $content);
1991
            } elseif($this->debug) {
1992
                $this->addLog('evalSnippets parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1993
            }
1994
        }
1995
1996
        if ($this->dumpSnippets) {
@@ 4330-4334 (lines=5) @@
4327
                }
4328
                $value = $this->applyFilter($value, $modifiers, $key);
4329
            }
4330
            if (strpos($tpl, $s) !== false) {
4331
                $tpl = str_replace($s, $value, $tpl);
4332
            } elseif($this->debug) {
4333
                $this->addLog('parseText parse error', $_SERVER['REQUEST_URI'] . $s, 2);
4334
            }
4335
        }
4336
4337
        return $tpl;