original_string: public function paginate()
      {
          $this->count = $this->query->get()->count();
          $this->limit = $this->limit ?: $this->count;
          $this->query->skip($this->offset)->take($this->limit);
      }
code: public function paginate()
      {
          $this->count = $this->query->get()->count();
          $this->limit = $this->limit ?: $this->count;
          $this->query->skip($this->offset)->take($this->limit);
      }
code_tokens: public function paginate ( ) { $ this -> count = $ this -> query -> get ( ) -> count ( ) ; $ this -> limit = $ this -> limit ? : $ this -> count ; $ this -> query -> skip ( $ this -> offset ) -> take ( $ this -> limit ) ; }
docstring: Will modify a query builder to get paginated data and will
  return an array with the meta data.
  
  @param Illuminate\Database\Query\Builder $query
  
  @return array
docstring_tokens: Will modify a query builder to get paginated data and will return an array with the meta data .