run($this->option('from') ?: null, $this->option('to') ?: null); $this->line(json_encode($result, JSON_UNESCAPED_UNICODE)); return $result['failed'] > 0 ? self::FAILURE : self::SUCCESS; } }