Code Duplication    Length = 5-5 lines in 2 locations

application/modules/mod_seo/mod_seo.php 2 locations

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