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

        $tube = $this->argument('tube') ?: $this->defaultTube;

        if ($this->count > 1) {
            if (! $this->confirmToProceed("You are about to kick $this->count jobs in '$tube' tube.")) {
                return;
            }
        }

        $kicked = $this->kickJob($tube, $this->count);

        if (0 == $kicked) {
            $this->renderJobNotFoundMessage($tube);
        } else {
            $this->comment("Kicked $kicked jobs in '$tube' tube.");
        }
    }
public function handle()
    {
        $this->parseArguments();

        $tube = $this->argument('tube') ?: $this->defaultTube;

        if ($this->count > 1) {
            if (! $this->confirmToProceed("You are about to kick $this->count jobs in '$tube' tube.")) {
                return;
            }
        }

        $kicked = $this->kickJob($tube, $this->count);

        if (0 == $kicked) {
            $this->renderJobNotFoundMessage($tube);
        } else {
            $this->comment("Kicked $kicked jobs in '$tube' tube.");
        }
    }
public function handle ( ) { $ this -> parseArguments ( ) ; $ tube = $ this -> argument ( 'tube' ) ? : $ this -> defaultTube ; if ( $ this -> count > 1 ) { if ( ! $ this -> confirmToProceed ( "You are about to kick $this->count jobs in '$tube' tube." ) ) { return ; } } $ kicked = $ this -> kickJob ( $ tube , $ this -> count ) ; if ( 0 == $ kicked ) { $ this -> renderJobNotFoundMessage ( $ tube ) ; } else { $ this -> comment ( "Kicked $kicked jobs in '$tube' tube." ) ; } }
{@inheritdoc}
{