sync($this->option('from') ?: null, $this->option('to') ?: null, (bool) $this->option('write')); $this->line(json_encode($result, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR)); return $result['errors'] === [] ? self::SUCCESS : self::FAILURE; } }