Skip to content

Commit b302862

Browse files
committed
Run cs-fixer
1 parent fa75a5e commit b302862

13 files changed

Lines changed: 22 additions & 4 deletions

File tree

.php-cs-fixer.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414

1515
$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php80($header), [
1616
'php_unit_test_class_requires_covers' => false,
17+
'class_attributes_separation' => [
18+
'elements' => [
19+
'const' => 'one',
20+
'method' => 'one',
21+
'property' => 'one',
22+
'trait_import' => 'none',
23+
],
24+
],
1725
'error_suppression' => [
1826
'noise_remaining_usages' => false,
1927
],

src/Downloader/Middleware/DownloaderMiddlewareAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
final class DownloaderMiddlewareAdapter implements DownloaderMiddlewareInterface
2424
{
2525
public function __construct(
26-
private RequestMiddlewareInterface | ResponseMiddlewareInterface $middleware,
26+
private RequestMiddlewareInterface|ResponseMiddlewareInterface $middleware,
2727
) {
2828
}
2929

src/Extensions/StatsCollectorExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
final class StatsCollectorExtension implements ExtensionInterface
2828
{
2929
use Configurable;
30+
3031
private ?DateTimeImmutable $startTime = null;
3132

3233
/**

src/Http/Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ final class Request implements DroppableInterface
3030
* @var Closure(Response): Generator<ParseResult>
3131
*/
3232
private Closure $parseCallback;
33+
3334
private GuzzleRequest $guzzleRequest;
3435

3536
/**

src/Http/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ final class Response implements DroppableInterface
2626
{
2727
use HasMetaData;
2828
use Droppable;
29+
2930
private Crawler $crawler;
3031

3132
public function __construct(private ResponseInterface $response, private Request $request)

src/ItemPipeline/Processors/FakeProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
final class FakeProcessor implements ItemProcessorInterface
2121
{
2222
use Configurable;
23+
2324
private array $calls = [];
2425

2526
public function processItem(ItemInterface $item): ItemInterface

src/ResponseProcessing/Handlers/FakeHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
final class FakeHandler extends Handler implements MiddlewareInterface
2424
{
2525
private array $responseCalls = [];
26+
2627
private array $itemCalls = [];
28+
2729
private array $requestCalls = [];
2830

2931
/**

src/ResponseProcessing/Handlers/HandlerAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
final class HandlerAdapter implements MiddlewareInterface
2222
{
2323
public function __construct(
24-
private RequestHandlerInterface | ItemHandlerInterface | ResponseHandlerInterface $handler,
24+
private RequestHandlerInterface|ItemHandlerInterface|ResponseHandlerInterface $handler,
2525
) {
2626
}
2727

src/ResponseProcessing/ParseResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
final class ParseResult
2424
{
25-
private function __construct(private Request | ItemInterface $value)
25+
private function __construct(private Request|ItemInterface $value)
2626
{
2727
}
2828

src/Spider/Configuration/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
final class Configuration
2222
{
2323
/**
24-
* @param string[] $startUrls
24+
* @param string[] $startUrls
2525
* @param class-string<DownloaderMiddlewareInterface>[] $downloaderMiddleware
2626
* @param class-string<ItemProcessorInterface>[] $itemProcessors
2727
* @param class-string<MiddlewareInterface>[] $spiderMiddleware

0 commit comments

Comments
 (0)