Code Duplication    Length = 3-3 lines in 2 locations

src/PSolr/Request/Highlight.php 1 location

@@ 19-21 (lines=3) @@
16
     */
17
    public function preMergeParams(SolrRequest $request)
18
    {
19
        if (isset($request['q']) && !isset($this['hl.q'])) {
20
            $this['hl.q'] = $request['q'];
21
        }
22
    }
23
24
    /**

src/PSolr/Request/Spellcheck.php 1 location

@@ 29-31 (lines=3) @@
26
     */
27
    public function preMergeParams(SolrRequest $request)
28
    {
29
        if (isset($request['q']) && !isset($this['hl.q'])) {
30
            $this['spellcheck.q'] = $request['q'];
31
        }
32
    }
33
34
    /**