src/Console/MoveCommand.php
public function handle()
    {
        $this->parseArguments();

        if ($this->count > 1) {
            if (! $this->confirmToProceed("You are about to move $this->count jobs from '".$this->argument('from')."' to '".$this->argument('to')."'.")) {
                return;
            }
        }

        $moved = 0;
        while ($job = $this->getNextJob($this->argument('from'), $this->state)) {
            if ($this->count > 0 && $moved >= $this->count) {
                break;
            }
            // Read the job's stats in order to preserve priority and ttr
            $stats = $this->getJobStats($job);

            $this->putJob($this->argument('to'), $job->getData(), $this->priority ?: $stats['pri'], $this->delay, $this->ttr ?: $stats['ttr']);

            $this->deleteJob($job);

            $moved++;
        }

        if (0 == $moved) {
            $this->renderJobNotFoundMessage($this->argument('from'), $this->state);
        } else {
            $this->comment("Moved $moved jobs from '".$this->argument('from')."' to '".$this->argument('to')."'.");
        }
    }
public function handle()
    {
        $this->parseArguments();

        if ($this->count > 1) {
            if (! $this->confirmToProceed("You are about to move $this->count jobs from '".$this->argument('from')."' to '".$this->argument('to')."'.")) {
                return;
            }
        }

        $moved = 0;
        while ($job = $this->getNextJob($this->argument('from'), $this->state)) {
            if ($this->count > 0 && $moved >= $this->count) {
                break;
            }
            // Read the job's stats in order to preserve priority and ttr
            $stats = $this->getJobStats($job);

            $this->putJob($this->argument('to'), $job->getData(), $this->priority ?: $stats['pri'], $this->delay, $this->ttr ?: $stats['ttr']);

            $this->deleteJob($job);

            $moved++;
        }

        if (0 == $moved) {
            $this->renderJobNotFoundMessage($this->argument('from'), $this->state);
        } else {
            $this->comment("Moved $moved jobs from '".$this->argument('from')."' to '".$this->argument('to')."'.");
        }
    }
{@inheritdoc}