Code Duplication    Length = 11-11 lines in 3 locations

codeception/acceptance/EF03OrderCest.php 3 locations

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