Code Duplication    Length = 5-5 lines in 4 locations

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

@@ 1263-1267 (lines=5) @@
1260
     */
1261
    public function mergeDocumentContent($content, $ph = false)
1262
    {
1263
        if ($this->config['enable_at_syntax']) {
1264
            if (stripos($content, '<@LITERAL>') !== false) {
1265
                $content = $this->escapeLiteralTagsContent($content);
1266
            }
1267
        }
1268
        if (strpos($content, '[*') === false) {
1269
            return $content;
1270
        }
@@ 1455-1459 (lines=5) @@
1452
     */
1453
    public function mergeSettingsContent($content, $ph = false)
1454
    {
1455
        if ($this->config['enable_at_syntax']) {
1456
            if (stripos($content, '<@LITERAL>') !== false) {
1457
                $content = $this->escapeLiteralTagsContent($content);
1458
            }
1459
        }
1460
        if (strpos($content, '[(') === false) {
1461
            return $content;
1462
        }
@@ 1574-1578 (lines=5) @@
1571
    public function mergePlaceholderContent($content, $ph = false)
1572
    {
1573
1574
        if ($this->config['enable_at_syntax']) {
1575
            if (stripos($content, '<@LITERAL>') !== false) {
1576
                $content = $this->escapeLiteralTagsContent($content);
1577
            }
1578
        }
1579
        if (strpos($content, '[+') === false) {
1580
            return $content;
1581
        }
@@ 4299-4303 (lines=5) @@
4296
            return $tpl;
4297
        }
4298
4299
        if ($this->config['enable_at_syntax']) {
4300
            if (stripos($tpl, '<@LITERAL>') !== false) {
4301
                $tpl = $this->escapeLiteralTagsContent($tpl);
4302
            }
4303
        }
4304
4305
        $matches = $this->getTagsFromContent($tpl, $left, $right);
4306
        if (empty($matches)) {