Code Duplication    Length = 11-11 lines in 3 locations

codeception/acceptance/EF03OrderCest.php 3 locations

@@ 468-478 (lines=11) @@
465
            $compared = strnatcmp($customer->getName02(), $nameMei);
466
        }
467
        // 上下それぞれで名前、商品個数を設定
468
        if($compared < 0) {
469
            $quantity1 = $shipping1_quantity;
470
            $quantity2 = $shipping2_quantity;
471
            $name1 = $customer->getName01();
472
            $name2 = $nameSei;
473
        } else {
474
            $quantity1 = $shipping2_quantity;
475
            $quantity2 = $shipping1_quantity;
476
            $name1 = $nameSei;
477
            $name2 = $customer->getName01();
478
        }
479
480
        // 複数配送設定ができていることを確認
481
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');
@@ 673-683 (lines=11) @@
670
            $compared = strnatcmp($customer->getName02(), $nameMei);
671
        }
672
        // 上下それぞれで名前、商品個数を設定
673
        if($compared < 0) {
674
            $quantity1 = $shipping1_quantity;
675
            $quantity2 = $shipping2_quantity;
676
            $name1 = $customer->getName01();
677
            $name2 = $nameSei;
678
        } else {
679
            $quantity1 = $shipping2_quantity;
680
            $quantity2 = $shipping1_quantity;
681
            $name1 = $nameSei;
682
            $name2 = $customer->getName01();
683
        }
684
685
        // 複数配送設定ができていることを確認
686
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');
@@ 833-843 (lines=11) @@
830
            $compared = strnatcmp($customer->getName02(), $nameMei);
831
        }
832
        // 上下それぞれで名前、商品個数を設定
833
        if($compared < 0) {
834
            $quantity1 = $shipping1_quantity;
835
            $quantity2 = $shipping2_quantity;
836
            $name1 = $customer->getName01();
837
            $name2 = $nameSei;
838
        } else {
839
            $quantity1 = $shipping2_quantity;
840
            $quantity2 = $shipping1_quantity;
841
            $name1 = $nameSei;
842
            $name2 = $customer->getName01();
843
        }
844
845
        // 複数配送設定ができていることを確認
846
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');