Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff3cb9c

Browse files
committed
[Console] Inherit phpdoc from OutputFormatterInterface
1 parent d48fae7 commit ff3cb9c

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

src/Symfony/Component/Console/Formatter/OutputFormatter.php

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -79,56 +79,39 @@ public function __construct($decorated = false, array $styles = array())
7979
}
8080

8181
/**
82-
* Sets the decorated flag.
83-
*
84-
* @param bool $decorated Whether to decorate the messages or not
82+
* {@inheritdoc}
8583
*/
8684
public function setDecorated($decorated)
8785
{
8886
$this->decorated = (bool) $decorated;
8987
}
9088

9189
/**
92-
* Gets the decorated flag.
93-
*
94-
* @return bool true if the output will decorate messages, false otherwise
90+
* {@inheritdoc}
9591
*/
9692
public function isDecorated()
9793
{
9894
return $this->decorated;
9995
}
10096

10197
/**
102-
* Sets a new style.
103-
*
104-
* @param string $name The style name
105-
* @param OutputFormatterStyleInterface $style The style instance
98+
* {@inheritdoc}
10699
*/
107100
public function setStyle($name, OutputFormatterStyleInterface $style)
108101
{
109102
$this->styles[strtolower($name)] = $style;
110103
}
111104

112105
/**
113-
* Checks if output formatter has style with specified name.
114-
*
115-
* @param string $name
116-
*
117-
* @return bool
106+
* {@inheritdoc}
118107
*/
119108
public function hasStyle($name)
120109
{
121110
return isset($this->styles[strtolower($name)]);
122111
}
123112

124113
/**
125-
* Gets style options from style with specified name.
126-
*
127-
* @param string $name
128-
*
129-
* @return OutputFormatterStyleInterface
130-
*
131-
* @throws \InvalidArgumentException When style isn't defined
114+
* {@inheritdoc}
132115
*/
133116
public function getStyle($name)
134117
{
@@ -140,11 +123,7 @@ public function getStyle($name)
140123
}
141124

142125
/**
143-
* Formats a message according to the given styles.
144-
*
145-
* @param string $message The message to style
146-
*
147-
* @return string The styled message
126+
* {@inheritdoc}
148127
*/
149128
public function format($message)
150129
{

src/Symfony/Component/Console/Formatter/OutputFormatterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public function hasStyle($name);
5555
* @param string $name
5656
*
5757
* @return OutputFormatterStyleInterface
58+
*
59+
* @throws \InvalidArgumentException When style isn't defined
5860
*/
5961
public function getStyle($name);
6062

0 commit comments

Comments
 (0)