protected function validSlugProvided(Repository $repository)
    {
        if (empty($this->argument('slug'))) {
            return false;
        }

        if ($repository->isEnabled($this->argument('slug'))) {
            return true;
        }

        if ($this->option('force')) {
            return true;
        }

        return false;
    }
protected function validSlugProvided(Repository $repository)
    {
        if (empty($this->argument('slug'))) {
            return false;
        }

        if ($repository->isEnabled($this->argument('slug'))) {
            return true;
        }

        if ($this->option('force')) {
            return true;
        }

        return false;
    }
protected function validSlugProvided ( Repository $ repository ) { if ( empty ( $ this -> argument ( 'slug' ) ) ) { return false ; } if ( $ repository -> isEnabled ( $ this -> argument ( 'slug' ) ) ) { return true ; } if ( $ this -> option ( 'force' ) ) { return true ; } return false ; }
Determine if a valid slug has been provided as an argument.

We will accept a slug as long as it is not empty and is enalbed (or force is passed).

@param \Caffeinated\Modules\Repositories\Repository $repository

@return bool
Determine if a valid slug has been provided as an argument .