diff --git a/book/testing.rst b/book/testing.rst index 8b3319f488e..acee636bed1 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -560,8 +560,7 @@ The Crawler can extract information from the nodes:: $info = $crawler->extract(array('_text', 'href')); // Executes a lambda for each node and return an array of results - $data = $crawler->each(function ($node, $i) - { + $data = $crawler->each(function ($node, $i) { return $node->attr('href'); });