mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-14 23:24:03 +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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = '')
|
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null)
|
||||||
{
|
{
|
||||||
$this->shouldBeQueued = $shouldBeQueued;
|
$this->shouldBeQueued = $shouldBeQueued;
|
||||||
|
|
||||||
if ($queue)
|
if ($queue) {
|
||||||
{
|
|
||||||
$this->queue = $queue;
|
$this->queue = $queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue