src/TerminalObject/Dynamic/Spinner.php
public function advance($label = null)
    {
        if ($label === null) {
            $label = $this->label;
        }

        if ($this->lastDrawn) {
            $time = microtime(true) - $this->lastDrawn;
            if ($time < $this->timeLimit) {
                return;
            }
        }

        ++$this->current;
        if ($this->current >= count($this->characters)) {
            $this->current = 0;
        }

        $characters = $this->characters[$this->current];
        $this->drawSpinner($characters, $label);
        $this->lastDrawn = microtime(true);
    }
public function advance($label = null)
    {
        if ($label === null) {
            $label = $this->label;
        }

        if ($this->lastDrawn) {
            $time = microtime(true) - $this->lastDrawn;
            if ($time < $this->timeLimit) {
                return;
            }
        }

        ++$this->current;
        if ($this->current >= count($this->characters)) {
            $this->current = 0;
        }

        $characters = $this->characters[$this->current];
        $this->drawSpinner($characters, $label);
        $this->lastDrawn = microtime(true);
    }
public function advance ( $ label = null ) { if ( $ label === null ) { $ label = $ this -> label ; } if ( $ this -> lastDrawn ) { $ time = microtime ( true ) - $ this -> lastDrawn ; if ( $ time < $ this -> timeLimit ) { return ; } } ++ $ this -> current ; if ( $ this -> current >= count ( $ this -> characters ) ) { $ this -> current = 0 ; } $ characters = $ this -> characters [ $ this -> current ] ; $ this -> drawSpinner ( $ characters , $ label ) ; $ this -> lastDrawn = microtime ( true ) ; }
Re-writes the spinner

@param string $label

@return void
Re - writes the spinner