Code Duplication    Length = 12-12 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

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