Skip to content

Commit 91d1785

Browse files
authored
Fixes copy/paste errors in documentation and tests (#109)
1 parent 9668e4d commit 91d1785

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/batch/src/JobExecution.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function createRoot(
132132
}
133133

134134
/**
135-
* Create a root execution of a job (ie : that has no parent).
135+
* Create a child execution of a job (ie : that has a parent).
136136
*/
137137
public static function createChild(
138138
JobExecution $parent,

src/batch/src/Storage/QueryBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* Usage:
1414
*
1515
* (new QueryBuilder())
16-
* ->jobs(['123', '456'])
17-
* ->ids(['export', 'import'])
16+
* ->ids(['123', '456'])
17+
* ->jobs(['export', 'import'])
1818
* ->statuses([BatchStatus::RUNNING, BatchStatus::COMPLETED])
1919
* ->sort(Query::SORT_BY_END_DESC)
2020
* ->limit(6, 12)
@@ -23,8 +23,8 @@
2323
* Not an immutable object, can be used without chaining calls:
2424
*
2525
* $builder = new QueryBuilder();
26-
* $builder->jobs(['123', '456']);
27-
* $builder->ids(['export', 'import']);
26+
* $builder->ids(['123', '456']);
27+
* $builder->jobs(['export', 'import']);
2828
* $builder->statuses([BatchStatus::RUNNING, BatchStatus::COMPLETED]);
2929
* $builder->sort(Query::SORT_BY_END_DESC);
3030
* $builder->limit(6, 12);

src/batch/tests/Storage/QueryBuilderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ public function valid(): \Generator
6161
];
6262
yield 'Query complex' => [
6363
fn() => (new QueryBuilder())
64-
->jobs(['123', '456'])
65-
->ids(['export', 'import'])
64+
->ids(['123', '456'])
65+
->jobs(['export', 'import'])
6666
->statuses([BatchStatus::RUNNING, BatchStatus::COMPLETED])
6767
->sort(Query::SORT_BY_END_DESC)
6868
->limit(6, 12),
6969
new Query(
70-
['123', '456'],
7170
['export', 'import'],
71+
['123', '456'],
7272
[BatchStatus::RUNNING, BatchStatus::COMPLETED],
7373
Query::SORT_BY_END_DESC,
7474
6,

0 commit comments

Comments
 (0)