Code Duplication    Length = 24-26 lines in 2 locations

src/Eccube/Service/ShoppingService.php 2 locations

@@ 996-1021 (lines=26) @@
993
     * @return \Symfony\Component\Form\Form
994
     * @deprecated since 3.0, to be removed in 3.1
995
     */
996
    public function getShippingForm(Order $Order)
997
    {
998
        $message = $Order->getMessage();
999
1000
        $deliveries = $this->getDeliveriesOrder($Order);
1001
1002
        // 配送業者の支払方法を取得
1003
        $payments = $this->getFormPayments($deliveries, $Order);
1004
1005
        $builder = $this->app['form.factory']->createBuilder('shopping', null, array(
1006
            'payments' => $payments,
1007
            'payment' => $Order->getPayment(),
1008
            'message' => $message,
1009
        ));
1010
1011
        $builder
1012
            ->add('shippings', 'collection', array(
1013
                'type' => 'shipping_item',
1014
                'data' => $Order->getShippings(),
1015
            ));
1016
1017
        $form = $builder->getForm();
1018
1019
        return $form;
1020
1021
    }
1022
1023
    /**
1024
     * お届け先ごとにFormBuilderを作成
@@ 1029-1052 (lines=24) @@
1026
     * @param Order $Order
1027
     * @return \Symfony\Component\Form\FormBuilderInterface
1028
     */
1029
    public function getShippingFormBuilder(Order $Order)
1030
    {
1031
        $message = $Order->getMessage();
1032
1033
        $deliveries = $this->getDeliveriesOrder($Order);
1034
1035
        // 配送業者の支払方法を取得
1036
        $payments = $this->getFormPayments($deliveries, $Order);
1037
1038
        $builder = $this->app['form.factory']->createBuilder('shopping', null, array(
1039
            'payments' => $payments,
1040
            'payment' => $Order->getPayment(),
1041
            'message' => $message,
1042
        ));
1043
1044
        $builder
1045
            ->add('shippings', 'collection', array(
1046
                'type' => 'shipping_item',
1047
                'data' => $Order->getShippings(),
1048
            ));
1049
1050
        return $builder;
1051
1052
    }
1053
1054
1055
    /**