Code Duplication    Length = 6-6 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

@@ 453-458 (lines=6) @@
450
	public function show_on_page_children( $parent_page_path ) {
451
		$page = get_page_by_path( $parent_page_path );
452
453
		if ( $page ) {
454
			$this->show_on_post_type( 'page' );
455
			$this->settings['show_on']['parent_page_id'] = $page->ID;
456
		} else {
457
			$this->settings['show_on']['parent_page_id'] = -1;
458
		}
459
460
		return $this;
461
	}
@@ 476-481 (lines=6) @@
473
			$page_obj = get_page_by_path( $page );
474
		}
475
476
		if ( $page_obj ) {
477
			$this->show_on_post_type( 'page' );
478
			$this->settings['show_on']['page_id'] = $page_obj->ID;
479
		} else {
480
			$this->settings['show_on']['page_id'] = -1;
481
		}
482
483
		return $this;
484
	}