Code Duplication    Length = 16-16 lines in 2 locations

src/widgets/ip/BackIpCombo.php 1 location

@@ 18-33 (lines=16) @@
15
/**
16
 * Class BackIpCombo.
17
 */
18
class BackIpCombo extends HdomainIpCombo
19
{
20
    /** {@inheritdoc} */
21
    public $type = 'hosting/hdomain-backend-ip';
22
23
    /** {@inheritdoc} */
24
    public $name = 'hdomain-backend-ip';
25
26
    /** {@inheritdoc} */
27
    public function getFilter()
28
    {
29
        return ArrayHelper::merge(parent::getFilter(), [
30
            'soft_in'             => ['format' => ['apache', 'apache2']],
31
        ]);
32
    }
33
}
34

src/widgets/ip/FrontIpCombo.php 1 location

@@ 18-33 (lines=16) @@
15
/**
16
 * Class FrontIpCombo.
17
 */
18
class FrontIpCombo extends HdomainIpCombo
19
{
20
    /** {@inheritdoc} */
21
    public $type = 'hosting/hdomain-frontend-ip';
22
23
    /** {@inheritdoc} */
24
    public $name = 'hdomain-frontend-ip';
25
26
    /** {@inheritdoc} */
27
    public function getFilter()
28
    {
29
        return ArrayHelper::merge(parent::getFilter(), [
30
            'soft_in'             => ['format' => ['nginx']],
31
        ]);
32
    }
33
}
34