original_string: public function collapse()
      {
          $results = [];
  
          foreach ($this->array as $item) {
              if (!is_array($item)) {
                  continue;
              }
  
              $results = array_merge($results, $item);
          }
  
          return new static($results);
      }
code: public function collapse()
      {
          $results = [];
  
          foreach ($this->array as $item) {
              if (!is_array($item)) {
                  continue;
              }
  
              $results = array_merge($results, $item);
          }
  
          return new static($results);
      }
code_tokens: public function collapse ( ) { $ results = [ ] ; foreach ( $ this -> array as $ item ) { if ( ! is_array ( $ item ) ) { continue ; } $ results = array_merge ( $ results , $ item ) ; } return new static ( $ results ) ; }
docstring: Collapse an array of arrays into a single array returning a new instance of `ArrayObject`
  with the collapsed items.
  
  @return static
docstring_tokens: Collapse an array of arrays into a single array returning a new instance of ArrayObject with the collapsed items .