Skip to content

Commit 43390e8

Browse files
committed
Fix sonarlint
1 parent d5d7a1d commit 43390e8

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

SalesOrdersDataExporter/Model/Indexer/DateTimeRangeOrderIdsProvider.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ class DateTimeRangeOrderIdsProvider implements EntityIdsProviderInterface
2525
private DateTime $from;
2626
private DateTime $to;
2727

28-
public function __construct(ResourceConnection $resourceConnection, BatchIteratorFactory $batchIteratorFactory, DateTime $from, DateTime $to)
29-
{
28+
public function __construct(
29+
ResourceConnection $resourceConnection,
30+
BatchIteratorFactory $batchIteratorFactory,
31+
DateTime $from,
32+
DateTime $to
33+
) {
3034
$this->from = $from;
3135
$this->to = $to;
3236
$this->resourceConnection = $resourceConnection;
@@ -57,8 +61,13 @@ public function getAffectedIds(FeedIndexMetadata $metadata, array $ids): array
5761
return $ids;
5862
}
5963

60-
private function findOrders(DateTime $from, DateTime $to, string $fieldName, string $tableName, int $batchSize = 100): Generator
61-
{
64+
private function findOrders(
65+
DateTime $from,
66+
DateTime $to,
67+
string $fieldName,
68+
string $tableName,
69+
int $batchSize = 100
70+
): Generator {
6271
$connection = $this->resourceConnection->getConnection();
6372
$select = $connection->select()
6473
->from(

0 commit comments

Comments
 (0)