Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 141-151 (lines=11) @@
138
                $deliveryDates = array();
139
140
                // 配送日数が設定されている
141
                if ($deliveryDateFlag) {
142
                    $period = new \DatePeriod (
143
                        new \DateTime($minDate.' day'),
144
                        new \DateInterval('P1D'),
145
                        new \DateTime($minDate + $this->config['deliv_date_end_max'].' day')
146
                    );
147
148
                    foreach ($period as $day) {
149
                        $deliveryDates[$day->format('Y/m/d')] = $day->format('Y/m/d');
150
                    }
151
                }
152
153
                $form = $event->getForm();
154
                $form

src/Eccube/Service/ShoppingService.php 1 location

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