Code Duplication    Length = 16-23 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 842-864 (lines=23) @@
839
    }
840
}
841
842
class Horizon_Local extends Local_Plugin
843
{
844
    public function __construct(AcceptanceTester $I)
845
    {
846
        parent::__construct($I, 'Horizon');
847
        $this->tables[] = 'dtb_dash';
848
        $this->columns[] = 'dtb_cart.is_horizon';
849
        $this->columns[] = 'dtb_cart.dash_id';
850
        $this->traits['\Plugin\Horizon\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
851
    }
852
853
    public function アップデート()
854
    {
855
        // アップデートで新たしいカラムが追加される
856
        $this->columns[] = 'dtb_dash.new_column';
857
        return parent::アップデート();
858
    }
859
860
    public static function start(AcceptanceTester $I)
861
    {
862
        return new self($I);
863
    }
864
}
865
866
class Horizon_Store extends Store_Plugin
867
{
@@ 957-972 (lines=16) @@
954
    }
955
}
956
957
class Boomerang_Store extends Store_Plugin
958
{
959
    public function __construct(AcceptanceTester $I)
960
    {
961
        parent::__construct($I, 'Boomerang');
962
        $this->tables[] = 'dtb_bar';
963
        $this->columns[] = 'dtb_cart.is_boomerang';
964
        $this->columns[] = 'dtb_cart.bar_id';
965
        $this->traits['\Plugin\Boomerang\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
966
    }
967
968
    public static function start(AcceptanceTester $I)
969
    {
970
        return new self($I);
971
    }
972
}
973
974
class Boomerang_Local extends Local_Plugin
975
{