Code Duplication    Length = 16-23 lines in 2 locations

codeception/acceptance/EA10PluginCest.php 2 locations

@@ 785-807 (lines=23) @@
782
    }
783
}
784
785
class Horizon_Local extends Local_Plugin
786
{
787
    public function __construct(AcceptanceTester $I)
788
    {
789
        parent::__construct($I, 'Horizon');
790
        $this->tables[] = 'dtb_dash';
791
        $this->columns[] = 'dtb_cart.is_horizon';
792
        $this->columns[] = 'dtb_cart.dash_id';
793
        $this->traits['\Plugin\Horizon\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
794
    }
795
796
    public function アップデート()
797
    {
798
        // アップデートで新たしいカラムが追加される
799
        $this->columns[] = 'dtb_dash.new_column';
800
        return parent::アップデート();
801
    }
802
803
    public static function start(AcceptanceTester $I)
804
    {
805
        return new self($I);
806
    }
807
}
808
809
class Horizon_Store extends Store_Plugin
810
{
@@ 900-915 (lines=16) @@
897
    }
898
}
899
900
class Boomerang_Store extends Store_Plugin
901
{
902
    public function __construct(AcceptanceTester $I)
903
    {
904
        parent::__construct($I, 'Boomerang');
905
        $this->tables[] = 'dtb_bar';
906
        $this->columns[] = 'dtb_cart.is_boomerang';
907
        $this->columns[] = 'dtb_cart.bar_id';
908
        $this->traits['\Plugin\Boomerang\Entity\CartTrait'] = 'src/Eccube/Entity/Cart';
909
    }
910
911
    public static function start(AcceptanceTester $I)
912
    {
913
        return new self($I);
914
    }
915
}
916
917
class Boomerang_Local extends Local_Plugin
918
{