Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3936-3950 (lines=15) @@
3933
		return true;
3934
	}
3935
3936
	function jetpack_menu_order( $menu_order ) {
3937
		$jp_menu_order = array();
3938
3939
		foreach ( $menu_order as $index => $item ) {
3940
			if ( $item != 'jetpack' ) {
3941
				$jp_menu_order[] = $item;
3942
			}
3943
3944
			if ( $index == 0 ) {
3945
				$jp_menu_order[] = 'jetpack';
3946
			}
3947
		}
3948
3949
		return $jp_menu_order;
3950
	}
3951
3952
	function admin_banner_styles() {
3953
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

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

@@ 100-112 (lines=13) @@
97
		echo '</noscript>';
98
	}
99
100
	function jetpack_menu_order( $menu_order ) {
101
		$jp_menu_order = array();
102
103
		foreach ( $menu_order as $index => $item ) {
104
			if ( $item != 'jetpack' )
105
				$jp_menu_order[] = $item;
106
107
			if ( $index == 0 )
108
				$jp_menu_order[] = 'jetpack';
109
		}
110
111
		return $jp_menu_order;
112
	}
113
114
	function page_render() {
115
		/** This action is already documented in views/admin/admin-page.php */