Code Duplication    Length = 3-3 lines in 2 locations

code/model/DiscountCouponOption.php 2 locations

@@ 392-394 (lines=3) @@
389
            if ($this->thereAreCouponsWithTheSameCode()) {
390
                $validator->error(_t('DiscountCouponOption.CODEALREADYEXISTS', "This code already exists - please use another code."));
391
            }
392
            if (isset($_REQUEST["StartDate"])) {
393
                $this->StartDate = date("Y-m-d", strtotime($_REQUEST["StartDate"]));
394
            }
395
            if (isset($_REQUEST["EndDate"])) {
396
                $this->EndDate = date("Y-m-d", strtotime($_REQUEST["EndDate"]));
397
            }
@@ 395-397 (lines=3) @@
392
            if (isset($_REQUEST["StartDate"])) {
393
                $this->StartDate = date("Y-m-d", strtotime($_REQUEST["StartDate"]));
394
            }
395
            if (isset($_REQUEST["EndDate"])) {
396
                $this->EndDate = date("Y-m-d", strtotime($_REQUEST["EndDate"]));
397
            }
398
            if (strtotime($this->StartDate) < strtotime("-12 years")) {
399
                $validator->error(_t('DiscountCouponOption.NOSTARTDATE', "Please enter a start date"));
400
            }