Code Duplication    Length = 5-5 lines in 8 locations

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

@@ 4350-4354 (lines=5) @@
4347
                }
4348
                $value = $this->applyFilter($value, $modifiers, $key);
4349
            }
4350
            if (strpos($tpl, $s) !== false) {
4351
                $tpl = str_replace($s, $value, $tpl);
4352
            } elseif($this->debug) {
4353
                $this->addLog('parseText parse error', $_SERVER['REQUEST_URI'] . $s, 2);
4354
            }
4355
        }
4356
4357
        return $tpl;
@@ 1334-1338 (lines=5) @@
1331
                $value = $this->applyFilter($value, $modifiers, $key);
1332
            }
1333
1334
            if (strpos($content, $s) !== false) {
1335
                $content = str_replace($s, $value, $content);
1336
            } elseif($this->debug) {
1337
                $this->addLog('mergeDocumentContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1338
            }
1339
        }
1340
1341
        return $content;
@@ 1502-1506 (lines=5) @@
1499
                $value = $this->applyFilter($value, $modifiers, $key);
1500
            }
1501
            $s = &$matches[0][$i];
1502
            if (strpos($content, $s) !== false) {
1503
                $content = str_replace($s, $value, $content);
1504
            } elseif($this->debug) {
1505
                $this->addLog('mergeSettingsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1506
            }
1507
        }
1508
        return $content;
1509
    }
@@ 1571-1575 (lines=5) @@
1568
            }
1569
1570
            $s = &$matches[0][$i];
1571
            if (strpos($content, $s) !== false) {
1572
                $content = str_replace($s, $value, $content);
1573
            } elseif($this->debug) {
1574
                $this->addLog('mergeChunkContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1575
            }
1576
        }
1577
        return $content;
1578
    }
@@ 1630-1634 (lines=5) @@
1627
                $value = $this->applyFilter($value, $modifiers, $key);
1628
            }
1629
            $s = &$matches[0][$i];
1630
            if (strpos($content, $s) !== false) {
1631
                $content = str_replace($s, $value, $content);
1632
            } elseif($this->debug) {
1633
                $this->addLog('mergePlaceholderContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1634
            }
1635
        }
1636
        return $content;
1637
    }
@@ 1841-1845 (lines=5) @@
1838
        foreach ($matches[1] as $i => $v) {
1839
            $v = str_ireplace($sTags, $rTags, $v);
1840
            $s = &$matches[0][$i];
1841
            if (strpos($content, $s) !== false) {
1842
                $content = str_replace($s, $v, $content);
1843
            } elseif($this->debug) {
1844
                $this->addLog('ignoreCommentedTagsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1845
            }
1846
        }
1847
        return $content;
1848
    }
@@ 1998-2002 (lines=5) @@
1995
                } else {
1996
                    $value = $s;
1997
                }
1998
                if (strpos($content, $s) !== false) {
1999
                    $content = str_replace($s, $value, $content);
2000
                } elseif($this->debug) {
2001
                    $this->addLog('evalSnippetsSGVar parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2002
                }
2003
                continue;
2004
            }
2005
            $value = $this->_get_snip_result($call);
@@ 2010-2014 (lines=5) @@
2007
                continue;
2008
            }
2009
2010
            if (strpos($content, $s) !== false) {
2011
                $content = str_replace($s, $value, $content);
2012
            } elseif($this->debug) {
2013
                $this->addLog('evalSnippets parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2014
            }
2015
        }
2016
2017
        if ($this->dumpSnippets) {