Skip to content

Commit bf1a6b3

Browse files
committed
[#1765] Making a few tweaks to the console progress update thanks to @lyrixx, @stof and @wouterj
1 parent d0c8221 commit bf1a6b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/console/introduction.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Displaying a Progress Bar
257257
.. versionadded:: 2.2
258258
The ``progress`` helper was added in Symfony 2.2.
259259

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
261261
information, which updates as your command runs:
262262

263263
.. image:: /images/components/console/progress.png
@@ -283,9 +283,9 @@ of different levels of verbosity. Each of these displays different possible
283283
items - like percentage completion, a moving progress bar, or current/total
284284
information (e.g. 10/50)::
285285

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);
289289
$progress->setFormat(ProgressHelper::FORMAT_QUIET_NOMAX);
290290
// the default value
291291
$progress->setFormat(ProgressHelper::FORMAT_NORMAL_NOMAX);
@@ -314,7 +314,7 @@ To see other available options, check the API documentation for
314314
$progress->start($output, 500);
315315
$i = 0;
316316
while ($i++ < 50000) {
317-
// do some work
317+
// ... do some work
318318

319319
// advance every 100 iterations
320320
if ($i % 100 == 0) {

0 commit comments

Comments
 (0)