Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack.php 1 location

@@ 3841-3855 (lines=15) @@
3838
		return true;
3839
	}
3840
3841
	function jetpack_menu_order( $menu_order ) {
3842
		$jp_menu_order = array();
3843
3844
		foreach ( $menu_order as $index => $item ) {
3845
			if ( $item != 'jetpack' ) {
3846
				$jp_menu_order[] = $item;
3847
			}
3848
3849
			if ( $index == 0 ) {
3850
				$jp_menu_order[] = 'jetpack';
3851
			}
3852
		}
3853
3854
		return $jp_menu_order;
3855
	}
3856
3857
	function admin_banner_styles() {
3858
		$min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';

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

@@ 76-88 (lines=13) @@
73
		echo '</noscript>';
74
	}
75
76
	function jetpack_menu_order( $menu_order ) {
77
		$jp_menu_order = array();
78
79
		foreach ( $menu_order as $index => $item ) {
80
			if ( $item != 'jetpack' )
81
				$jp_menu_order[] = $item;
82
83
			if ( $index == 0 )
84
				$jp_menu_order[] = 'jetpack';
85
		}
86
87
		return $jp_menu_order;
88
	}
89
90
	function page_render() {
91
		/** This action is already documented in views/admin/admin-page.php */