Code Duplication    Length = 8-8 lines in 2 locations

sync/class.jetpack-sync-module-themes.php 2 locations

@@ 35-42 (lines=8) @@
32
		if ( count( $old_value ) > $value )  {
33
			$disabled_theme_names = array_keys( array_diff_key( $old_value, $value ) );
34
			$disabled_themes = array();
35
			foreach ( $disabled_theme_names as $name ) {
36
				$theme = wp_get_theme( $name );
37
				$disabled_themes[ $name ] = array(
38
					'name' => $theme->get('Name'),
39
					'version' => $theme->get('Version'),
40
					'uri' => $theme->get( 'ThemeURI' ),
41
				);
42
			}
43
44
			/**
45
			 * Trigger action to alert $callable sync listener that network themes were disabled
@@ 57-64 (lines=8) @@
54
55
		$enabled_theme_names = array_keys( array_diff_key( $value, $old_value ) );
56
		$enabled_themes = array();
57
		foreach ( $enabled_theme_names as $name ) {
58
			$theme = wp_get_theme( $name );
59
			$enabled_themes[ $name ] = array(
60
				'name' => $theme->get('Name'),
61
				'version' => $theme->get('Version'),
62
				'uri' => $theme->get( 'ThemeURI' ),
63
			);
64
		}
65
66
		/**
67
		 * Trigger action to alert $callable sync listener that network themes were enabled