Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 35f32eb

Browse filesBrowse files
committed
[Console] removed unneeded private methods
1 parent 448a390 commit 35f32eb
Copy full SHA for 35f32eb

File tree

1 file changed

+2
-12
lines changed
Filter options

1 file changed

+2
-12
lines changed

‎src/Symfony/Component/Console/Helper/ProgressBar.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/ProgressBar.php
+2-12Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ private function setMaxSteps($max)
523523
private function overwrite($message)
524524
{
525525
if ($this->overwrite) {
526-
if (!$this->isFirstRun()) {
526+
if (!$this->firstRun) {
527527
// Move the cursor to the beginning of the line
528528
$this->output->write("\x0D");
529529

@@ -539,7 +539,7 @@ private function overwrite($message)
539539
$this->output->writeln('');
540540
}
541541

542-
$this->setFirstRun(false);
542+
$this->firstRun = false;
543543

544544
$this->output->write($message);
545545
}
@@ -632,14 +632,4 @@ private static function initFormats()
632632
'debug_nomax' => ' %current% [%bar%] %elapsed:6s% %memory:6s%',
633633
);
634634
}
635-
636-
private function isFirstRun()
637-
{
638-
return $this->firstRun;
639-
}
640-
641-
private function setFirstRun($firstRun)
642-
{
643-
$this->firstRun = (bool) $firstRun;
644-
}
645635
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.