浏览代码

[Console] moved whole constructor definitions in one line

ever.zet 14 年之前
父节点
当前提交
aa084dbc45

+ 1 - 2
src/Symfony/Component/Console/Output/ConsoleOutput.php

@@ -35,8 +35,7 @@ class ConsoleOutput extends StreamOutput
      * @param Boolean $decorated Whether to decorate messages or not (null for auto-guessing)
      * @param OutputFormatter   $formatter  Output formatter instance
      */
-    public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null,
-                                OutputFormatter $formatter = null)
+    public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatter $formatter = null)
     {
         parent::__construct(fopen('php://stdout', 'w'), $verbosity, $decorated, $formatter);
     }

+ 1 - 2
src/Symfony/Component/Console/Output/Output.php

@@ -45,8 +45,7 @@ abstract class Output implements OutputInterface
      * @param Boolean                   $decorated  Whether to decorate messages or not (null for auto-guessing)
      * @param OutputFormatterInterface  $formatter  Output formatter instance
      */
-    public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null,
-                                OutputFormatterInterface $formatter = null)
+    public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
     {
         if (null === $formatter) {
             $formatter = new OutputFormatter();

+ 1 - 2
src/Symfony/Component/Console/Output/StreamOutput.php

@@ -40,8 +40,7 @@ class StreamOutput extends Output
      *
      * @throws \InvalidArgumentException When first argument is not a real stream
      */
-    public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null,
-                                OutputFormatter $formatter = null)
+    public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatter $formatter = null)
     {
         if (!is_resource($stream) || 'stream' !== get_resource_type($stream)) {
             throw new \InvalidArgumentException('The StreamOutput class needs a stream as its first argument.');