From ec434e457687a4d4cbacf54cdce05f581e50dddf Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Wed, 18 Feb 2015 10:01:24 +0100 Subject: [PATCH] Formatting only --- src/Composer/IO/BufferIO.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Composer/IO/BufferIO.php b/src/Composer/IO/BufferIO.php index fc675ce70..581680b7c 100644 --- a/src/Composer/IO/BufferIO.php +++ b/src/Composer/IO/BufferIO.php @@ -23,16 +23,19 @@ use Symfony\Component\Console\Helper\HelperSet; class BufferIO extends ConsoleIO { /** - * @param string $input - * @param int $verbosity + * @param string $input + * @param int $verbosity * @param OutputFormatterInterface $formatter */ - public function __construct($input = '', $verbosity = null, OutputFormatterInterface $formatter = null) - { + public function __construct( + $input = '', + $verbosity = StreamOutput::VERBOSITY_NORMAL, + OutputFormatterInterface $formatter = null + ) { $input = new StringInput($input); $input->setInteractive(false); - $output = new StreamOutput(fopen('php://memory', 'rw'), $verbosity === null ? StreamOutput::VERBOSITY_NORMAL : $verbosity, !empty($formatter), $formatter); + $output = new StreamOutput(fopen('php://memory', 'rw'), $verbosity, !empty($formatter), $formatter); parent::__construct($input, $output, new HelperSet(array())); }