Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3865-3879 (lines=15) @@
3862
		return true;
3863
	}
3864
3865
	function jetpack_menu_order( $menu_order ) {
3866
		$jp_menu_order = array();
3867
3868
		foreach ( $menu_order as $index => $item ) {
3869
			if ( $item != 'jetpack' ) {
3870
				$jp_menu_order[] = $item;
3871
			}
3872
3873
			if ( $index == 0 ) {
3874
				$jp_menu_order[] = 'jetpack';
3875
			}
3876
		}
3877
3878
		return $jp_menu_order;
3879
	}
3880
3881
	function admin_banner_styles() {
3882
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

_inc/lib/admin-pages/class.jetpack-react-page.php 1 location

@@ 85-97 (lines=13) @@
82
		echo '</noscript>';
83
	}
84
85
	function jetpack_menu_order( $menu_order ) {
86
		$jp_menu_order = array();
87
88
		foreach ( $menu_order as $index => $item ) {
89
			if ( $item != 'jetpack' )
90
				$jp_menu_order[] = $item;
91
92
			if ( $index == 0 )
93
				$jp_menu_order[] = 'jetpack';
94
		}
95
96
		return $jp_menu_order;
97
	}
98
99
	function page_render() {
100
		/** This action is already documented in views/admin/admin-page.php */