Skip to content

Commit dc65db4

Browse files
committed
fixed @return when returning this or static
1 parent d8da935 commit dc65db4

File tree

11 files changed

+45
-45
lines changed

11 files changed

+45
-45
lines changed

Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ public function getTerminalDimensions()
772772
* @param int $width The width
773773
* @param int $height The height
774774
*
775-
* @return Application The current application
775+
* @return $this
776776
*/
777777
public function setTerminalDimensions($width, $height)
778778
{

Command/Command.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function run(InputInterface $input, OutputInterface $output)
265265
*
266266
* @param callable $code A callable(InputInterface $input, OutputInterface $output)
267267
*
268-
* @return Command The current instance
268+
* @return $this
269269
*
270270
* @throws \InvalidArgumentException
271271
*
@@ -314,7 +314,7 @@ public function mergeApplicationDefinition($mergeArgs = true)
314314
*
315315
* @param array|InputDefinition $definition An array of argument and option instances or a definition instance
316316
*
317-
* @return Command The current instance
317+
* @return $this
318318
*/
319319
public function setDefinition($definition)
320320
{
@@ -362,7 +362,7 @@ public function getNativeDefinition()
362362
* @param string $description A description text
363363
* @param mixed $default The default value (for InputArgument::OPTIONAL mode only)
364364
*
365-
* @return Command The current instance
365+
* @return $this
366366
*/
367367
public function addArgument($name, $mode = null, $description = '', $default = null)
368368
{
@@ -380,7 +380,7 @@ public function addArgument($name, $mode = null, $description = '', $default = n
380380
* @param string $description A description text
381381
* @param mixed $default The default value (must be null for InputOption::VALUE_NONE)
382382
*
383-
* @return Command The current instance
383+
* @return $this
384384
*/
385385
public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null)
386386
{
@@ -399,7 +399,7 @@ public function addOption($name, $shortcut = null, $mode = null, $description =
399399
*
400400
* @param string $name The command name
401401
*
402-
* @return Command The current instance
402+
* @return $this
403403
*
404404
* @throws \InvalidArgumentException When the name is invalid
405405
*/
@@ -422,7 +422,7 @@ public function setName($name)
422422
*
423423
* @param string $title The process title
424424
*
425-
* @return Command The current instance
425+
* @return $this
426426
*/
427427
public function setProcessTitle($title)
428428
{
@@ -446,7 +446,7 @@ public function getName()
446446
*
447447
* @param string $description The description for the command
448448
*
449-
* @return Command The current instance
449+
* @return $this
450450
*/
451451
public function setDescription($description)
452452
{
@@ -470,7 +470,7 @@ public function getDescription()
470470
*
471471
* @param string $help The help for the command
472472
*
473-
* @return Command The current instance
473+
* @return $this
474474
*/
475475
public function setHelp($help)
476476
{
@@ -516,7 +516,7 @@ public function getProcessedHelp()
516516
*
517517
* @param string[] $aliases An array of aliases for the command
518518
*
519-
* @return Command The current instance
519+
* @return $this
520520
*
521521
* @throws \InvalidArgumentException When an alias is invalid
522522
*/
@@ -568,7 +568,7 @@ public function getSynopsis($short = false)
568568
*
569569
* @param string $usage The usage, it'll be prefixed with the command name
570570
*
571-
* @return Command The current instance
571+
* @return $this
572572
*/
573573
public function addUsage($usage)
574574
{

Formatter/OutputFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function getStyleStack()
206206
*
207207
* @param string $string
208208
*
209-
* @return OutputFormatterStyle|bool false if string is not format string
209+
* @return OutputFormatterStyle|false false if string is not format string
210210
*/
211211
private function createStyleFromString($string)
212212
{

Formatter/OutputFormatterStyleStack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getCurrent()
102102
/**
103103
* @param OutputFormatterStyleInterface $emptyStyle
104104
*
105-
* @return OutputFormatterStyleStack
105+
* @return $this
106106
*/
107107
public function setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
108108
{

Helper/DescriptorHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function describe(OutputInterface $output, $object, array $options = arra
7777
* @param string $format
7878
* @param DescriptorInterface $descriptor
7979
*
80-
* @return DescriptorHelper
80+
* @return $this
8181
*/
8282
public function register($format, DescriptorInterface $descriptor)
8383
{

Helper/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function setHelperSet(HelperSet $helperSet = null)
3535
/**
3636
* Gets the helper set associated with this helper.
3737
*
38-
* @return HelperSet A HelperSet instance
38+
* @return HelperSet|null
3939
*/
4040
public function getHelperSet()
4141
{

Helper/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static function setStyleDefinition($name, TableStyle $style)
9393
*
9494
* @param string $name The style name
9595
*
96-
* @return TableStyle A TableStyle instance
96+
* @return TableStyle
9797
*/
9898
public static function getStyleDefinition($name)
9999
{
@@ -113,7 +113,7 @@ public static function getStyleDefinition($name)
113113
*
114114
* @param TableStyle|string $name The style name or a TableStyle instance
115115
*
116-
* @return Table
116+
* @return $this
117117
*/
118118
public function setStyle($name)
119119
{

Helper/TableHelper.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($triggerDeprecationError = true)
4848
*
4949
* @param int $layout self::LAYOUT_*
5050
*
51-
* @return TableHelper
51+
* @return $this
5252
*
5353
* @throws \InvalidArgumentException when the table layout is not known
5454
*/
@@ -114,7 +114,7 @@ public function setRow($column, array $row)
114114
*
115115
* @param string $paddingChar
116116
*
117-
* @return TableHelper
117+
* @return $this
118118
*/
119119
public function setPaddingChar($paddingChar)
120120
{
@@ -128,7 +128,7 @@ public function setPaddingChar($paddingChar)
128128
*
129129
* @param string $horizontalBorderChar
130130
*
131-
* @return TableHelper
131+
* @return $this
132132
*/
133133
public function setHorizontalBorderChar($horizontalBorderChar)
134134
{
@@ -142,7 +142,7 @@ public function setHorizontalBorderChar($horizontalBorderChar)
142142
*
143143
* @param string $verticalBorderChar
144144
*
145-
* @return TableHelper
145+
* @return $this
146146
*/
147147
public function setVerticalBorderChar($verticalBorderChar)
148148
{
@@ -156,7 +156,7 @@ public function setVerticalBorderChar($verticalBorderChar)
156156
*
157157
* @param string $crossingChar
158158
*
159-
* @return TableHelper
159+
* @return $this
160160
*/
161161
public function setCrossingChar($crossingChar)
162162
{
@@ -170,7 +170,7 @@ public function setCrossingChar($crossingChar)
170170
*
171171
* @param string $cellHeaderFormat
172172
*
173-
* @return TableHelper
173+
* @return $this
174174
*/
175175
public function setCellHeaderFormat($cellHeaderFormat)
176176
{
@@ -184,7 +184,7 @@ public function setCellHeaderFormat($cellHeaderFormat)
184184
*
185185
* @param string $cellRowFormat
186186
*
187-
* @return TableHelper
187+
* @return $this
188188
*/
189189
public function setCellRowFormat($cellRowFormat)
190190
{
@@ -198,7 +198,7 @@ public function setCellRowFormat($cellRowFormat)
198198
*
199199
* @param string $cellRowContentFormat
200200
*
201-
* @return TableHelper
201+
* @return $this
202202
*/
203203
public function setCellRowContentFormat($cellRowContentFormat)
204204
{
@@ -212,7 +212,7 @@ public function setCellRowContentFormat($cellRowContentFormat)
212212
*
213213
* @param string $borderFormat
214214
*
215-
* @return TableHelper
215+
* @return $this
216216
*/
217217
public function setBorderFormat($borderFormat)
218218
{
@@ -226,7 +226,7 @@ public function setBorderFormat($borderFormat)
226226
*
227227
* @param int $padType STR_PAD_*
228228
*
229-
* @return TableHelper
229+
* @return $this
230230
*/
231231
public function setPadType($padType)
232232
{

Helper/TableStyle.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TableStyle
3434
*
3535
* @param string $paddingChar
3636
*
37-
* @return TableStyle
37+
* @return $this
3838
*/
3939
public function setPaddingChar($paddingChar)
4040
{
@@ -62,7 +62,7 @@ public function getPaddingChar()
6262
*
6363
* @param string $horizontalBorderChar
6464
*
65-
* @return TableStyle
65+
* @return $this
6666
*/
6767
public function setHorizontalBorderChar($horizontalBorderChar)
6868
{
@@ -86,7 +86,7 @@ public function getHorizontalBorderChar()
8686
*
8787
* @param string $verticalBorderChar
8888
*
89-
* @return TableStyle
89+
* @return $this
9090
*/
9191
public function setVerticalBorderChar($verticalBorderChar)
9292
{
@@ -110,7 +110,7 @@ public function getVerticalBorderChar()
110110
*
111111
* @param string $crossingChar
112112
*
113-
* @return TableStyle
113+
* @return $this
114114
*/
115115
public function setCrossingChar($crossingChar)
116116
{
@@ -134,7 +134,7 @@ public function getCrossingChar()
134134
*
135135
* @param string $cellHeaderFormat
136136
*
137-
* @return TableStyle
137+
* @return $this
138138
*/
139139
public function setCellHeaderFormat($cellHeaderFormat)
140140
{
@@ -158,7 +158,7 @@ public function getCellHeaderFormat()
158158
*
159159
* @param string $cellRowFormat
160160
*
161-
* @return TableStyle
161+
* @return $this
162162
*/
163163
public function setCellRowFormat($cellRowFormat)
164164
{
@@ -182,7 +182,7 @@ public function getCellRowFormat()
182182
*
183183
* @param string $cellRowContentFormat
184184
*
185-
* @return TableStyle
185+
* @return $this
186186
*/
187187
public function setCellRowContentFormat($cellRowContentFormat)
188188
{
@@ -206,7 +206,7 @@ public function getCellRowContentFormat()
206206
*
207207
* @param string $borderFormat
208208
*
209-
* @return TableStyle
209+
* @return $this
210210
*/
211211
public function setBorderFormat($borderFormat)
212212
{
@@ -230,7 +230,7 @@ public function getBorderFormat()
230230
*
231231
* @param int $padType STR_PAD_*
232232
*
233-
* @return TableStyle
233+
* @return $this
234234
*/
235235
public function setPadType($padType)
236236
{

Question/ChoiceQuestion.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getChoices()
5656
*
5757
* @param bool $multiselect
5858
*
59-
* @return ChoiceQuestion The current instance
59+
* @return $this
6060
*/
6161
public function setMultiselect($multiselect)
6262
{
@@ -91,7 +91,7 @@ public function getPrompt()
9191
*
9292
* @param string $prompt
9393
*
94-
* @return ChoiceQuestion The current instance
94+
* @return $this
9595
*/
9696
public function setPrompt($prompt)
9797
{
@@ -107,7 +107,7 @@ public function setPrompt($prompt)
107107
*
108108
* @param string $errorMessage
109109
*
110-
* @return ChoiceQuestion The current instance
110+
* @return $this
111111
*/
112112
public function setErrorMessage($errorMessage)
113113
{

0 commit comments

Comments
 (0)