Code Duplication    Length = 5-5 lines in 2 locations

application/modules/mod_seo/mod_seo.php 2 locations

@@ 139-143 (lines=5) @@
136
                $templateTitle = $settings['subcategoryTemplate'];
137
            }
138
139
            if ($settings['usesubcategoryPatternForEmptyMeta'] == 1 && trim($model->getMetaDesc()) != '') {
140
                $templateDesc = trim($model->getMetaDesc());
141
            } else {
142
                $templateDesc = $settings['subcategoryTemplateDesc'];
143
            }
144
145
            if ($settings['usesubcategoryPatternForEmptyMeta'] == 1 && trim($model->getMetaKeywords()) != '') {
146
                $templateKey = trim($model->getMetaKeywords());
@@ 164-168 (lines=5) @@
161
                $templateTitle = $settings['categoryTemplate'];
162
            }
163
164
            if ($settings['useCategoryPatternForEmptyMeta'] == 1 && trim($model->getMetaDesc()) != '') {
165
                $templateDesc = trim($model->getMetaDesc());
166
            } else {
167
                $templateDesc = $settings['categoryTemplateDesc'];
168
            }
169
170
            if ($settings['useCategoryPatternForEmptyMeta'] == 1 && trim($model->getMetaKeywords()) != '') {
171
                $templateKey = trim($model->getMetaKeywords());