/** * @param int $current * @param PhpFileInfo $file */ public function advance($current, PhpFileInfo $file) { if (!$this->verbose) { return; } if (1 === $current) { $format = '<info>%message%</info>' . "\n" . $this->label . ': <info>%current%</info>/<info>%max%</info>'; $this->progressBar->clear(); $this->progressBar->setFormat($format); } $message = $file->getRelativePathname(); $this->progressBar->setMessage($message); $this->progressBar->clear(); $this->progressBar->advance(); $this->progressBar->display(); }