Code Duplication    Length = 5-5 lines in 2 locations

class.jetpack.php 2 locations

@@ 3969-3973 (lines=5) @@
3966
3967
			if ( $active_state ) {
3968
				$titles = array();
3969
				foreach ( $active_state as $mod ) {
3970
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3971
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3972
					}
3973
				}
3974
				if ( $titles ) {
3975
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following new modules have been activated: %l.', 'jetpack' ), $titles );
3976
				}
@@ 3981-3985 (lines=5) @@
3978
3979
			if ( $reactive_state = Jetpack::state( 'reactivated_modules' ) ) {
3980
				$titles = array();
3981
				foreach ( explode( ',',  $reactive_state ) as $mod ) {
3982
					if ( $mod_headers = Jetpack::get_module( $mod ) ) {
3983
						$titles[] = '<strong>' . preg_replace( '/\s+(?![^<>]++>)/', '&nbsp;', $mod_headers['name'] ) . '</strong>';
3984
					}
3985
				}
3986
				if ( $titles ) {
3987
					$this->message .= '<br /><br />' . wp_sprintf( __( 'The following modules have been updated: %l.', 'jetpack' ), $titles );
3988
				}