Skip to content

Commit

Permalink
Fixes copy/paste errors in documentation and tests (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
neeckeloo authored Dec 4, 2023
1 parent 9668e4d commit 91d1785
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/batch/src/JobExecution.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static function createRoot(
}

/**
* Create a root execution of a job (ie : that has no parent).
* Create a child execution of a job (ie : that has a parent).
*/
public static function createChild(
JobExecution $parent,
Expand Down
8 changes: 4 additions & 4 deletions src/batch/src/Storage/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* Usage:
*
* (new QueryBuilder())
* ->jobs(['123', '456'])
* ->ids(['export', 'import'])
* ->ids(['123', '456'])
* ->jobs(['export', 'import'])
* ->statuses([BatchStatus::RUNNING, BatchStatus::COMPLETED])
* ->sort(Query::SORT_BY_END_DESC)
* ->limit(6, 12)
Expand All @@ -23,8 +23,8 @@
* Not an immutable object, can be used without chaining calls:
*
* $builder = new QueryBuilder();
* $builder->jobs(['123', '456']);
* $builder->ids(['export', 'import']);
* $builder->ids(['123', '456']);
* $builder->jobs(['export', 'import']);
* $builder->statuses([BatchStatus::RUNNING, BatchStatus::COMPLETED]);
* $builder->sort(Query::SORT_BY_END_DESC);
* $builder->limit(6, 12);
Expand Down
6 changes: 3 additions & 3 deletions src/batch/tests/Storage/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ public function valid(): \Generator
];
yield 'Query complex' => [
fn() => (new QueryBuilder())
->jobs(['123', '456'])
->ids(['export', 'import'])
->ids(['123', '456'])
->jobs(['export', 'import'])
->statuses([BatchStatus::RUNNING, BatchStatus::COMPLETED])
->sort(Query::SORT_BY_END_DESC)
->limit(6, 12),
new Query(
['123', '456'],
['export', 'import'],
['123', '456'],
[BatchStatus::RUNNING, BatchStatus::COMPLETED],
Query::SORT_BY_END_DESC,
6,
Expand Down

0 comments on commit 91d1785

Please sign in to comment.