Code Duplication    Length = 6-8 lines in 2 locations

caffeinated/admin/new/pricing/espresso_events_Pricing_Hooks.class.php 1 location

@@ 1605-1612 (lines=8) @@
1602
                    'DTT_EVT_start',
1603
                    $this->_date_time_format
1604
                );
1605
            } else {
1606
                // default so let's just use what's been set for the default date-time which is 30 days from now.
1607
                $template_args['TKT_end_date'] = date(
1608
                    $this->_date_time_format,
1609
                    mktime(
1610
                        24,
1611
                        0,
1612
                        0,
1613
                        date('m'),
1614
                        date('d') + 29,
1615
                        date('Y')

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 1695-1700 (lines=6) @@
1692
                : null;
1693
            if (! empty($earliest_dtt)) {
1694
                $template_args['TKT_end_date'] = $earliest_dtt->get_datetime('DTT_EVT_start', 'Y-m-d', 'h:i a');
1695
            } else {
1696
                $template_args['TKT_end_date'] = date(
1697
                    'Y-m-d h:i a',
1698
                    mktime(0, 0, 0, date("m"), date("d") + 7, date("Y"))
1699
                );
1700
            }
1701
        }
1702
        $template_args = array_merge($template_args, $price_args);
1703
        $template = apply_filters(