Skip to content

Commit 511dcd7

Browse files
committed
style: fixed code style
1 parent 8eb38af commit 511dcd7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerAnySelectorTextContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function matches($crawler): bool
4949

5050
$this->hasNode = true;
5151

52-
$nodes = $crawler->each(fn(Crawler $node) => $node->text(null, true));
52+
$nodes = $crawler->each(fn (Crawler $node) => $node->text(null, true));
5353
$matches = array_filter($nodes, function (string $node): bool {
5454
return str_contains($node, $this->expectedText);
5555
});

src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerAnySelectorTextSame.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\DomCrawler\Test\Constraint;
1313

1414
use PHPUnit\Framework\Constraint\Constraint;
15-
1615
use Symfony\Component\DomCrawler\Crawler;
1716

1817
final class CrawlerAnySelectorTextSame extends Constraint
@@ -41,7 +40,7 @@ protected function matches($crawler): bool
4140
return false;
4241
}
4342

44-
$nodes = $crawler->each(fn(Crawler $node) => trim($node->text(null, true)));
43+
$nodes = $crawler->each(fn (Crawler $node) => trim($node->text(null, true)));
4544

4645
return \in_array($this->expectedText, $nodes, true);
4746
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy