Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 3982-3986 (lines=5) @@
3979
3980
			if ( $active_state ) {
3981
				$titles = array();
3982
				foreach ( $active_state as $mod ) {
3983
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3984
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3985
					}
3986
				}
3987
				if ( $titles ) {
3988
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
3989
				}
@@ 3994-3998 (lines=5) @@
3991
3992
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
3993
				$titles = array();
3994
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
3995
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3996
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3997
					}
3998
				}
3999
				if ( $titles ) {
4000
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
4001
				}