Code Duplication    Length = 10-10 lines in 2 locations

core/admin/EE_Admin_Hooks.core.php 2 locations

@@ 557-566 (lines=10) @@
554
        if (empty($this->_ajax_func)) {
555
            return;
556
        } //get out there's nothing to take care of.
557
        foreach ($this->_ajax_func as $action => $method) {
558
            // make sure method exists
559
            if (! method_exists($this, $method)) {
560
                $msg[] = __(
561
                    'There is no corresponding method for the hook labeled in the _ajax_func array',
562
                    'event_espresso'
563
                ) . '<br />';
564
                $msg[] = sprintf(
565
                    __(
566
                        'The method name given in the array is %s, check the spelling and make sure it exists in the %s class',
567
                        'event_espresso'
568
                    ),
569
                    $method,
@@ 591-600 (lines=10) @@
588
        } //get out there's nothing to take care of.
589
        // We need to determine what page_route we are on!
590
        $current_route = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'default';
591
        foreach ($this->_init_func as $route => $method) {
592
            // make sure method exists
593
            if (! method_exists($this, $method)) {
594
                $msg[] = __(
595
                    'There is no corresponding method for the hook labeled in the _init_func array',
596
                    'event_espresso'
597
                ) . '<br />';
598
                $msg[] = sprintf(
599
                    __(
600
                        'The method name given in the array is %s, check the spelling and make sure it exists in the %s class',
601
                        'event_espresso'
602
                    ),
603
                    $method,