Code Duplication    Length = 16-23 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

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