Code Duplication    Length = 12-12 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

@@ 207-218 (lines=12) @@
204
					break;
205
206
				// show_on_template
207
				case 'template_names':
208
					if ( empty( $value ) || $post->post_type != 'page' ) {
209
						break;
210
					}
211
					$current_template = get_post_meta( $post_id, '_wp_page_template', 1 );
212
213
					if ( ! in_array( $current_template, $value ) ) {
214
						$valid = false;
215
						break 2;
216
					}
217
218
					break;
219
220
				// hide_on_template
221
				case 'not_in_template_names':
@@ 221-232 (lines=12) @@
218
					break;
219
220
				// hide_on_template
221
				case 'not_in_template_names':
222
					if ( empty( $value ) || $post->post_type != 'page' ) {
223
						break;
224
					}
225
					$current_template = get_post_meta( $post_id, '_wp_page_template', 1 );
226
227
					if ( in_array( $current_template, $value ) ) {
228
						$valid = false;
229
						break 2;
230
					}
231
232
					break;
233
			}
234
		}
235