Code Duplication    Length = 8-8 lines in 2 locations

src/Paginator/RawPaginatorAdapter.php 1 location

@@ 128-135 (lines=8) @@
125
    /**
126
     * @return float
127
     */
128
    public function getMaxScore()
129
    {
130
        if (!isset($this->maxScore)) {
131
            $this->maxScore = $this->searchable->search($this->query)->getMaxScore();
132
        }
133
134
        return $this->maxScore;
135
    }
136
137
    /**
138
     * Returns the Query.

src/Paginator/RawScrollPaginatorAdapter.php 1 location

@@ 134-141 (lines=8) @@
131
    /**
132
     * @return float
133
     */
134
    public function getMaxScore()
135
    {
136
        if (!isset($this->maxScore)) {
137
            $this->maxScore = $this->searchable->search($this->query)->getMaxScore();
138
        }
139
140
        return $this->maxScore;
141
    }
142
143
    /**
144
     * Returns the Query.