Code Duplication    Length = 7-7 lines in 2 locations

sync/class.jetpack-sync-module-plugins.php 1 location

@@ 31-37 (lines=7) @@
28
29
	public function check_upgrader( $upgrader, $details) {
30
31
		if ( ! isset( $details['type'] ) ||
32
			'plugin' !== $details['type'] ||
33
			is_wp_error( $upgrader->skin->result ) ||
34
			! method_exists( $upgrader, 'plugin_info' )
35
		) {
36
			return;
37
		}
38
39
		if ( 'install' === $details['action'] ) {
40
			$plugin_path = $upgrader->plugin_info();

sync/class.jetpack-sync-module-themes.php 1 location

@@ 28-34 (lines=7) @@
25
26
		return;
27
28
		if ( ! isset( $details['type'] ) ||
29
			'plugin' !== $details['type'] ||
30
			is_wp_error( $upgrader->skin->result ) ||
31
			! method_exists( $upgrader, 'plugin_info' )
32
		) {
33
			return;
34
		}
35
36
		if ( 'install' === $details['action'] ) {
37
			$plugin_path = $upgrader->plugin_info();