Code Duplication    Length = 12-12 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

@@ 507-518 (lines=12) @@
504
	 * @param string|array $template_path
505
	 * @return object $this
506
	 **/
507
	public function show_on_template( $template_path ) {
508
		if ( is_array( $template_path ) ) {
509
			foreach ( $template_path as $path ) {
510
				$this->show_on_template( $path );
511
			}
512
			return $this;
513
		}
514
515
		$this->settings['show_on']['template_names'][] = $template_path;
516
517
		return $this;
518
	}
519
	
520
	/**
521
	 * Hide the container from pages whose template has filename $template_path.
@@ 526-537 (lines=12) @@
523
	 * @param string|array $template_path
524
	 * @return object $this
525
	 **/
526
	public function hide_on_template( $template_path ) {
527
		if ( is_array( $template_path ) ) {
528
			foreach ( $template_path as $path ) {
529
				$this->hide_on_template( $path );
530
			}
531
			return $this;
532
		}
533
534
		$this->settings['show_on']['not_in_template_names'][] = $template_path;
535
536
		return $this;
537
	}
538
	
539
	/**
540
	 * Show the container only on hierarchical posts of level $level.