option('clear', false)) { return FacebookSyncService::clearAll(); } if ($this->option('full', false)) { FacebookSyncService::clearAll(); FacebookSyncService::syncAll(); return; } return FacebookSyncService::syncAll(); } /** * Get the console command arguments. * @return array */ protected function getArguments() { return []; } /** * Get the console command options. * @return array */ protected function getOptions() { return [ ['clear'], ['full'] ]; } }