Code Duplication    Length = 3-3 lines in 2 locations

lib/Elastica/Scroll.php 2 locations

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