@@ -29,11 +29,11 @@ final class DataLoader implements DataLoaderInterface
29
29
/**
30
30
* Initiates a new DataLoader.
31
31
*
32
- * @param callable $batchLoadFunction The function which will be called for the batch loading.
33
- * It must accept an array of keys and returns a Promise which resolves to an array of values.
34
- * @param LoopInterface $loop
35
- * @param CacheMapInterface $cacheMap
36
- * @param null|DataLoaderOptions $options
32
+ * @param callable $batchLoadFunction The function which will be called for the batch loading.
33
+ * It must accept an array of keys and returns a Promise which resolves to an array of values.
34
+ * @param LoopInterface $loop
35
+ * @param CacheMapInterface $cacheMap
36
+ * @param null|DataLoaderOptions $options
37
37
*/
38
38
public function __construct (
39
39
callable $ batchLoadFunction ,
@@ -166,7 +166,7 @@ private function dispatchQueue(): void
166
166
/**
167
167
* Dispatches a batch of a queue. The given batch can also be the whole queue.
168
168
*
169
- * @param array $batch
169
+ * @param array $batch
170
170
*/
171
171
private function dispatchQueueBatch ($ batch )
172
172
{
@@ -195,9 +195,8 @@ function ($values) use ($batch, $keys) {
195
195
/**
196
196
* Dispatches the given queue in multiple batches.
197
197
*
198
- * @param array $queue
199
- * @param int $maxBatchSize
200
- *
198
+ * @param array $queue
199
+ * @param int $maxBatchSize
201
200
* @return void
202
201
*/
203
202
private function dispatchQueueInMultipleBatches (array $ queue , $ maxBatchSize ): void
@@ -214,8 +213,8 @@ private function dispatchQueueInMultipleBatches(array $queue, $maxBatchSize): vo
214
213
/**
215
214
* Handles the batch by resolving the promises and rejecting ones that return Exceptions.
216
215
*
217
- * @param array $batch
218
- * @param array $values
216
+ * @param array $batch
217
+ * @param array $values
219
218
*/
220
219
private function handleSuccessfulDispatch (array $ batch , array $ values ): void
221
220
{
@@ -230,8 +229,8 @@ private function handleSuccessfulDispatch(array $batch, array $values): void
230
229
/**
231
230
* Handles the failed batch dispatch.
232
231
*
233
- * @param array $batch
234
- * @param \Exception $error
232
+ * @param array $batch
233
+ * @param \Exception $error
235
234
*/
236
235
private function handleFailedDispatch (array $ batch , \Exception $ error )
237
236
{
@@ -245,8 +244,8 @@ private function handleFailedDispatch(array $batch, \Exception $error)
245
244
/**
246
245
* Validates the batch promise's output.
247
246
*
248
- * @param array $values Values from resolved promise.
249
- * @param array $keys Keys which the DataLoaders load was called with
247
+ * @param array $values Values from resolved promise.
248
+ * @param array $keys Keys which the DataLoaders load was called with
250
249
*
251
250
* @throws DataLoaderException
252
251
*/
0 commit comments