original_string: public function batch($size)
      {
          $chunks = array_chunk($this->items, $size, true);
  
          $list = [];
          foreach ($chunks as $chunk) {
              $list[] = new static($chunk, $this->params, $this->pages);
          }
  
          return $list;
      }
code: public function batch($size)
      {
          $chunks = array_chunk($this->items, $size, true);
  
          $list = [];
          foreach ($chunks as $chunk) {
              $list[] = new static($chunk, $this->params, $this->pages);
          }
  
          return $list;
      }
code_tokens: public function batch ( $ size ) { $ chunks = array_chunk ( $ this -> items , $ size , true ) ; $ list = [ ] ; foreach ( $ chunks as $ chunk ) { $ list [ ] = new static ( $ chunk , $ this -> params , $ this -> pages ) ; } return $ list ; }
docstring: Split collection into array of smaller collections.
  
  @param int $size
  @return array|Collection[]
docstring_tokens: Split collection into array of smaller collections .