Code Duplication    Length = 16-23 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 820-842 (lines=23) @@
817
    }
818
}
819
820
class Horizon_Local extends Local_Plugin
821
{
822
    public function __construct(AcceptanceTester $I)
823
    {
824
        parent::__construct($I, 'Horizon');
825
        $this->tables[] = 'dtb_dash';
826
        $this->columns[] = 'dtb_cart.is_horizon';
827
        $this->columns[] = 'dtb_cart.dash_id';
828
        $this->traits['\Plugin\Horizon\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
829
    }
830
831
    public function アップデート()
832
    {
833
        // アップデートで新たしいカラムが追加される
834
        $this->columns[] = 'dtb_dash.new_column';
835
        return parent::アップデート();
836
    }
837
838
    public static function start(AcceptanceTester $I)
839
    {
840
        return new self($I);
841
    }
842
}
843
844
class Horizon_Store extends Store_Plugin
845
{
@@ 935-950 (lines=16) @@
932
    }
933
}
934
935
class Boomerang_Store extends Store_Plugin
936
{
937
    public function __construct(AcceptanceTester $I)
938
    {
939
        parent::__construct($I, 'Boomerang');
940
        $this->tables[] = 'dtb_bar';
941
        $this->columns[] = 'dtb_cart.is_boomerang';
942
        $this->columns[] = 'dtb_cart.bar_id';
943
        $this->traits['\Plugin\Boomerang\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
944
    }
945
946
    public static function start(AcceptanceTester $I)
947
    {
948
        return new self($I);
949
    }
950
}
951
952
class Boomerang_Local extends Local_Plugin
953
{