protected function getProfile() : CrawlProfile
{
if (!is_null($this->option('profile'))) {
return app($this->option('profile'));
}
if (config('laravel-link-checker.default_profile') != '') {
return app(config('laravel-link-checker.default_profile'));
}
throw new Exception('Could not determine the profile to be used');
}