original_string: protected function updateNumPages()
      {
          $this->pages = ($this->limit == 0) ? 0 : (int) ceil($this->total / $this->limit);
          return $this;
      }
code: protected function updateNumPages()
      {
          $this->pages = ($this->limit == 0) ? 0 : (int) ceil($this->total / $this->limit);
          return $this;
      }
code_tokens: protected function updateNumPages ( ) { $ this -> pages = ( $ this -> limit == 0 ) ? 0 : ( int ) ceil ( $ this -> total / $ this -> limit ) ; return $ this ; }
docstring: Updates the current number of pages
  @return $this
docstring_tokens: Updates the current number of pages