Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita5ba84d

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 parent0bcc16b commita5ba84d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎book/testing.rst

Lines changed: 1 addition & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp