Code Duplication    Length = 16-23 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 830-852 (lines=23) @@
827
    }
828
}
829
830
class Horizon_Local extends Local_Plugin
831
{
832
    public function __construct(AcceptanceTester $I)
833
    {
834
        parent::__construct($I, 'Horizon');
835
        $this->tables[] = 'dtb_dash';
836
        $this->columns[] = 'dtb_cart.is_horizon';
837
        $this->columns[] = 'dtb_cart.dash_id';
838
        $this->traits['\Plugin\Horizon\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
839
    }
840
841
    public function アップデート()
842
    {
843
        // アップデートで新たしいカラムが追加される
844
        $this->columns[] = 'dtb_dash.new_column';
845
        return parent::アップデート();
846
    }
847
848
    public static function start(AcceptanceTester $I)
849
    {
850
        return new self($I);
851
    }
852
}
853
854
class Horizon_Store extends Store_Plugin
855
{
@@ 945-960 (lines=16) @@
942
    }
943
}
944
945
class Boomerang_Store extends Store_Plugin
946
{
947
    public function __construct(AcceptanceTester $I)
948
    {
949
        parent::__construct($I, 'Boomerang');
950
        $this->tables[] = 'dtb_bar';
951
        $this->columns[] = 'dtb_cart.is_boomerang';
952
        $this->columns[] = 'dtb_cart.bar_id';
953
        $this->traits['\Plugin\Boomerang\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
954
    }
955
956
    public static function start(AcceptanceTester $I)
957
    {
958
        return new self($I);
959
    }
960
}
961
962
class Boomerang_Local extends Local_Plugin
963
{