Increment the progress bar.

@param int $num The amount of progress to advance by.
@return $this
11069
public function increment($num = 1)
    {
        $this->_progress = min(max(0, $this->_progress + $num), $this->_total);

        return $this;
    }
162359
public function increment($value = 1)
    {
        $this->percent += $value;

        $percentage = (double)($this->percent / 100);

        $progress = floor($percentage * 50);
        $output = "\r[" . str_repeat('>', $progress);
        if ($progress < 50) {
            $output .= ">" . str_repeat(' ', 50 - $progress);
        } else {
            $output .= '>';
        }
        $output .= sprintf('] %s%% ', round($percentage * 100, 0));

        $speed = (time() - $this->startTime) / $this->percent;
        $remaining = number_format(round($speed * (100 - $this->percent), 2), 2);
        $percentage == 100 || $output .= " $remaining seconds remaining";

        Output::write($output);
        return $this;
    }
1252363
public function setNum($num = 20)
    {
        if (!is_numeric($num) && $num !== self::SEARCH_ALL) {
            throw new \InvalidArgumentException(
                'Argument can only be numeric or "all" to return all results.'
            );
        }
        $this->otherOptions['num'] = $num;

        return $this;
    }
1254862
public function advance($increment = 1, $label = null)
    {
        $this->current($this->current + $increment, $label);
    }
127148
public function nextPortion(): Limiter
    {
        \assert('$this->limit > 0');
        if ($this->limit) {
            $this->offset = min($this->offset + $this->limit, $this->total);
            $this->limit = min($this->limit, $this->total - $this->offset);
        }
        return $this;
    }
1039897
public function withInhibitAnyPolicy(int $num): self
    {
        $state = clone $this;
        $state->_inhibitAnyPolicy = $num;
        return $state;
    }
447389
public function update($newProgress) {
        if (!is_numeric($newProgress) || (int) $newProgress < 0 || (int) $newProgress > $this->total) {
            throw new InvalidArgumentException(sprintf(
                'Argument must be an integer between 0 (zero) and %s (total).',
                $this->total
            ));
        }
        $this->current = $newProgress;
    }
103884
public function step($message)
    {
        ++$this->stepCount;

        $this->info($message);

        if ($this->progressBar instanceof ProgressBar) {
            $this->progressBar->setMessage($message);
            $this->progressBar->advance();
        }
    }
1242045
public function setNum(array $num, int $shift = null):Polynomial{
		$offset = 0;
		$numCount = \count($num);

		while($offset < $numCount && $num[$offset] === 0){
			$offset++;
		}

		$this->num = \array_fill(0, $numCount - $offset + ($shift ?? 0), 0);

		for($i = 0; $i < $numCount - $offset; $i++){
			$this->num[$i] = $num[$i + $offset];
		}

		return $this;
	}
1352893
private function encodeSignedNumber($num)
    {
        $sgn_num = $num << 1;
        if ($num < 0) {
            $sgn_num = ~($sgn_num);
        }
        return $this->encodeNumber($sgn_num);
    }
270678
public function seek($num)
    {
        if ($num >= 0 && $num <= $this->count() - 1) {
            if (!$this->resource->data_seek($num)) {
                return false;
            }

            $this->cursor_position = $num;

            return true;
        }

        return false;
    }
521685
public function batchSize($num)
    {
        $this->batchSize = (integer) $num;
        $this->riakCommandCursor->batchSize($num);

        return $this;
    }
808010
public function withExplicitPolicy(int $num): self
    {
        $state = clone $this;
        $state->_explicitPolicy = $num;
        return $state;
    }
334115
public function drop( $num ) {
		if ( $num > $this->count() ) {
			$num = $this->count();
		}

		return $this->slice( $num, $this->count() );
	}
713855
public function increment($increment = 1) {
		$this->_current = min($this->_total, $this->_current + $increment);
	}
837459
public function increment(string $field, $value)
    {
        $this->update();
        $this->mongoDbUpdate['$inc'][$field] = $value;

        return $this;
    }
789646
public function ne($num) {
        if (!$this->_isValid) {
            return $this;
        }

        if ($this->_unsafeVar == $num) {
            $this->_isValid = false;
        }
        return $this;
    }