1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 21:54:04 +00:00

improve code

This commit is contained in:
Samuel Štancl 2023-03-16 22:11:44 +01:00 committed by GitHub
parent 1a75385d9b
commit 39ddcded04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}