original_string: public function getLimits()
      {
          $totalPages = $this->getTotalPages();
  
          $this->currentPage = ($this->currentPage > $totalPages) ? $totalPages : $this->currentPage;
  
          $dLimit = ($this->currentPage - 1) * $this->itemsPerPage;
  
          return array($dLimit, $this->itemsPerPage);
      }
code: public function getLimits()
      {
          $totalPages = $this->getTotalPages();
  
          $this->currentPage = ($this->currentPage > $totalPages) ? $totalPages : $this->currentPage;
  
          $dLimit = ($this->currentPage - 1) * $this->itemsPerPage;
  
          return array($dLimit, $this->itemsPerPage);
      }
code_tokens: public function getLimits ( ) { $ totalPages = $ this -> getTotalPages ( ) ; $ this -> currentPage = ( $ this -> currentPage > $ totalPages ) ? $ totalPages : $ this -> currentPage ; $ dLimit = ( $ this -> currentPage - 1 ) * $ this -> itemsPerPage ; return array ( $ dLimit , $ this -> itemsPerPage ) ; }
docstring: Returns the offset ant length for limiting results to current page
  @return array
docstring_tokens: Returns the offset ant length for limiting results to current page