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

@@ 1443-1444 (lines=2) @@
1440
        $this->set_timezone($timezone);
1441
        $fn = (array)$field_name;
1442
        $args = array_merge($fn, (array)$args);
1443
        if ( ! method_exists($this, $callback)) {
1444
            throw new EE_Error(
1445
                sprintf(
1446
                    __(
1447
                        '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

@@ 2328-2330 (lines=3) @@
2325
        }
2326
        /** @type WPDB $wpdb */
2327
        global $wpdb;
2328
        if (! method_exists($wpdb, $wpdb_method)) {
2329
            throw new EE_Error(sprintf(__('There is no method named "%s" on Wordpress\' $wpdb object',
2330
                'event_espresso'), $wpdb_method));
2331
        }
2332
        if (WP_DEBUG) {
2333
            $old_show_errors_value = $wpdb->show_errors;