Code Duplication    Length = 2-3 lines in 3 locations

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_classes/EE_Base_Class.class.php 1 location

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

core/db_models/EEM_Base.model.php 1 location

@@ 2102-2104 (lines=3) @@
2099
        }
2100
        /** @type WPDB $wpdb */
2101
        global $wpdb;
2102
        if ( ! method_exists($wpdb, $wpdb_method)) {
2103
            throw new EE_Error(sprintf(__('There is no method named "%s" on Wordpress\' $wpdb object',
2104
                'event_espresso'), $wpdb_method));
2105
        }
2106
        if (WP_DEBUG) {
2107
            $old_show_errors_value = $wpdb->show_errors;