Code Duplication    Length = 12-12 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

@@ 247-258 (lines=12) @@
244
					break;
245
246
				// show_on_template
247
				case 'template_names':
248
					if ( empty( $value ) || $post->post_type != 'page' ) {
249
						break;
250
					}
251
					$current_template = get_post_meta( $post_id, '_wp_page_template', 1 );
252
253
					if ( ! in_array( $current_template, $value ) ) {
254
						$valid = false;
255
						break 2;
256
					}
257
258
					break;
259
260
				// hide_on_template
261
				case 'not_in_template_names':
@@ 261-272 (lines=12) @@
258
					break;
259
260
				// hide_on_template
261
				case 'not_in_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
		}
275