Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 3839-3843 (lines=5) @@
3836
3837
			if ( $active_state ) {
3838
				$titles = array();
3839
				foreach ( $active_state as $mod ) {
3840
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3841
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3842
					}
3843
				}
3844
				if ( $titles ) {
3845
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
3846
				}
@@ 3851-3855 (lines=5) @@
3848
3849
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
3850
				$titles = array();
3851
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
3852
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3853
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3854
					}
3855
				}
3856
				if ( $titles ) {
3857
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
3858
				}