Code Duplication    Length = 3-3 lines in 5 locations

class/feedcreator.class.php 5 locations

@@ 1048-1050 (lines=3) @@
1045
        if ('' != $this->language) {
1046
            $feed .= '        <language>' . $this->language . "</language>\n";
1047
        }
1048
        if ('' != $this->copyright) {
1049
            $feed .= '        <copyright>' . FeedCreator::iTrunc(htmlspecialchars($this->copyright, ENT_QUOTES | ENT_HTML5), 100) . "</copyright>\n";
1050
        }
1051
        if ('' != $this->editor) {
1052
            $feed .= '        <managingEditor>' . FeedCreator::iTrunc(htmlspecialchars($this->editor, ENT_QUOTES | ENT_HTML5), 100) . "</managingEditor>\n";
1053
        }
@@ 1051-1053 (lines=3) @@
1048
        if ('' != $this->copyright) {
1049
            $feed .= '        <copyright>' . FeedCreator::iTrunc(htmlspecialchars($this->copyright, ENT_QUOTES | ENT_HTML5), 100) . "</copyright>\n";
1050
        }
1051
        if ('' != $this->editor) {
1052
            $feed .= '        <managingEditor>' . FeedCreator::iTrunc(htmlspecialchars($this->editor, ENT_QUOTES | ENT_HTML5), 100) . "</managingEditor>\n";
1053
        }
1054
        if ('' != $this->webmaster) {
1055
            $feed .= '        <webMaster>' . FeedCreator::iTrunc(htmlspecialchars($this->webmaster, ENT_QUOTES | ENT_HTML5), 100) . "</webMaster>\n";
1056
        }
@@ 1054-1056 (lines=3) @@
1051
        if ('' != $this->editor) {
1052
            $feed .= '        <managingEditor>' . FeedCreator::iTrunc(htmlspecialchars($this->editor, ENT_QUOTES | ENT_HTML5), 100) . "</managingEditor>\n";
1053
        }
1054
        if ('' != $this->webmaster) {
1055
            $feed .= '        <webMaster>' . FeedCreator::iTrunc(htmlspecialchars($this->webmaster, ENT_QUOTES | ENT_HTML5), 100) . "</webMaster>\n";
1056
        }
1057
        if ('' != $this->pubDate) {
1058
            $pubDate = new FeedDate($this->pubDate);
1059
            $feed    .= '        <pubDate>' . htmlspecialchars($pubDate->rfc822(), ENT_QUOTES | ENT_HTML5) . "</pubDate>\n";
@@ 1064-1066 (lines=3) @@
1061
        if ('' != $this->category) {
1062
            $feed .= '        <category>' . htmlspecialchars($this->category, ENT_QUOTES | ENT_HTML5) . "</category>\n";
1063
        }
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-1072 (lines=3) @@
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
        }
1073
        if ('' != $this->skipHours) {
1074
            $feed .= '        <skipHours>' . htmlspecialchars($this->skipHours, ENT_QUOTES | ENT_HTML5) . "</skipHours>\n";
1075
        }