@@ -257,7 +257,7 @@ Displaying a Progress Bar
257
257
.. versionadded :: 2.2
258
258
The ``progress `` helper was added in Symfony 2.2.
259
259
260
- When executing longer-running commands, it may be helpful to to show progress
260
+ When executing longer-running commands, it may be helpful to show progress
261
261
information, which updates as your command runs:
262
262
263
263
.. image :: /images/components/console/progress.png
@@ -283,9 +283,9 @@ of different levels of verbosity. Each of these displays different possible
283
283
items - like percentage completion, a moving progress bar, or current/total
284
284
information (e.g. 10/50)::
285
285
286
- $progress->setFormat(ProgressHelper::QUIET );
287
- $progress->setFormat(ProgressHelper::NORMAL );
288
- $progress->setFormat(ProgressHelper::VERBOSE );
286
+ $progress->setFormat(ProgressHelper::FORMAT_QUIET );
287
+ $progress->setFormat(ProgressHelper::FORMAT_NORMAL );
288
+ $progress->setFormat(ProgressHelper::FORMAT_VERBOSE );
289
289
$progress->setFormat(ProgressHelper::FORMAT_QUIET_NOMAX);
290
290
// the default value
291
291
$progress->setFormat(ProgressHelper::FORMAT_NORMAL_NOMAX);
@@ -314,7 +314,7 @@ To see other available options, check the API documentation for
314
314
$progress->start($output, 500);
315
315
$i = 0;
316
316
while ($i++ < 50000) {
317
- // do some work
317
+ // ... do some work
318
318
319
319
// advance every 100 iterations
320
320
if ($i % 100 == 0) {
0 commit comments