bar = \WP_CLI\Utils\make_progress_bar( $label, $total ); } /** * {@inheritDoc} * * @param int $count Units. */ public function progress_tick( $count ) { if ( $this->bar ) { $this->bar->tick( $count ); } } /** * {@inheritDoc} */ public function progress_finish() { if ( $this->bar ) { $this->bar->finish(); $this->bar = null; } } /** * {@inheritDoc} */ public function stdin() { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- A stream, not a file; WP_Filesystem cannot read it. return (string) file_get_contents( 'php://stdin' ); } }