Skip to content

Commit 01d6c47

Browse files
mcop1github-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent 1f656d0 commit 01d6c47

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/Entity/IndexQueue.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ class IndexQueue
3030

3131
#[ORM\Id]
3232
#[ORM\Column(type: 'bigint')]
33-
3433
private int $id;
35-
34+
3635
#[ORM\Column(type: 'integer', options: ['unsigned' => true])]
3736
private int $elementId;
38-
37+
3938
#[ORM\Column(type: 'string', length: 20)]
4039
private string $elementType;
4140

src/Repository/IndexQueueRepository.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ public function getUnhandledIndexQueueEntries(
123123
public function deleteQueueEntries(array $entries): void
124124
{
125125
$chunks = array_chunk($entries, self::BATCH_SIZE);
126-
foreach($chunks as $chunk) {
126+
foreach ($chunks as $chunk) {
127127
$condition = [];
128128

129129
/** @var IndexQueue $entry */
130130
foreach ($chunk as $entry) {
131131
$condition[] = sprintf(
132-
'(%s, %s)',
132+
'(%s, %s)',
133133
$this->connection->quote((string)$entry->getId()),
134134
$this->connection->quote($entry->getOperationTime())
135135
);
136136
}
137137

138-
$condition = sprintf("(%s, %s) IN (%s) ORDER BY %s ASC LIMIT %s",
138+
$condition = sprintf('(%s, %s) IN (%s) ORDER BY %s ASC LIMIT %s',
139139
$this->connection->quoteIdentifier('id'),
140140
$this->connection->quoteIdentifier('operationTime'),
141141
implode(',', $condition),
@@ -145,7 +145,7 @@ public function deleteQueueEntries(array $entries): void
145145

146146
//delete handled entry from queue table
147147
$this->connection->executeQuery('DELETE FROM ' . IndexQueue::TABLE . ' WHERE ' . $condition);
148-
}
148+
}
149149
}
150150

151151
/**

0 commit comments

Comments
 (0)