argument('type'); if (! \in_array($type, ['standard', 'predbft'], true)) { $this->error('Type must be either: standard or predbft'); $this->line(''); $this->line('standard => Attempt to fix release name using standard methods'); $this->line('predbft => Attempt to fix release name using Predb full text matching'); return self::FAILURE; } try { (new ForkingService)->fixRelNames($type); return self::SUCCESS; } catch (\Exception $e) { $this->error($e->getMessage()); return self::FAILURE; } } }