public function reportProgress($filename, $count) { static $progress = array('|', '/', '-', '\\'); if ($count == 0) { $this->cli->output($this->cli->storePosition() . " " . $this->cli->restorePosition(), false); } else { $text = array_shift($progress); $this->cli->output($this->cli->storePosition() . $text . $this->cli->restorePosition(), false); $progress[] = $text; } }