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
    }
@@ 2008-2012 (lines=5) @@
2005
                } else {
2006
                    $value = $s;
2007
                }
2008
                if (strpos($content, $s) !== false) {
2009
                    $content = str_replace($s, $value, $content);
2010
                } elseif($this->debug) {
2011
                    $this->addLog('evalSnippetsSGVar parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2012
                }
2013
                continue;
2014
            }
2015
            $value = $this->_get_snip_result($call);
@@ 2020-2024 (lines=5) @@
2017
                continue;
2018
            }
2019
2020
            if (strpos($content, $s) !== false) {
2021
                $content = str_replace($s, $value, $content);
2022
            } elseif($this->debug) {
2023
                $this->addLog('evalSnippets parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2024
            }
2025
        }
2026
2027
        if ($this->dumpSnippets) {
@@ 4369-4373 (lines=5) @@
4366
                }
4367
                $value = $this->applyFilter($value, $modifiers, $key);
4368
            }
4369
            if (strpos($tpl, $s) !== false) {
4370
                $tpl = str_replace($s, $value, $tpl);
4371
            } elseif($this->debug) {
4372
                $this->addLog('parseText parse error', $_SERVER['REQUEST_URI'] . $s, 2);
4373
            }
4374
        }
4375
4376
        return $tpl;