Code Duplication    Length = 4-4 lines in 2 locations

code/MailgunAdmin.php 2 locations

@@ 426-429 (lines=4) @@
423
424
        $fields->push(new DateField('params[end]', _t('MailgunAdmin.DATETO', 'To'), $to = $this->getParam('end')));
425
426
        if (!in_array('from', $disabled_filters)) {
427
            $fields->push($friendly_froms = new TextField('params[from]', _t('MailgunAdmin.FRIENDLYFROM', 'Sender'), $this->getParam('from')));
428
            $friendly_froms->setAttribute('placeholder', '[email protected],[email protected]');
429
        }
430
431
        if (!in_array('to', $disabled_filters)) {
432
            $fields->push($recipients = new TextField('params[to]', _t('MailgunAdmin.RECIPIENTS', 'Recipients'), $this->getParam('to')));
@@ 431-434 (lines=4) @@
428
            $friendly_froms->setAttribute('placeholder', '[email protected],[email protected]');
429
        }
430
431
        if (!in_array('to', $disabled_filters)) {
432
            $fields->push($recipients = new TextField('params[to]', _t('MailgunAdmin.RECIPIENTS', 'Recipients'), $this->getParam('to')));
433
            $recipients->setAttribute('placeholder', '[email protected],[email protected]');
434
        }
435
436
        $fields->push(new DropdownField('params[limit]', _t('MailgunAdmin.PERPAGE', 'Number of results'), array(
437
            100 => 100,