Skip to content

Commit a5ba84d

Browse files
committed
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).
1 parent 0bcc16b commit a5ba84d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

book/testing.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,7 @@ The Crawler can extract information from the nodes::
560560
$info = $crawler->extract(array('_text', 'href'));
561561

562562
// Executes a lambda for each node and return an array of results
563-
$data = $crawler->each(function ($node, $i)
564-
{
563+
$data = $crawler->each(function ($node, $i) {
565564
return $node->attr('href');
566565
});
567566

0 commit comments

Comments
 (0)