Code Duplication    Length = 5-5 lines in 4 locations

manager/includes/src/Core.php 4 locations

@@ 1559-1563 (lines=5) @@
1556
     */
1557
    public function mergeDocumentContent($content, $ph = false)
1558
    {
1559
        if ($this->config['enable_at_syntax']) {
1560
            if (stripos($content, '<@LITERAL>') !== false) {
1561
                $content = $this->escapeLiteralTagsContent($content);
1562
            }
1563
        }
1564
        if (strpos($content, '[*') === false) {
1565
            return $content;
1566
        }
@@ 1749-1753 (lines=5) @@
1746
     */
1747
    public function mergeSettingsContent($content, $ph = false)
1748
    {
1749
        if ($this->config['enable_at_syntax']) {
1750
            if (stripos($content, '<@LITERAL>') !== false) {
1751
                $content = $this->escapeLiteralTagsContent($content);
1752
            }
1753
        }
1754
        if (strpos($content, '[(') === false) {
1755
            return $content;
1756
        }
@@ 1868-1872 (lines=5) @@
1865
    public function mergePlaceholderContent($content, $ph = false)
1866
    {
1867
1868
        if ($this->config['enable_at_syntax']) {
1869
            if (stripos($content, '<@LITERAL>') !== false) {
1870
                $content = $this->escapeLiteralTagsContent($content);
1871
            }
1872
        }
1873
        if (strpos($content, '[+') === false) {
1874
            return $content;
1875
        }
@@ 4615-4619 (lines=5) @@
4612
            return $tpl;
4613
        }
4614
4615
        if ($this->config['enable_at_syntax']) {
4616
            if (stripos($tpl, '<@LITERAL>') !== false) {
4617
                $tpl = $this->escapeLiteralTagsContent($tpl);
4618
            }
4619
        }
4620
4621
        $matches = $this->getTagsFromContent($tpl, $left, $right);
4622
        if (empty($matches)) {