Code Duplication    Length = 11-11 lines in 3 locations

codeception/acceptance/EF03OrderCest.php 3 locations

@@ 460-470 (lines=11) @@
457
            $compared = strnatcmp($customer->getName02(), $nameMei);
458
        }
459
        // 上下それぞれで名前、商品個数を設定
460
        if ($compared < 0) {
461
            $quantity1 = $shipping1_quantity;
462
            $quantity2 = $shipping2_quantity;
463
            $name1 = $customer->getName01();
464
            $name2 = $nameSei;
465
        } else {
466
            $quantity1 = $shipping2_quantity;
467
            $quantity2 = $shipping1_quantity;
468
            $name1 = $nameSei;
469
            $name2 = $customer->getName01();
470
        }
471
472
        // 複数配送設定ができていることを確認
473
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');
@@ 660-670 (lines=11) @@
657
            $compared = strnatcmp($customer->getName02(), $nameMei);
658
        }
659
        // 上下それぞれで名前、商品個数を設定
660
        if ($compared < 0) {
661
            $quantity1 = $shipping1_quantity;
662
            $quantity2 = $shipping2_quantity;
663
            $name1 = $customer->getName01();
664
            $name2 = $nameSei;
665
        } else {
666
            $quantity1 = $shipping2_quantity;
667
            $quantity2 = $shipping1_quantity;
668
            $name1 = $nameSei;
669
            $name2 = $customer->getName01();
670
        }
671
672
        // 複数配送設定ができていることを確認
673
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');
@@ 817-827 (lines=11) @@
814
            $compared = strnatcmp($customer->getName02(), $nameMei);
815
        }
816
        // 上下それぞれで名前、商品個数を設定
817
        if ($compared < 0) {
818
            $quantity1 = $shipping1_quantity;
819
            $quantity2 = $shipping2_quantity;
820
            $name1 = $customer->getName01();
821
            $name2 = $nameSei;
822
        } else {
823
            $quantity1 = $shipping2_quantity;
824
            $quantity2 = $shipping1_quantity;
825
            $name1 = $nameSei;
826
            $name2 = $customer->getName01();
827
        }
828
829
        // 複数配送設定ができていることを確認
830
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');