Skip to content

Added interval argument to make_progress_bar()#4603

Merged
gitlost merged 3 commits intowp-cli:masterfrom
Rarst:patch-1
Jan 9, 2018
Merged

Added interval argument to make_progress_bar()#4603
gitlost merged 3 commits intowp-cli:masterfrom
Rarst:patch-1

Conversation

@Rarst
Copy link
Contributor

@Rarst Rarst commented Jan 8, 2018

Allows to set update interval, available in class constructor but not previously accepted by function wrapper.

Rarst added 2 commits January 8, 2018 18:26
Allows to set update interval, available in class constructor but not previously accepted by function wrapper.
Copy link
Contributor

@gitlost gitlost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment change.

php/utils.php Outdated
*
* @param string $message Text to display before the progress bar.
* @param integer $count Total number of ticks to be performed.
* @param int $interval The interval in milliseconds between updates.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space before the "The". Also could you expand the comment to

Optional. The interval in milliseconds between updates. Default 100.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copy/pasted the doc from the implementing class, would you like wording updated there as well for consistency?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it'd be nice, but probably not worth it!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the class is upstream in PHP CLI tools so not worth it. :)

@gitlost gitlost merged commit ffbe05b into wp-cli:master Jan 9, 2018
@Rarst Rarst deleted the patch-1 branch January 9, 2018 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants