Code Duplication    Length = 21-21 lines in 2 locations

src/models/AddressSearch.php 1 location

@@ 22-42 (lines=21) @@
19
use hipanel\base\SearchModelTrait;
20
use hipanel\helpers\ArrayHelper;
21
22
class AddressSearch extends Address
23
{
24
    use SearchModelTrait {
25
        searchAttributes as defaultSearchAttributes;
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function searchAttributes()
32
    {
33
        return ArrayHelper::merge($this->defaultSearchAttributes(), [
34
            'is_ip',
35
            'ip_cntd',
36
            'ip_cntd_eql',
37
            'ip_cnts',
38
            'ip_cnts_eql',
39
            'ip_cnts_cntd',
40
        ]);
41
    }
42
}
43

src/models/PrefixSearch.php 1 location

@@ 8-28 (lines=21) @@
5
use hipanel\base\SearchModelTrait;
6
use hipanel\helpers\ArrayHelper;
7
8
class PrefixSearch extends Prefix
9
{
10
    use SearchModelTrait {
11
        searchAttributes as defaultSearchAttributes;
12
    }
13
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function searchAttributes()
18
    {
19
        return ArrayHelper::merge($this->defaultSearchAttributes(), [
20
            'is_ip',
21
            'ip_cntd',
22
            'ip_cntd_eql',
23
            'ip_cnts',
24
            'ip_cnts_eql',
25
            'ip_cnts_cntd',
26
        ]);
27
    }
28
}
29