Code Duplication    Length = 8-9 lines in 2 locations

class.jetpack-autoupdate.php 2 locations

@@ 46-54 (lines=9) @@
43
		}
44
	}
45
46
	function autoupdate_plugin( $update, $item ) {
47
		$autoupdate_plugin_list = Jetpack_Options::get_option( 'autoupdate_plugins', array() );
48
		if ( in_array( $item->plugin, $autoupdate_plugin_list ) ) {
49
			$this->expect( $item->plugin );
50
 			return true;
51
		}
52
53
		return $update;
54
	}
55
56
	function autoupdate_theme( $update, $item ) {
57
		$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() );
@@ 56-63 (lines=8) @@
53
		return $update;
54
	}
55
56
	function autoupdate_theme( $update, $item ) {
57
		$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() );
58
		if ( in_array( $item->theme , $autoupdate_theme_list) ) {
59
			$this->expect( $item->theme, $type = 'theme' );
60
			return true;
61
		}
62
		return $update;
63
	}
64
65
	function autoupdate_core( $update, $item ) {
66
		$autoupdate_core = Jetpack_Options::get_option( 'autoupdate_core', false );