Skip to content

Commit 2c23f81

Browse files
committed
fix: oops forgot a brace
1 parent 87bf4ef commit 2c23f81

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

templates/php/api.mustache

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,12 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
505505
*
506506
* @param string $indexName The `indexName` to replace `objects` in.
507507
* @param array $objects The array of `objects` to store in the given Algolia `indexName`.
508+
* @param bool $waitForTasks Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable
508509
* @param array $batchSize The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
509510
* @param array $requestOptions Request options
510-
* @param bool $waitForTasks Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable
511511
*/
512512
public function saveObjects($indexName, $objects, $waitForTasks = false, $batchSize = 1000, $requestOptions = [])
513+
{
513514
return $this->chunkedBatch($indexName, $objects, 'addObject', $waitForTasks, $batchSize, $requestOptions);
514515
}
515516

@@ -518,11 +519,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
518519
*
519520
* @param string $indexName The `indexName` to delete `objectIDs` from.
520521
* @param array $objectIDs The `objectIDs` to delete.
522+
* @param bool $waitForTasks Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable
521523
* @param array $batchSize The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
522524
* @param array $requestOptions Request options
523-
* @param bool $waitForTasks Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable
524525
*/
525-
public function deleteObjects($indexName, $objectIDs, $batchSize = 1000, $requestOptions = [], $waitForTasks = false)
526+
public function deleteObjects($indexName, $objectIDs, $waitForTasks = false, $batchSize = 1000, $requestOptions = [])
526527
{
527528
$objects = [];
528529
@@ -539,11 +540,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
539540
* @param string $indexName The `indexName` to replace `objects` in.
540541
* @param array $objects The array of `objects` to store in the given Algolia `indexName`.
541542
* @param bool $createIfNotExists To be provided if non-existing objects are passed, otherwise, the call will fail..
543+
* @param bool $waitForTasks Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable
542544
* @param array $batchSize The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
543545
* @param array $requestOptions Request options
544-
* @param bool $waitForTasks Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable
545546
*/
546-
public function partialUpdateObjects($indexName, $objects, $createIfNotExists, $batchSize = 1000, $requestOptions = [], $waitForTasks = false) {
547+
public function partialUpdateObjects($indexName, $objects, $createIfNotExists, $waitForTasks = false, $batchSize = 1000, $requestOptions = []) {
547548
return $this->chunkedBatch($indexName, $objects, ($createIfNotExists == TRUE) ? 'partialUpdateObject' : 'partialUpdateObjectNoCreate', $waitForTasks, $batchSize, $requestOptions);
548549
}
549550

0 commit comments

Comments
 (0)