Code Duplication    Length = 3-3 lines in 2 locations

lib/Elastica/Scroll.php 2 locations

@@ 175-177 (lines=3) @@
172
     */
173
    protected function _saveOptions()
174
    {
175
        if ($this->_search->hasOption(Search::OPTION_SCROLL)) {
176
            $this->_options[0] = $this->_search->getOption(Search::OPTION_SCROLL);
177
        }
178
179
        if ($this->_search->hasOption(Search::OPTION_SCROLL_ID)) {
180
            $this->_options[1] = $this->_search->getOption(Search::OPTION_SCROLL_ID);
@@ 179-181 (lines=3) @@
176
            $this->_options[0] = $this->_search->getOption(Search::OPTION_SCROLL);
177
        }
178
179
        if ($this->_search->hasOption(Search::OPTION_SCROLL_ID)) {
180
            $this->_options[1] = $this->_search->getOption(Search::OPTION_SCROLL_ID);
181
        }
182
    }
183
184
    /**