Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3867-3881 (lines=15) @@
3864
		return true;
3865
	}
3866
3867
	function jetpack_menu_order( $menu_order ) {
3868
		$jp_menu_order = array();
3869
3870
		foreach ( $menu_order as $index => $item ) {
3871
			if ( $item != 'jetpack' ) {
3872
				$jp_menu_order[] = $item;
3873
			}
3874
3875
			if ( $index == 0 ) {
3876
				$jp_menu_order[] = 'jetpack';
3877
			}
3878
		}
3879
3880
		return $jp_menu_order;
3881
	}
3882
3883
	function admin_banner_styles() {
3884
		$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 */