Code Duplication    Length = 8-8 lines in 2 locations

src/PSolr/Response/Spellcheck.php 1 location

@@ 68-75 (lines=8) @@
65
    /**
66
     * @return string
67
     */
68
    public function collation()
69
    {
70
        if (isset($this['spellcheck']['suggestions']['collation'])) {
71
            return $this['spellcheck']['suggestions']['collation'];
72
        } else {
73
            return '';
74
        }
75
    }
76
77
    /**
78
     * Returns the "collation", or recommendation.

src/PSolr/Response/Suggestions.php 1 location

@@ 68-75 (lines=8) @@
65
    /**
66
     * @return string
67
     */
68
    public function collation()
69
    {
70
        if (isset($this['spellcheck']['suggestions']['collation'])) {
71
            return $this['spellcheck']['suggestions']['collation'];
72
        } else {
73
            return '';
74
        }
75
    }
76
77
    /**
78
     * @return string