original_string: protected function setPaginate()
      {
          $paginate = $this->findQueryByMethod('paginate');
  
          $this->queries = $this->queries->reject(function ($query) {
              return $query['method'] == 'paginate';
          });
  
          if (!$this->usePaginate) {
              $query = [
                  'method'    => 'get',
                  'arguments' => [],
              ];
          } else {
              $query = [
                  'method'    => 'paginate',
                  'arguments' => $this->resolvePerPage($paginate),
              ];
          }
  
          $this->queries->push($query);
      }
code: protected function setPaginate()
      {
          $paginate = $this->findQueryByMethod('paginate');
  
          $this->queries = $this->queries->reject(function ($query) {
              return $query['method'] == 'paginate';
          });
  
          if (!$this->usePaginate) {
              $query = [
                  'method'    => 'get',
                  'arguments' => [],
              ];
          } else {
              $query = [
                  'method'    => 'paginate',
                  'arguments' => $this->resolvePerPage($paginate),
              ];
          }
  
          $this->queries->push($query);
      }
code_tokens: protected function setPaginate ( ) { $ paginate = $ this -> findQueryByMethod ( 'paginate' ) ; $ this -> queries = $ this -> queries -> reject ( function ( $ query ) { return $ query [ 'method' ] == 'paginate' ; } ) ; if ( ! $ this -> usePaginate ) { $ query = [ 'method' => 'get' , 'arguments' => [ ] , ] ; } else { $ query = [ 'method' => 'paginate' , 'arguments' => $ this -> resolvePerPage ( $ paginate ) , ] ; } $ this -> queries -> push ( $ query ) ; }
docstring: Set the grid paginate.
  
  @return void
docstring_tokens: Set the grid paginate .