mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 21:54:04 +00:00
improve code
This commit is contained in:
parent
1a75385d9b
commit
39ddcded04
1 changed files with 2 additions and 3 deletions
|
|
@ -53,12 +53,11 @@ class JobPipeline implements ShouldQueue
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = '')
|
||||
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null)
|
||||
{
|
||||
$this->shouldBeQueued = $shouldBeQueued;
|
||||
|
||||
if ($queue)
|
||||
{
|
||||
if ($queue) {
|
||||
$this->queue = $queue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue