Code Duplication    Length = 16-23 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

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