Code Duplication    Length = 5-5 lines in 8 locations

manager/includes/src/Core.php 8 locations

@@ 1341-1345 (lines=5) @@
1338
                $value = $this->applyFilter($value, $modifiers, $key);
1339
            }
1340
1341
            if (strpos($content, $s) !== false) {
1342
                $content = str_replace($s, $value, $content);
1343
            } elseif($this->debug) {
1344
                $this->addLog('mergeDocumentContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1345
            }
1346
        }
1347
1348
        return $content;
@@ 1509-1513 (lines=5) @@
1506
                $value = $this->applyFilter($value, $modifiers, $key);
1507
            }
1508
            $s = &$matches[0][$i];
1509
            if (strpos($content, $s) !== false) {
1510
                $content = str_replace($s, $value, $content);
1511
            } elseif($this->debug) {
1512
                $this->addLog('mergeSettingsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1513
            }
1514
        }
1515
        return $content;
1516
    }
@@ 1578-1582 (lines=5) @@
1575
            }
1576
1577
            $s = &$matches[0][$i];
1578
            if (strpos($content, $s) !== false) {
1579
                $content = str_replace($s, $value, $content);
1580
            } elseif($this->debug) {
1581
                $this->addLog('mergeChunkContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1582
            }
1583
        }
1584
        return $content;
1585
    }
@@ 1637-1641 (lines=5) @@
1634
                $value = $this->applyFilter($value, $modifiers, $key);
1635
            }
1636
            $s = &$matches[0][$i];
1637
            if (strpos($content, $s) !== false) {
1638
                $content = str_replace($s, $value, $content);
1639
            } elseif($this->debug) {
1640
                $this->addLog('mergePlaceholderContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1641
            }
1642
        }
1643
        return $content;
1644
    }
@@ 1848-1852 (lines=5) @@
1845
        foreach ($matches[1] as $i => $v) {
1846
            $v = str_ireplace($sTags, $rTags, $v);
1847
            $s = &$matches[0][$i];
1848
            if (strpos($content, $s) !== false) {
1849
                $content = str_replace($s, $v, $content);
1850
            } elseif($this->debug) {
1851
                $this->addLog('ignoreCommentedTagsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1852
            }
1853
        }
1854
        return $content;
1855
    }
@@ 2005-2009 (lines=5) @@
2002
                } else {
2003
                    $value = $s;
2004
                }
2005
                if (strpos($content, $s) !== false) {
2006
                    $content = str_replace($s, $value, $content);
2007
                } elseif($this->debug) {
2008
                    $this->addLog('evalSnippetsSGVar parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2009
                }
2010
                continue;
2011
            }
2012
            $value = $this->_get_snip_result($call);
@@ 2017-2021 (lines=5) @@
2014
                continue;
2015
            }
2016
2017
            if (strpos($content, $s) !== false) {
2018
                $content = str_replace($s, $value, $content);
2019
            } elseif($this->debug) {
2020
                $this->addLog('evalSnippets parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2021
            }
2022
        }
2023
2024
        if ($this->dumpSnippets) {
@@ 4366-4370 (lines=5) @@
4363
                }
4364
                $value = $this->applyFilter($value, $modifiers, $key);
4365
            }
4366
            if (strpos($tpl, $s) !== false) {
4367
                $tpl = str_replace($s, $value, $tpl);
4368
            } elseif($this->debug) {
4369
                $this->addLog('parseText parse error', $_SERVER['REQUEST_URI'] . $s, 2);
4370
            }
4371
        }
4372
4373
        return $tpl;