Code Duplication    Length = 11-11 lines in 3 locations

codeception/acceptance/EF03OrderCest.php 3 locations

@@ 480-490 (lines=11) @@
477
            $compared = strnatcmp($customer->getName02(), $nameMei);
478
        }
479
        // 上下それぞれで名前、商品個数を設定
480
        if ($compared < 0) {
481
            $quantity1 = $shipping1_quantity;
482
            $quantity2 = $shipping2_quantity;
483
            $name1 = $customer->getName01();
484
            $name2 = $nameSei;
485
        } else {
486
            $quantity1 = $shipping2_quantity;
487
            $quantity2 = $shipping1_quantity;
488
            $name1 = $nameSei;
489
            $name2 = $customer->getName01();
490
        }
491
492
        // 複数配送設定ができていることを確認
493
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');
@@ 675-685 (lines=11) @@
672
            $compared = strnatcmp($customer->getName02(), $nameMei);
673
        }
674
        // 上下それぞれで名前、商品個数を設定
675
        if ($compared < 0) {
676
            $quantity1 = $shipping1_quantity;
677
            $quantity2 = $shipping2_quantity;
678
            $name1 = $customer->getName01();
679
            $name2 = $nameSei;
680
        } else {
681
            $quantity1 = $shipping2_quantity;
682
            $quantity2 = $shipping1_quantity;
683
            $name1 = $nameSei;
684
            $name2 = $customer->getName01();
685
        }
686
687
        // 複数配送設定ができていることを確認
688
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');
@@ 831-841 (lines=11) @@
828
            $compared = strnatcmp($customer->getName02(), $nameMei);
829
        }
830
        // 上下それぞれで名前、商品個数を設定
831
        if ($compared < 0) {
832
            $quantity1 = $shipping1_quantity;
833
            $quantity2 = $shipping2_quantity;
834
            $name1 = $customer->getName01();
835
            $name2 = $nameSei;
836
        } else {
837
            $quantity1 = $shipping2_quantity;
838
            $quantity2 = $shipping1_quantity;
839
            $name1 = $nameSei;
840
            $name2 = $customer->getName01();
841
        }
842
843
        // 複数配送設定ができていることを確認
844
        $I->see('お届け先(1)', '#shopping-form > div > div.ec-orderRole__detail > div.ec-orderDelivery > div:nth-child(2)');