Code Duplication    Length = 10-10 lines in 2 locations

src/Search/Query/Joining/HasChildQuery.php 1 location

@@ 67-76 (lines=10) @@
64
    /**
65
     * @inheritdoc
66
     */
67
    protected function getValidScoreModes()
68
    {
69
        return [
70
            self::SCORE_MODE_AVG,
71
            self::SCORE_MODE_SUM,
72
            self::SCORE_MODE_MIN,
73
            self::SCORE_MODE_MAX,
74
            self::SCORE_MODE_NONE,
75
        ];
76
    }
77
78
    /**
79
     * @param string $type

src/Search/Query/Joining/NestedQuery.php 1 location

@@ 47-56 (lines=10) @@
44
    /**
45
     * @inheritdoc
46
     */
47
    protected function getValidScoreModes()
48
    {
49
        return [
50
            self::SCORE_MODE_AVG,
51
            self::SCORE_MODE_SUM,
52
            self::SCORE_MODE_MIN,
53
            self::SCORE_MODE_MAX,
54
            self::SCORE_MODE_NONE,
55
        ];
56
    }
57
58
59
    /**