From a5ba84d5247ac6bc230685cdc7663243d44d1d1f Mon Sep 17 00:00:00 2001 From: "Andrew M." Date: Sun, 8 Dec 2013 16:15:49 +0200 Subject: [PATCH] Move curly bracket to be on the same line This makes PSR coding standard to pass and also gives more consistency between examples (as curly brackets are on the same line). --- book/testing.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'); });