nextAll() public méthode

Returns the next siblings nodes of the current selection.
public nextAll ( ) : Crawler
Résultat Crawler A Crawler instance with the next sibling nodes
 /**
  * @param Crawler $node
  *
  * @return array
  */
 protected function parse(Crawler $node)
 {
     $title = explode(' - ', $node->html());
     // Get the changes
     $nodes = $node->nextAll()->filterXPath('h3[preceding-sibling::h2[1][.="' . $node->html() . '"]]');
     $changes = (new ChangesRetriever($nodes))->retrieve();
     return ['name' => $title[0], 'date' => isset($title[1]) ? $title[1] : null, 'changes' => $changes];
 }
 /**
  * @param Crawler $node
  *
  * @return array
  */
 protected function parse(Crawler $node)
 {
     $key = strtolower($node->html());
     if (!$key) {
         return;
     }
     $lines = (new LineRetriever($node->nextAll()->first()->filter('li')))->retrieve();
     return ['section' => $key, 'changes' => $lines];
 }