Skip to content

Commit ab793e6

Browse files
committed
formatting
1 parent 40b9d17 commit ab793e6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Illuminate/Bus/Batch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ public function toArray()
380380
{
381381
return [
382382
'id' => $this->id,
383+
'name' => $this->name,
383384
'totalJobs' => $this->totalJobs,
384385
'pendingJobs' => $this->pendingJobs,
385-
'name' => $this->name,
386386
'processedJobs' => $this->processedJobs(),
387387
'progress' => $this->progress(),
388388
'failedJobs' => $this->failedJobs,

src/Illuminate/Bus/PendingBatch.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111

1212
class PendingBatch
1313
{
14+
/**
15+
* The batch name.
16+
*
17+
* @var string
18+
*/
19+
public $name = '';
20+
1421
/**
1522
* The jobs that belong to the batch.
1623
*
@@ -25,13 +32,6 @@ class PendingBatch
2532
*/
2633
public $options = [];
2734

28-
/**
29-
* The batch name.
30-
*
31-
* @var string
32-
*/
33-
public $name = '';
34-
3535
/**
3636
* Create a new pending batch instance.
3737
*
@@ -138,12 +138,12 @@ public function allowsFailures()
138138
}
139139

140140
/**
141-
* Add a name for the batch.
141+
* Set the name for the batch.
142142
*
143143
* @param string $name
144144
* @return $this
145145
*/
146-
public function name($name)
146+
public function name(string $name)
147147
{
148148
$this->name = $name;
149149

0 commit comments

Comments
 (0)