diff --git a/classes/WP_CLI/ProgressBar.php b/classes/WP_CLI/ProgressBar.php index e01b6b31..fb2ae8f5 100644 --- a/classes/WP_CLI/ProgressBar.php +++ b/classes/WP_CLI/ProgressBar.php @@ -17,19 +17,39 @@ */ class ProgressBar { - /** @var integer */ + /** + * Current number of ticks. + * + * @var integer + */ protected $total_ticks; - /** @var integer */ + /** + * Total number of ticks. + * + * @var integer + */ protected $count; - /** @var integer */ + /** + * Progress bar update interval. + * + * @var integer + */ protected $interval; - /** @var string */ + /** + * Progress bar message. + * + * @var string + */ protected $message; - /** @var \cli\progress\Bar */ + /** + * Instance. + * + * @var \cli\progress\Bar + */ protected $progress_bar; /** @@ -38,7 +58,7 @@ class ProgressBar { * @param string $message Text to display before the progress bar. * @param integer $count Total number of ticks to be performed. * @param integer $interval Optional. The interval in milliseconds between updates. Default 100. - * + * * @throws \Exception When this is not run within WP CLI. */ public function __construct( $message, $count, $interval = 100 ) { @@ -64,7 +84,7 @@ public function tick() { $this->progress_bar->tick(); $this->total_ticks++; - do_action( 'action_scheduler/progress_tick', $this->total_ticks ); + do_action( 'action_scheduler/progress_tick', $this->total_ticks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } /**