Skip to content

Commit 5e06383

Browse files
committed
put limit before before
1 parent 5a2eb39 commit 5e06383

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Illuminate/Bus/BatchRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ interface BatchRepository
99
/**
1010
* Get available batches.
1111
*
12-
* @param mixed $before
1312
* @param int $limit
13+
* @param mixed $before
1414
* @return [\Illuminate\Bus\Batch]
1515
*/
16-
public function get($before, $limit);
16+
public function get($limit, $before);
1717

1818
/**
1919
* Store a new pending batch.

src/Illuminate/Bus/DatabaseBatchRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public function __construct(BatchFactory $factory, Connection $connection, strin
4848
/**
4949
* Get available batches.
5050
*
51-
* @param mixed $before
5251
* @param int $limit
52+
* @param mixed $before
5353
* @return [\Illuminate\Bus\Batch]
5454
*/
55-
public function get($before = null, $limit = 50)
55+
public function get($limit = 50, $before = null)
5656
{
5757
return $this->connection->table($this->table)
5858
->orderByDesc('id')

src/Illuminate/Support/Testing/Fakes/BatchRepositoryFake.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class BatchRepositoryFake implements BatchRepository
1515
/**
1616
* Get available batches.
1717
*
18-
* @param mixed $before
1918
* @param int $limit
19+
* @param mixed $before
2020
* @return [\Illuminate\Bus\Batch]
2121
*/
22-
public function get($before, $limit)
22+
public function get($limit, $before)
2323
{
2424
}
2525

0 commit comments

Comments
 (0)