Code Duplication    Length = 3-3 lines in 2 locations

class/feedcreator.class.php 2 locations

@@ 1067-1069 (lines=3) @@
1064
        if ('' != $this->docs) {
1065
            $feed .= '        <docs>' . FeedCreator::iTrunc(htmlspecialchars($this->docs, ENT_QUOTES | ENT_HTML5), 500) . "</docs>\n";
1066
        }
1067
        if ('' != $this->ttl) {
1068
            $feed .= '        <ttl>' . htmlspecialchars($this->ttl, ENT_QUOTES | ENT_HTML5) . "</ttl>\n";
1069
        }
1070
        if ('' != $this->rating) {
1071
            $feed .= '        <rating>' . FeedCreator::iTrunc(htmlspecialchars($this->rating, ENT_QUOTES | ENT_HTML5), 500) . "</rating>\n";
1072
        }
@@ 1076-1078 (lines=3) @@
1073
        if ('' != $this->skipHours) {
1074
            $feed .= '        <skipHours>' . htmlspecialchars($this->skipHours, ENT_QUOTES | ENT_HTML5) . "</skipHours>\n";
1075
        }
1076
        if ('' != $this->skipDays) {
1077
            $feed .= '        <skipDays>' . htmlspecialchars($this->skipDays, ENT_QUOTES | ENT_HTML5) . "</skipDays>\n";
1078
        }
1079
        $feed .= $this->_createAdditionalElements($this->additionalElements, '    ');
1080
1081
        for ($i = 0, $iMax = count($this->items); $i < $iMax; ++$i) {