Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3854-3868 (lines=15) @@
3851
		return true;
3852
	}
3853
3854
	function jetpack_menu_order( $menu_order ) {
3855
		$jp_menu_order = array();
3856
3857
		foreach ( $menu_order as $index => $item ) {
3858
			if ( $item != 'jetpack' ) {
3859
				$jp_menu_order[] = $item;
3860
			}
3861
3862
			if ( $index == 0 ) {
3863
				$jp_menu_order[] = 'jetpack';
3864
			}
3865
		}
3866
3867
		return $jp_menu_order;
3868
	}
3869
3870
	function admin_banner_styles() {
3871
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

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

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