Skip to content

Commit b81b550

Browse files
committed
catalog:images:resize fails to process all images -> Possible underlying Magento/Framework/DB/Query/Generator issue - fix code style;
1 parent 76bd089 commit b81b550

File tree

1 file changed

+3
-4
lines changed
  • app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product

1 file changed

+3
-4
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/ImageTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ protected function getFetchResultCallbackForBatches(int $imagesCount, int $batch
187187
protected function getBatchIteratorCallback(
188188
\PHPUnit_Framework_MockObject_MockObject $selectMock,
189189
int $batchCount
190-
): \Closure
191-
{
192-
$getBatchIteratorCallback = function () use ($batchCount, $selectMock): array {
190+
): \Closure {
191+
$iteratorCallback = function () use ($batchCount, $selectMock): array {
193192
$result = [];
194193
$count = $batchCount;
195194
while ($count) {
@@ -200,7 +199,7 @@ protected function getBatchIteratorCallback(
200199
return $result;
201200
};
202201

203-
return $getBatchIteratorCallback;
202+
return $iteratorCallback;
204203
}
205204

206205
/**

0 commit comments

Comments
 (0)