Code Duplication    Length = 11-11 lines in 2 locations

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

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

src/Eccube/Service/ShoppingService.php 1 location

@@ 1117-1127 (lines=11) @@
1114
        $deliveryDates = array();
1115
1116
        // 配送日数が設定されている
1117
        if ($deliveryDateFlag) {
1118
            $period = new \DatePeriod (
1119
                new \DateTime($minDate.' day'),
1120
                new \DateInterval('P1D'),
1121
                new \DateTime($minDate + $this->appConfig['deliv_date_end_max'].' day')
1122
            );
1123
1124
            foreach ($period as $day) {
1125
                $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d');
1126
            }
1127
        }
1128
1129
        return $deliveryDates;
1130