Code Duplication    Length = 8-8 lines in 2 locations

src/widgets/combo/MailCombo.php 1 location

@@ 36-43 (lines=8) @@
33
    public $activeWhen = ['server/server'];
34
35
    /** {@inheritdoc} */
36
    public function getFilter()
37
    {
38
        return ArrayHelper::merge(parent::getFilter(), [
39
            'server' => 'server/server',
40
            'account' => 'hosting/account',
41
            'state' => ['format' => 'ok'],
42
        ]);
43
    }
44
45
    /** {@inheritdoc} */
46
    public function getPluginOptions($options = [])

src/widgets/combo/VhostCombo.php 1 location

@@ 40-47 (lines=8) @@
37
    public $activeWhen = ['server/server', 'hosting/account'];
38
39
    /** {@inheritdoc} */
40
    public function getFilter()
41
    {
42
        return ArrayHelper::merge(parent::getFilter(), [
43
            'server' => 'server/server',
44
            'account' => 'hosting/account',
45
            'state' => ['format' => 'ok'],
46
        ]);
47
    }
48
49
    /** {@inheritdoc} */
50
    public function getPluginOptions($options = [])