Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGit'Fellow <carlos@reendex.com>2022-08-20 20:36:22 +0300
committerGitHub <noreply@github.com>2022-08-20 20:36:22 +0300
commitc21fbf269f519a71528db994476421afa480f378 (patch)
tree078537f6fc63d774c03ceeaa6da9860393df22f0 /vendor/symfony/console/Style/OutputStyle.php
parent0de81a2395ba6e08abf2a21f7e98eda8f592fcf2 (diff)
parent922f0792b15cce73797e7213579e00c6ddd47a97 (diff)
Merge branch 'master' into updateDir
Signed-off-by: Git'Fellow <carlos@reendex.com>
Diffstat (limited to 'vendor/symfony/console/Style/OutputStyle.php')
-rw-r--r--vendor/symfony/console/Style/OutputStyle.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/vendor/symfony/console/Style/OutputStyle.php b/vendor/symfony/console/Style/OutputStyle.php
index de7be1e..14d2d60 100644
--- a/vendor/symfony/console/Style/OutputStyle.php
+++ b/vendor/symfony/console/Style/OutputStyle.php
@@ -13,6 +13,7 @@ namespace Symfony\Component\Console\Style;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Symfony\Component\Console\Helper\ProgressBar;
+use Symfony\Component\Console\Output\ConsoleOutputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
@@ -24,9 +25,6 @@ abstract class OutputStyle implements OutputInterface, StyleInterface
{
private $output;
- /**
- * @param OutputInterface $output
- */
public function __construct(OutputInterface $output)
{
$this->output = $output;
@@ -37,7 +35,7 @@ abstract class OutputStyle implements OutputInterface, StyleInterface
*/
public function newLine($count = 1)
{
- $this->output->write(str_repeat(PHP_EOL, $count));
+ $this->output->write(str_repeat(\PHP_EOL, $count));
}
/**
@@ -145,4 +143,13 @@ abstract class OutputStyle implements OutputInterface, StyleInterface
{
return $this->output->isDebug();
}
+
+ protected function getErrorOutput()
+ {
+ if (!$this->output instanceof ConsoleOutputInterface) {
+ return $this->output;
+ }
+
+ return $this->output->getErrorOutput();
+ }
}