Skip to content

Commit 730e90b

Browse files
committed
[rector] Rector fixes
1 parent e973d99 commit 730e90b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/CustomerExtractor.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
use Kiboko\Contract\Pipeline\ExtractorInterface;
1212
use Psr\Http\Client\NetworkExceptionInterface;
1313

14-
final class CustomerExtractor implements ExtractorInterface
14+
final readonly class CustomerExtractor implements ExtractorInterface
1515
{
1616
public function __construct(
17-
private readonly \Psr\Log\LoggerInterface $logger,
18-
private readonly \Kiboko\Magento\V2_1\Client|\Kiboko\Magento\V2_2\Client|\Kiboko\Magento\V2_3\Client|\Kiboko\Magento\V2_4\Client $client,
19-
private readonly QueryParameters $queryParameters,
20-
private readonly int $pageSize = 100,
17+
private \Psr\Log\LoggerInterface $logger,
18+
private \Kiboko\Magento\V2_1\Client|\Kiboko\Magento\V2_2\Client|\Kiboko\Magento\V2_3\Client|\Kiboko\Magento\V2_4\Client $client,
19+
private QueryParameters $queryParameters,
20+
private int $pageSize = 100,
2121
) {
2222
}
2323

@@ -49,6 +49,8 @@ private function applyPagination(array $parameters, int $currentPage, int $pageS
4949

5050
public function extract(): iterable
5151
{
52+
$currentPage = null;
53+
$pageCount = null;
5254
try {
5355
foreach ($this->queryParameters->walkVariants([]) as $parameters) {
5456
$currentPage = 1;

src/Filter/ArrayFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct(
1010
public string $field,
1111
public string $conditionType,
1212
public array $value,
13-
private int $threshold = 200
13+
private readonly int $threshold = 200
1414
) {}
1515

1616
/**

src/FilterGroup.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public function withFilter(FilterInterface $filter): self
1919
}
2020

2121
/**
22-
* @param array $parameters
23-
* @param int $groupIndex
2422
* @return \Traversable<int, array>
2523
*/
2624
public function walkFilters(array $parameters, int $groupIndex = 0): \Traversable

0 commit comments

Comments
 (0)