File tree 1 file changed +7
-7
lines changed
src/Symfony/Component/Console/Helper
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,13 @@ public function setProgress(int $step)
295
295
}
296
296
}
297
297
298
+ public function setMaxSteps (int $ max )
299
+ {
300
+ $ this ->format = null ;
301
+ $ this ->max = max (0 , $ max );
302
+ $ this ->stepWidth = $ this ->max ? Helper::strlen ((string ) $ this ->max ) : 4 ;
303
+ }
304
+
298
305
/**
299
306
* Finishes the progress output.
300
307
*/
@@ -362,13 +369,6 @@ private function setRealFormat(string $format)
362
369
$ this ->formatLineCount = substr_count ($ this ->format , "\n" );
363
370
}
364
371
365
- public function setMaxSteps (int $ max )
366
- {
367
- $ this ->format = null ;
368
- $ this ->max = max (0 , $ max );
369
- $ this ->stepWidth = $ this ->max ? Helper::strlen ((string ) $ this ->max ) : 4 ;
370
- }
371
-
372
372
/**
373
373
* Overwrites a previous message to the output.
374
374
*/
You can’t perform that action at this time.
0 commit comments