Code Duplication    Length = 11-11 lines in 2 locations

src/Eccube/Service/ShoppingService.php 1 location

@@ 954-964 (lines=11) @@
951
        $deliveryDurations = array();
952
953
        // 配送日数が設定されている
954
        if ($deliveryDurationFlag) {
955
            $period = new \DatePeriod (
956
                new \DateTime($minDate.' day'),
957
                new \DateInterval('P1D'),
958
                new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day')
959
            );
960
961
            foreach ($period as $day) {
962
                $deliveryDurations[$day->format('Y/m/d')] = $day->format('Y/m/d');
963
            }
964
        }
965
966
        return $deliveryDurations;
967
    }

src/Eccube/Form/Type/Shopping/ShippingType.php 1 location

@@ 149-159 (lines=11) @@
146
                $deliveryDurations = array();
147
148
                // 配送日数が設定されている
149
                if ($deliveryDurationFlag) {
150
                    $period = new \DatePeriod (
151
                        new \DateTime($minDate.' day'),
152
                        new \DateInterval('P1D'),
153
                        new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day')
154
                    );
155
156
                    foreach ($period as $day) {
157
                        $deliveryDurations[$day->format('Y/m/d')] = $day->format('Y/m/d');
158
                    }
159
                }
160
161
                $form = $event->getForm();
162
                $form