Code Duplication    Length = 12-12 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

@@ 261-272 (lines=12) @@
258
					break;
259
260
				// show_on_template
261
				case 'template_names':
262
					if ( empty( $value ) || $post->post_type != 'page' ) {
263
						break;
264
					}
265
					$current_template = get_post_meta( $post_id, '_wp_page_template', 1 );
266
267
					if ( ! in_array( $current_template, $value ) ) {
268
						$valid = false;
269
						break 2;
270
					}
271
272
					break;
273
274
				// hide_on_template
275
				case 'not_in_template_names':
@@ 275-286 (lines=12) @@
272
					break;
273
274
				// hide_on_template
275
				case 'not_in_template_names':
276
					if ( empty( $value ) || $post->post_type != 'page' ) {
277
						break;
278
					}
279
					$current_template = get_post_meta( $post_id, '_wp_page_template', 1 );
280
281
					if ( in_array( $current_template, $value ) ) {
282
						$valid = false;
283
						break 2;
284
					}
285
286
					break;
287
			}
288
		}
289