Code Duplication    Length = 9-9 lines in 2 locations

app/classy/classy-template.php 2 locations

@@ 135-143 (lines=9) @@
132
133
		// Category
134
135
		elseif ( $type == 'category' ):
136
137
			$category = get_queried_object();
138
139
			if ( ! empty( $category->slug ) ) {
140
				$templates[] = "category-{$category->slug}";
141
				$templates[] = "category-{$category->term_id}";
142
			}
143
			$templates[] = 'category';
144
145
146
		// Attachment
@@ 176-184 (lines=9) @@
173
174
		// Tag
175
176
		elseif ( $type == 'tag' ):
177
178
			$tag = get_queried_object();
179
180
			if ( ! empty( $tag->slug ) ) {
181
				$templates[] = "tag-{$tag->slug}";
182
				$templates[] = "tag-{$tag->term_id}";
183
			}
184
			$templates[] = 'tag';
185
186
187
		// Author