Code Duplication    Length = 10-10 lines in 4 locations

eZ/Publish/Core/Search/Elasticsearch/Content/FieldValueMapper/MultipleBooleanMapper.php 1 location

@@ 41-50 (lines=10) @@
38
     *
39
     * @return mixed
40
     */
41
    public function map(Field $field)
42
    {
43
        $values = array();
44
45
        foreach ((array)$field->value as $value) {
46
            $values[] = (boolean)$value;
47
        }
48
49
        return $values;
50
    }
51
}
52

eZ/Publish/Core/Search/Elasticsearch/Content/FieldValueMapper/MultipleIdentifierMapper.php 1 location

@@ 40-49 (lines=10) @@
37
     *
38
     * @return mixed
39
     */
40
    public function map(Field $field)
41
    {
42
        $values = array();
43
44
        foreach ($field->value as $value) {
45
            $values[] = $this->convert($value);
46
        }
47
48
        return $values;
49
    }
50
}
51

eZ/Publish/Core/Search/Elasticsearch/Content/FieldValueMapper/MultipleIntegerMapper.php 1 location

@@ 40-49 (lines=10) @@
37
     *
38
     * @return array
39
     */
40
    public function map(Field $field)
41
    {
42
        $values = array();
43
44
        foreach ((array)$field->value as $value) {
45
            $values[] = $this->convert($value);
46
        }
47
48
        return $values;
49
    }
50
}
51

eZ/Publish/Core/Search/Elasticsearch/Content/FieldValueMapper/MultipleStringMapper.php 1 location

@@ 42-51 (lines=10) @@
39
     *
40
     * @return array
41
     */
42
    public function map(Field $field)
43
    {
44
        $values = array();
45
46
        foreach ((array)$field->value as $value) {
47
            $values[] = $this->convert($value);
48
        }
49
50
        return $values;
51
    }
52
}
53