Code Duplication    Length = 6-6 lines in 2 locations

core/Container/Post_Meta_Container.php 2 locations

@@ 447-452 (lines=6) @@
444
	public function show_on_page_children( $parent_page_path ) {
445
		$page = get_page_by_path( $parent_page_path );
446
447
		if ( $page ) {
448
			$this->show_on_post_type( 'page' );
449
			$this->settings['show_on']['parent_page_id'] = $page->ID;
450
		} else {
451
			$this->settings['show_on']['parent_page_id'] = -1;
452
		}
453
454
		return $this;
455
	}
@@ 470-475 (lines=6) @@
467
			$page_obj = get_page_by_path( $page );
468
		}
469
470
		if ( $page_obj ) {
471
			$this->show_on_post_type( 'page' );
472
			$this->settings['show_on']['page_id'] = $page_obj->ID;
473
		} else {
474
			$this->settings['show_on']['page_id'] = -1;
475
		}
476
477
		return $this;
478
	}