Code Duplication    Length = 3-3 lines in 2 locations

Filter/Widget/Search/MatchSearch.php 2 locations

@@ 58-60 (lines=3) @@
55
     */
56
    private function buildMatchPart($field, FilterState $state)
57
    {
58
        if (strpos($field, '+') !== false) {
59
            list ($path, $field) = explode('+', $field);
60
        }
61
62
        if (strpos($field, '^') !== false) {
63
            list ($field, $boost) = explode('^', $field);
@@ 62-64 (lines=3) @@
59
            list ($path, $field) = explode('+', $field);
60
        }
61
62
        if (strpos($field, '^') !== false) {
63
            list ($field, $boost) = explode('^', $field);
64
        }
65
66
        $query =  new MatchQuery($field, $state->getValue(), $this->parameters);
67
        !isset($boost) ? : $query->addParameter('boost', $boost);