argument('url'); $format = $this->argument('format'); $service = new Service($url, $this->output); if ($service->modelExists($url)) { $this->info('Video already exists in db'); return Command::FAILURE; } if ($service->createModel($format)) { $this->info('Download of ' . $service->getTitle() . ' complete!'); } else { $this->info(ucfirst($format) . ' file already exists'); } return Command::SUCCESS; } }