original_string: public function getCurrentPageLastItem()
      {
          $first = $this->getCurrentPageFirstItem();
  
          if (empty($first)) {
              return 0;
          }
  
          $last = $first + $this->limit - 1;
  
          if ($last > $this->total) {
              return $this->total;
          }
  
          return $last;
      }
code: public function getCurrentPageLastItem()
      {
          $first = $this->getCurrentPageFirstItem();
  
          if (empty($first)) {
              return 0;
          }
  
          $last = $first + $this->limit - 1;
  
          if ($last > $this->total) {
              return $this->total;
          }
  
          return $last;
      }
code_tokens: public function getCurrentPageLastItem ( ) { $ first = $ this -> getCurrentPageFirstItem ( ) ; if ( empty ( $ first ) ) { return 0 ; } $ last = $ first + $ this -> limit - 1 ; if ( $ last > $ this -> total ) { return $ this -> total ; } return $ last ; }
docstring: Returns the last item for the current page
  @return integer
docstring_tokens: Returns the last item for the current page