Skip to content

Commit

Permalink
Code Style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Ullyott <ullyott.kevin@gmail.com>
  • Loading branch information
Orrison committed Oct 1, 2020
1 parent 109ead3 commit f82202c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Illuminate/Bus/Batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ public function add($jobs)
$jobTotal += count($jobChain);

$chainHead = array_shift($jobChain);

return $chainHead->chain($jobChain);
} else {
$job->withBatchId($this->id);
Expand Down
2 changes: 1 addition & 1 deletion tests/Bus/BusBatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function test_chain_can_be_added_to_batch()
}), '', 'test-queue');

$batch = $batch->add([
[$chainHeadJob, $secondJob, $thirdJob]
[$chainHeadJob, $secondJob, $thirdJob],
]);

$this->assertEquals(3, $batch->totalJobs);
Expand Down

0 comments on commit f82202c

Please sign in to comment.