Code Duplication    Length = 3-3 lines in 2 locations

core/libraries/plugin_api/EE_Register_Addon.lib.php 1 location

@@ 291-293 (lines=3) @@
288
                )
289
            );
290
        }
291
        if (! isset($setup_args['main_file_path']) || empty($setup_args['main_file_path'])) {
292
            throw new EE_Error(
293
                sprintf(
294
                    __(
295
                        'When registering an addon, you didn\'t provide the "main_file_path", which is the full path to the main file loaded directly by Wordpress. You only provided %s',
296
                        'event_espresso'

core/db_models/EEM_Base.model.php 1 location

@@ 3191-3193 (lines=3) @@
3188
                    //then $possible_array_of_params looks something like array('<','DTT_sold',true)
3189
                    //indicating that $possible_array_of_params[1] is actually a field name,
3190
                    //from which we should extract query parameters!
3191
                    if (! isset($possibly_array_of_params[0], $possibly_array_of_params[1])) {
3192
                        throw new EE_Error(sprintf(__("Improperly formed query parameter %s. It should be numerically indexed like array('<','DTT_sold',true); but you provided %s",
3193
                            "event_espresso"), $query_param_type, implode(",", $possibly_array_of_params)));
3194
                    }
3195
                    $this->_extract_related_model_info_from_query_param($possibly_array_of_params[1],
3196
                        $model_query_info_carrier, $query_param_type);