Code Duplication    Length = 8-8 lines in 2 locations

src/Paginator/RawPaginatorAdapter.php 1 location

@@ 104-111 (lines=8) @@
101
    /**
102
     * {@inheritdoc}
103
     */
104
    public function getAggregations()
105
    {
106
        if (!isset($this->aggregations)) {
107
            $this->aggregations = $this->searchable->search($this->query)->getAggregations();
108
        }
109
110
        return $this->aggregations;
111
    }
112
113
    /**
114
     * {@inheritdoc}

src/Paginator/RawScrollPaginatorAdapter.php 1 location

@@ 110-117 (lines=8) @@
107
    /**
108
     * {@inheritdoc}
109
     */
110
    public function getAggregations()
111
    {
112
        if (!isset($this->aggregations)) {
113
            $this->aggregations = $this->searchable->search($this->query)->getAggregations();
114
        }
115
116
        return $this->aggregations;
117
    }
118
119
    /**
120
     * {@inheritdoc}