Code Duplication    Length = 5-13 lines in 2 locations

core/admin/EE_Admin_Page_Menu_Map.core.php 1 location

@@ 165-169 (lines=5) @@
162
                case 'show_on_menu':
163
                    $value = (int) $value;
164
                    break;
165
                case 'admin_init_page':
166
                    if (in_array('admin_init_page', $required) && ! $value instanceof EE_Admin_Page_Init) {
167
                        throw new EE_Error(
168
                            sprintf(
169
                                __(
170
                                    'The value for the "admin_init_page" argument must be an instance of an EE_Admin_Page_Init object.  Instead %s was given as the value.',
171
                                    'event_espresso'
172
                                ),

core/EE_Config.core.php 1 location

@@ 673-685 (lines=13) @@
670
                        }
671
                        break;
672
                    // TEST #9 : verify config object
673
                    case 9:
674
                        if (! $config_obj instanceof EE_Config_Base) {
675
                            if ($display_errors) {
676
                                throw new EE_Error(
677
                                    sprintf(
678
                                        __('The "%s" class is not an instance of EE_Config_Base.', 'event_espresso'),
679
                                        print_r($config_obj, true)
680
                                    )
681
                                );
682
                            }
683
                            return false;
684
                        }
685
                        break;
686
                }
687
            }
688
        } catch (EE_Error $e) {