original_string: private function sliceResult(SolrResponse $result)
      {
          $pageSize = $this->getParamsBuilder()->getPageSize();
          $firstItemNumber = ($this->getParamsBuilder()->getCurrentPage() - 1) * $pageSize;
          $result->slice($firstItemNumber, $pageSize);
          return $result;
      }
code: private function sliceResult(SolrResponse $result)
      {
          $pageSize = $this->getParamsBuilder()->getPageSize();
          $firstItemNumber = ($this->getParamsBuilder()->getCurrentPage() - 1) * $pageSize;
          $result->slice($firstItemNumber, $pageSize);
          return $result;
      }
code_tokens: private function sliceResult ( SolrResponse $ result ) { $ pageSize = $ this -> getParamsBuilder ( ) -> getPageSize ( ) ; $ firstItemNumber = ( $ this -> getParamsBuilder ( ) -> getCurrentPage ( ) - 1 ) * $ pageSize ; $ result -> slice ( $ firstItemNumber , $ pageSize ) ; return $ result ; }
docstring: Remove all but last page from multipage result
  
  @param SolrResponse $result
  @return SolrResponse
docstring_tokens: Remove all but last page from multipage result