public function iterationStart(Iteration $iteration) { if ($this->isCi) { return; } $state = $iteration->getIndex() % 4; $states = [0 => '|', 1 => '/', 2 => '-', 3 => '\\']; $this->output->write(sprintf("\r%s%s", $this->buffer, $states[$state])); }