Code Duplication    Length = 2-3 lines in 3 locations

core/db_classes/EE_Base_Class.class.php 1 location

@@ 1329-1330 (lines=2) @@
1326
1327
		$fn = (array) $field_name;
1328
		$args = array_merge( $fn, (array) $args );
1329
		if ( ! method_exists( $this, $callback ) ) {
1330
			throw new EE_Error(
1331
				sprintf(
1332
					__(
1333
						'The method named "%s" given as the callback param in "display_in_my_timezone" does not exist.  Please check your spelling',

core/libraries/messages/EE_message_type.lib.php 1 location

@@ 676-677 (lines=2) @@
673
		// each context defined to handle the processing of the data object within them
674
		foreach ( $this->_contexts as $context => $details ) {
675
			$xpctd_method = '_' . $context . '_addressees';
676
			if ( ! method_exists( $this, $xpctd_method ) ) {
677
				throw new EE_Error(
678
					sprintf(
679
						__(
680
							'The data for %1$s message type cannot be prepared because there is no set method for doing so.  The expected method name is "%2$s" please doublecheck the %1$s message type class and make sure that method is present',

core/db_models/EEM_Base.model.php 1 location

@@ 1940-1942 (lines=3) @@
1937
		}
1938
		/** @type WPDB $wpdb */
1939
		global $wpdb;
1940
		if( ! method_exists( $wpdb, $wpdb_method ) ){
1941
			throw new EE_Error( sprintf( __( 'There is no method named "%s" on Wordpress\' $wpdb object','event_espresso' ), $wpdb_method ) );
1942
		}
1943
		if( WP_DEBUG ){
1944
			$old_show_errors_value = $wpdb->show_errors;
1945
			$wpdb->show_errors( FALSE );