Code Duplication    Length = 5-5 lines in 8 locations

manager/includes/src/Core.php 8 locations

@@ 1586-1590 (lines=5) @@
1583
                $value = $this->applyFilter($value, $modifiers, $key);
1584
            }
1585
1586
            if (strpos($content, $s) !== false) {
1587
                $content = str_replace($s, $value, $content);
1588
            } elseif($this->debug) {
1589
                $this->addLog('mergeDocumentContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1590
            }
1591
        }
1592
1593
        return $content;
@@ 1754-1758 (lines=5) @@
1751
                $value = $this->applyFilter($value, $modifiers, $key);
1752
            }
1753
            $s = &$matches[0][$i];
1754
            if (strpos($content, $s) !== false) {
1755
                $content = str_replace($s, $value, $content);
1756
            } elseif($this->debug) {
1757
                $this->addLog('mergeSettingsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1758
            }
1759
        }
1760
        return $content;
1761
    }
@@ 1823-1827 (lines=5) @@
1820
            }
1821
1822
            $s = &$matches[0][$i];
1823
            if (strpos($content, $s) !== false) {
1824
                $content = str_replace($s, $value, $content);
1825
            } elseif($this->debug) {
1826
                $this->addLog('mergeChunkContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1827
            }
1828
        }
1829
        return $content;
1830
    }
@@ 1882-1886 (lines=5) @@
1879
                $value = $this->applyFilter($value, $modifiers, $key);
1880
            }
1881
            $s = &$matches[0][$i];
1882
            if (strpos($content, $s) !== false) {
1883
                $content = str_replace($s, $value, $content);
1884
            } elseif($this->debug) {
1885
                $this->addLog('mergePlaceholderContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
1886
            }
1887
        }
1888
        return $content;
1889
    }
@@ 2093-2097 (lines=5) @@
2090
        foreach ($matches[1] as $i => $v) {
2091
            $v = str_ireplace($sTags, $rTags, $v);
2092
            $s = &$matches[0][$i];
2093
            if (strpos($content, $s) !== false) {
2094
                $content = str_replace($s, $v, $content);
2095
            } elseif($this->debug) {
2096
                $this->addLog('ignoreCommentedTagsContent parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2097
            }
2098
        }
2099
        return $content;
2100
    }
@@ 2253-2257 (lines=5) @@
2250
                } else {
2251
                    $value = $s;
2252
                }
2253
                if (strpos($content, $s) !== false) {
2254
                    $content = str_replace($s, $value, $content);
2255
                } elseif($this->debug) {
2256
                    $this->addLog('evalSnippetsSGVar parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2257
                }
2258
                continue;
2259
            }
2260
            $value = $this->_get_snip_result($call);
@@ 2265-2269 (lines=5) @@
2262
                continue;
2263
            }
2264
2265
            if (strpos($content, $s) !== false) {
2266
                $content = str_replace($s, $value, $content);
2267
            } elseif($this->debug) {
2268
                $this->addLog('evalSnippets parse error', $_SERVER['REQUEST_URI'] . $s, 2);
2269
            }
2270
        }
2271
2272
        if ($this->dumpSnippets) {
@@ 4622-4626 (lines=5) @@
4619
                }
4620
                $value = $this->applyFilter($value, $modifiers, $key);
4621
            }
4622
            if (strpos($tpl, $s) !== false) {
4623
                $tpl = str_replace($s, $value, $tpl);
4624
            } elseif($this->debug) {
4625
                $this->addLog('parseText parse error', $_SERVER['REQUEST_URI'] . $s, 2);
4626
            }
4627
        }
4628
4629
        return $tpl;