Code Duplication    Length = 11-11 lines in 3 locations

codeception/acceptance/EF03OrderCest.php 3 locations

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