Code Duplication    Length = 17-18 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 1474-1491 (lines=18) @@
1471
     *
1472
     * @return file export
1473
     */
1474
    protected function _categories_export()
1475
    {
1476
1477
        // todo: I don't like doing this but it'll do until we modify EE_Export Class.
1478
        $new_request_args = array(
1479
            'export'       => 'report',
1480
            'action'       => 'categories',
1481
            'category_ids' => $this->_req_data['VEN_CAT_ID'],
1482
        );
1483
1484
        $this->_req_data = array_merge($this->_req_data, $new_request_args);
1485
1486
        if (is_readable(EE_CLASSES . 'EE_Export.class.php')) {
1487
            require_once(EE_CLASSES . 'EE_Export.class.php');
1488
            $EE_Export = EE_Export::instance($this->_req_data);
1489
            $EE_Export->export();
1490
        }
1491
    }
1492
1493
1494
    protected function _import_categories()

caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location

@@ 839-855 (lines=17) @@
836
     *
837
     * @return void
838
     */
839
    protected function _categories_export()
840
    {
841
        // todo: I don't like doing this but it'll do until we modify EE_Export Class.
842
        $new_request_args = array(
843
            'export'       => 'report',
844
            'action'       => 'categories',
845
            'category_ids' => $this->_req_data['EVT_CAT_ID'],
846
        );
847
        $this->_req_data = array_merge($this->_req_data, $new_request_args);
848
        if (is_readable(EE_CLASSES . 'EE_Export.class.php')) {
849
            require_once(EE_CLASSES . 'EE_Export.class.php');
850
            $EE_Export = EE_Export::instance($this->_req_data);
851
            if ($EE_Export instanceof EE_Export) {
852
                $EE_Export->export();
853
            }
854
        }
855
    }
856
857
858
    /**