Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 149-159 (lines=11) @@
146
                $deliveryDurations = [];
147
148
                // 配送日数が設定されている
149
                if ($deliveryDurationFlag) {
150
                    $period = new \DatePeriod(
151
                        new \DateTime($minDate.' day'),
152
                        new \DateInterval('P1D'),
153
                        new \DateTime($minDate + $this->eccubeConfig['eccube_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

src/Eccube/Service/ShoppingService.php 1 location

@@ 1001-1011 (lines=11) @@
998
        $deliveryDurations = [];
999
1000
        // 配送日数が設定されている
1001
        if ($deliveryDurationFlag) {
1002
            $period = new \DatePeriod(
1003
                new \DateTime($minDate.' day'),
1004
                new \DateInterval('P1D'),
1005
                new \DateTime($minDate + $this->eccubeConfig['eccube_deliv_date_end_max'].' day')
1006
            );
1007
1008
            foreach ($period as $day) {
1009
                $deliveryDurations[$day->format('Y/m/d')] = $day->format('Y/m/d');
1010
            }
1011
        }
1012
1013
        return $deliveryDurations;
1014
    }