Code Duplication    Length = 8-8 lines in 2 locations

class.jetpack-autoupdate.php 2 locations

@@ 42-49 (lines=8) @@
39
		}
40
	}
41
42
	public function autoupdate_plugin( $update, $item ) {
43
		$autoupdate_plugin_list = Jetpack_Options::get_option( 'autoupdate_plugins', array() );
44
		if ( in_array( $item->plugin, $autoupdate_plugin_list ) ) {
45
			$this->expect( $item->plugin, 'plugin' );
46
 			return true;
47
		}
48
		return $update;
49
	}
50
	
51
	public function autoupdate_translation( $update, $item ) {
52
		$autoupdate_themes_translations = Jetpack_Options::get_option( 'autoupdate_themes_translations', array() );
@@ 74-81 (lines=8) @@
71
		return $update;
72
	}
73
74
	public function autoupdate_theme( $update, $item ) {
75
		$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() );
76
		if ( in_array( $item->theme , $autoupdate_theme_list) ) {
77
			$this->expect( $item->theme, 'theme' );
78
			return true;
79
		}
80
		return $update;
81
	}
82
83
	public function autoupdate_core( $update, $item ) {
84
		$autoupdate_core = Jetpack_Options::get_option( 'autoupdate_core', false );