@@ -29,11 +29,11 @@ final class DataLoader implements DataLoaderInterface
2929 /**
3030 * Initiates a new DataLoader.
3131 *
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
3737 */
3838 public function __construct (
3939 callable $ batchLoadFunction ,
@@ -166,7 +166,7 @@ private function dispatchQueue(): void
166166 /**
167167 * Dispatches a batch of a queue. The given batch can also be the whole queue.
168168 *
169- * @param array $batch
169+ * @param array $batch
170170 */
171171 private function dispatchQueueBatch ($ batch )
172172 {
@@ -195,9 +195,8 @@ function ($values) use ($batch, $keys) {
195195 /**
196196 * Dispatches the given queue in multiple batches.
197197 *
198- * @param array $queue
199- * @param int $maxBatchSize
200- *
198+ * @param array $queue
199+ * @param int $maxBatchSize
201200 * @return void
202201 */
203202 private function dispatchQueueInMultipleBatches (array $ queue , $ maxBatchSize ): void
@@ -214,8 +213,8 @@ private function dispatchQueueInMultipleBatches(array $queue, $maxBatchSize): vo
214213 /**
215214 * Handles the batch by resolving the promises and rejecting ones that return Exceptions.
216215 *
217- * @param array $batch
218- * @param array $values
216+ * @param array $batch
217+ * @param array $values
219218 */
220219 private function handleSuccessfulDispatch (array $ batch , array $ values ): void
221220 {
@@ -230,8 +229,8 @@ private function handleSuccessfulDispatch(array $batch, array $values): void
230229 /**
231230 * Handles the failed batch dispatch.
232231 *
233- * @param array $batch
234- * @param \Exception $error
232+ * @param array $batch
233+ * @param \Exception $error
235234 */
236235 private function handleFailedDispatch (array $ batch , \Exception $ error )
237236 {
@@ -245,8 +244,8 @@ private function handleFailedDispatch(array $batch, \Exception $error)
245244 /**
246245 * Validates the batch promise's output.
247246 *
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
250249 *
251250 * @throws DataLoaderException
252251 */
0 commit comments