Code Duplication    Length = 5-5 lines in 4 locations

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

@@ 1318-1322 (lines=5) @@
1315
     */
1316
    public function mergeDocumentContent($content, $ph = false)
1317
    {
1318
        if ($this->config['enable_at_syntax']) {
1319
            if (stripos($content, '<@LITERAL>') !== false) {
1320
                $content = $this->escapeLiteralTagsContent($content);
1321
            }
1322
        }
1323
        if (strpos($content, '[*') === false) {
1324
            return $content;
1325
        }
@@ 1513-1517 (lines=5) @@
1510
     */
1511
    public function mergeSettingsContent($content, $ph = false)
1512
    {
1513
        if ($this->config['enable_at_syntax']) {
1514
            if (stripos($content, '<@LITERAL>') !== false) {
1515
                $content = $this->escapeLiteralTagsContent($content);
1516
            }
1517
        }
1518
        if (strpos($content, '[(') === false) {
1519
            return $content;
1520
        }
@@ 1634-1638 (lines=5) @@
1631
    public function mergePlaceholderContent($content, $ph = false)
1632
    {
1633
1634
        if ($this->config['enable_at_syntax']) {
1635
            if (stripos($content, '<@LITERAL>') !== false) {
1636
                $content = $this->escapeLiteralTagsContent($content);
1637
            }
1638
        }
1639
        if (strpos($content, '[+') === false) {
1640
            return $content;
1641
        }
@@ 4472-4476 (lines=5) @@
4469
            return $tpl;
4470
        }
4471
4472
        if ($this->config['enable_at_syntax']) {
4473
            if (stripos($tpl, '<@LITERAL>') !== false) {
4474
                $tpl = $this->escapeLiteralTagsContent($tpl);
4475
            }
4476
        }
4477
4478
        $matches = $this->getTagsFromContent($tpl, $left, $right);
4479
        if (empty($matches)) {