Code Duplication    Length = 8-8 lines in 2 locations

core/libraries/messages/validators/EE_Messages_Validator.core.php 2 locations

@@ 174-181 (lines=8) @@
171
		$messenger = str_replace( ' ', '_', $messenger );
172
		$messenger = 'EE_' . $messenger . '_messenger';
173
174
		if ( ! class_exists( $messenger ) ) {
175
			throw new EE_Error(
176
				sprintf(
177
					__( 'There is no messenger class for the given string (%s)', 'event_espresso' ),
178
					$this->_m_name
179
				)
180
			);
181
		}
182
183
		$this->_messenger = new $messenger();
184
@@ 190-197 (lines=8) @@
187
		$message_type = str_replace( ' ', '_', $message_type );
188
		$message_type = 'EE_' . $message_type . '_message_type';
189
190
		if ( !class_exists( $message_type ) ) {
191
			throw new EE_Error(
192
				sprintf(
193
					__( 'There is no message type class for the given string (%s)', 'event_espresso' ),
194
					$this->_mt_name
195
				)
196
			);
197
		}
198
199
		$this->_message_type = new $message_type();
200