Browse files

[Console] fixed some CS

  • Loading branch information...
1 parent bb843b5 commit b9307cb3eb709c717dc85074cf79af20a88473a4 @fabpot fabpot committed May 15, 2012
View
2 Command/Command.php
@@ -187,6 +187,8 @@ protected function initialize(InputInterface $input, OutputInterface $output)
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
*
+ * @return integer The command exit code
+ *
* @see setCode()
* @see execute()
*
View
20 Formatter/OutputFormatter.php
@@ -40,9 +40,9 @@ public function __construct($decorated = null, array $styles = array())
{
$this->decorated = (Boolean) $decorated;
- $this->setStyle('error', new OutputFormatterStyle('white', 'red'));
- $this->setStyle('info', new OutputFormatterStyle('green'));
- $this->setStyle('comment', new OutputFormatterStyle('yellow'));
+ $this->setStyle('error', new OutputFormatterStyle('white', 'red'));
+ $this->setStyle('info', new OutputFormatterStyle('green'));
+ $this->setStyle('comment', new OutputFormatterStyle('yellow'));
$this->setStyle('question', new OutputFormatterStyle('black', 'cyan'));
foreach ($styles as $name => $style) {
@@ -90,9 +90,9 @@ public function setStyle($name, OutputFormatterStyleInterface $style)
/**
* Checks if output formatter has style with specified name.
*
- * @param string $name
+ * @param string $name
*
- * @return Boolean
+ * @return Boolean
*
* @api
*/
@@ -104,11 +104,11 @@ public function hasStyle($name)
/**
* Gets style options from style with specified name.
*
- * @param string $name
+ * @param string $name
*
- * @return OutputFormatterStyleInterface
+ * @return OutputFormatterStyleInterface
*
- * @throws \InvalidArgumentException When style isn't defined
+ * @throws \InvalidArgumentException When style isn't defined
*
* @api
*/
@@ -164,9 +164,9 @@ private function replaceStyle($match)
/**
* Tries to create new style instance from string.
*
- * @param string $string
+ * @param string $string
*
- * @return Symfony\Component\Console\Format\FormatterStyle|Boolean false if string is not format string
+ * @return Symfony\Component\Console\Format\FormatterStyle|Boolean false if string is not format string
*/
private function createStyleFromString($string)
{
View
8 Formatter/OutputFormatterInterface.php
@@ -51,9 +51,9 @@ function setStyle($name, OutputFormatterStyleInterface $style);
/**
* Checks if output formatter has style with specified name.
*
- * @param string $name
+ * @param string $name
*
- * @return Boolean
+ * @return Boolean
*
* @api
*/
@@ -62,9 +62,9 @@ function hasStyle($name);
/**
* Gets style options from style with specified name.
*
- * @param string $name
+ * @param string $name
*
- * @return OutputFormatterStyleInterface
+ * @return OutputFormatterStyleInterface
*
* @api
*/
View
16 Formatter/OutputFormatterStyle.php
@@ -55,9 +55,9 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
/**
* Initializes output formatter style.
*
- * @param string $foreground style foreground color name
- * @param string $background style background color name
- * @param array $options style options
+ * @param string $foreground The style foreground color name
+ * @param string $background The style background color name
+ * @param array $options The style options
*
* @api
*/
@@ -77,7 +77,7 @@ public function __construct($foreground = null, $background = null, array $optio
/**
* Sets style foreground color.
*
- * @param string $color color name
+ * @param string $color The color name
*
* @throws \InvalidArgumentException When the color name isn't defined
*
@@ -105,7 +105,7 @@ public function setForeground($color = null)
/**
* Sets style background color.
*
- * @param string $color color name
+ * @param string $color The color name
*
* @throws \InvalidArgumentException When the color name isn't defined
*
@@ -133,7 +133,7 @@ public function setBackground($color = null)
/**
* Sets some specific style option.
*
- * @param string $option option name
+ * @param string $option The option name
*
* @throws \InvalidArgumentException When the option name isn't defined
*
@@ -157,7 +157,7 @@ public function setOption($option)
/**
* Unsets some specific style option.
*
- * @param string $option option name
+ * @param string $option The option name
*
* @throws \InvalidArgumentException When the option name isn't defined
*
@@ -181,7 +181,7 @@ public function unsetOption($option)
/**
* Sets multiple style options at once.
*
- * @param array $options
+ * @param array $options
*/
public function setOptions(array $options)
{
View
10 Formatter/OutputFormatterStyleInterface.php
@@ -23,7 +23,7 @@
/**
* Sets style foreground color.
*
- * @param string $color color name
+ * @param string $color The color name
*
* @api
*/
@@ -32,7 +32,7 @@ function setForeground($color = null);
/**
* Sets style background color.
*
- * @param string $color color name
+ * @param string $color The color name
*
* @api
*/
@@ -41,7 +41,7 @@ function setBackground($color = null);
/**
* Sets some specific style option.
*
- * @param string $option option name
+ * @param string $option The option name
*
* @api
*/
@@ -50,14 +50,14 @@ function setOption($option);
/**
* Unsets some specific style option.
*
- * @param string $option option name
+ * @param string $option Theoption name
*/
function unsetOption($option);
/**
* Sets multiple style options at once.
*
- * @param array $options
+ * @param array $options
*/
function setOptions(array $options);
View
2 Helper/DialogHelper.php
@@ -121,6 +121,8 @@ public function setInputStream($stream)
/**
* Returns the helper's canonical name.
+ *
+ * @return string The helper name
*/
public function getName()
{
View
2 Helper/FormatterHelper.php
@@ -24,6 +24,8 @@ class FormatterHelper extends Helper
* @param string $section The section name
* @param string $message The message
* @param string $style The style to apply to the section
+ *
+ * @return string The format section
*/
public function formatSection($section, $message, $style = 'info')
{
View
2 Input/StringInput.php
@@ -47,6 +47,8 @@ public function __construct($input, InputDefinition $definition = null)
*
* @param string $input The input to tokenize
*
+ * @return array An array of tokens
+ *
* @throws \InvalidArgumentException When unable to parse input (should never happen)
*/
private function tokenize($input)
View
2 Shell.php
@@ -85,6 +85,8 @@ public function run()
*
* @param string $text The last segment of the entered text
* @param integer $position The current position
+ *
+ * @return array An array of possibilities for the entered text
*/
private function autocompleter($text, $position)
{
View
2 Tester/ApplicationTester.php
@@ -16,6 +16,8 @@
use Symfony\Component\Console\Output\StreamOutput;
/**
+ * Eases the testing of console applications.
+ *
* @author Fabien Potencier <fabien@symfony.com>
*/
class ApplicationTester
View
2 Tester/CommandTester.php
@@ -16,6 +16,8 @@
use Symfony\Component\Console\Output\StreamOutput;
/**
+ * Eases the testing of console commands.
+ *
* @author Fabien Potencier <fabien@symfony.com>
*/
class CommandTester

0 comments on commit b9307cb

Please sign in to comment.