Code Duplication    Length = 23-23 lines in 2 locations

src/Mapping/Type/BooleanType.php 1 location

@@ 13-35 (lines=23) @@
10
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\NullValueParameter;
11
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\StoreParameter;
12
13
class BooleanType extends AbstractType
14
{
15
    const ID = 'boolean';
16
    const FRIENDLY_ID = self::ID;
17
18
    public function getId(): string
19
    {
20
        return self::ID;
21
    }
22
23
    /**
24
     * @inheritDoc
25
     */
26
    public function getParameters(): array
27
    {
28
        return [
29
            DocValuesParameter::getInstance(),
30
            IndexParameter::getInstance(),
31
            NullValueParameter::getInstance(),
32
            StoreParameter::getInstance()
33
        ];
34
    }
35
}
36

src/Mapping/Type/IpType.php 1 location

@@ 13-35 (lines=23) @@
10
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\NullValueParameter;
11
use AmaTeam\ElasticSearch\Mapping\Type\Parameter\StoreParameter;
12
13
class IpType extends AbstractType
14
{
15
    const ID = 'ip';
16
    const FRIENDLY_ID = self::ID;
17
18
    public function getId(): string
19
    {
20
        return self::ID;
21
    }
22
23
    /**
24
     * @inheritDoc
25
     */
26
    public function getParameters(): array
27
    {
28
        return [
29
            DocValuesParameter::getInstance(),
30
            IndexParameter::getInstance(),
31
            NullValueParameter::getInstance(),
32
            StoreParameter::getInstance()
33
        ];
34
    }
35
}
36