8000 Fix: Remove useless phpdoc · symfony/symfony@920961e · GitHub
[go: up one dir, main page]

Skip to content

Commit 920961e

Browse files
committed
Fix: Remove useless phpdoc
1 parent d57e5ac commit 920961e

13 files changed

+45
-139
lines changed

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/AbstractActionInput.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,31 @@ abstract class AbstractActionInput implements ActionInterface
1818
{
1919
protected $options = [];
2020

21-
/**
22-
* @return $this
23-
*/
21+
2422
public function id(string $id): self
2523
{
2624
$this->options['id'] = $id;
2725

2826
return $this;
2927
}
3028

31-
/**
32-
* @return $this
33-
*/
29+
3430
public function isRequired(bool $required): self
3531
{
3632
$this->options['isRequired'] = $required;
3733

3834
return $this;
3935
}
4036

41-
/**
42-
* @return $this
43-
*/
37+
4438
public function title(string $title): self
4539
{
4640
$this->options['title'] = $title;
4741

4842
return $this;
4943
}
5044

51-
/**
52-
* @return $this
53-
*/
45+
5446
public function value(string $value): self
5547
{
5648
$this->options['value'] = $value;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/ActionCardAction.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,23 @@
2020
*/
2121
class ActionCardAction extends AbstractAction
2222
{
23-
/**
24-
* @return $this
25-
*/
23+
2624
public function name(string $name): self
2725
{
2826
$this->options['name'] = $name;
2927

3028
return $this;
3129
}
3230

33-
/**
34-
* @return $this
35-
*/
31+
3632
public function input(ActionInputInterface $inputAction): self
3733
{
3834
$this->options['inputs'][] = $inputAction->toArray();
3935

4036
return $this;
4137
}
4238

43-
/**
44-
* @return $this
45-
*/
39+
4640
public function action(ActionInterface $action): self
4741
{
4842
if (!\in_array(\get_class($action), [HttpPostAction::class, OpenUriAction::class])) {

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/DateInputAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
*/
1919
class DateInputAction extends AbstractActionInput
2020
{
21-
/**
22-
* @return $this
23-
*/
21+
2422
public function includeTime(bool $includeTime): self
2523
{
2624
$this->options['includeTime'] = $includeTime;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/HeaderActionElement.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818
*/
1919
class HeaderActionElement extends AbstractActionElement
2020
{
21-
/**
22-
* @return $this
23-
*/
21+
2422
public function name(string $name): self
2523
{
2624
$this->options['name'] = $name;
2725

2826
return $this;
2927
}
3028

31-
/**
32-
* @return $this
33-
*/
29+
3430
public function value(string $value): self
3531
{
3632
$this->options['value'] = $value;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/HttpPostAction.php

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,23 @@
2020
*/
2121
class HttpPostAction extends AbstractAction
2222
{
23-
/**
24-
* @return $this
25-
*/
23+
2624
public function name(string $name): self
2725
{
2826
$this->options['name'] = $name;
2927

3028
return $this;
3129
}
3230

33-
/**
34-
* @return $this
35-
*/
31+
3632
public function target(string $url): self
3733
{
3834
$this->options['target'] = $url;
3935

4036
return $this;
4137
}
4238

43-
/**
44-
* @return $this
45-
*/
39+
4640
public function header(ActionElementInterface $header): self
4741
{
4842
if (!$header instanceof HeaderActionElement) {
@@ -54,19 +48,15 @@ public function header(ActionElementInterface $header): self
5448
return $this;
5549
}
5650

57-
/**
58-
* @return $this
59-
*/
51+
6052
public function body(string $body): self
6153
{
6254
$this->options['body'] = $body;
6355

6456
return $this;
6557
}
6658

67-
/**
68-
* @return $this
69-
*/
59+
7060
public function bodyContentType(string $contentType): self
7161
{
7262
$this->options['bodyContentType'] = $contentType;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/InvokeAddInCommandAction.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,31 @@
1818
*/
1919
class InvokeAddInCommandAction extends AbstractAction
2020
{
21-
/**
22-
* @return $this
23-
*/
21+
2422
public function name(string $name): self
2523
{
2624
$this->options['name'] = $name;
2725

2826
return $this;
2927
}
3028

31-
/**
32-
* @return $this
33-
*/
29+
3430
public function addInId(string $addInId): self
3531
{
3632
$this->options['addInId'] = $addInId;
3733

3834
return $this;
3935
}
4036

41-
/**
42-
* @return $this
43-
*/
37+
4438
public function desktopCommandId(string $desktopCommandId): self
4539
{
4640
$this->options['desktopCommandId'] = $desktopCommandId;
4741

4842
return $this;
4943
}
5044

51-
/**
52-
* @return $this
53-
*/
45+
5446
public function initializationContext(array $context): self
5547
{
5648
$this->options['initializationContext'] = $context;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/MultiChoiceInputAction.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,23 @@
1818
*/
1919
class MultiChoiceInputAction extends AbstractActionInput
2020
{
21-
/**
22-
* @return $this
23-
*/
21+
2422
public function choice(string $display, string $value): self
2523
{
2624
$this->options['choices'][] = ['display' => $display, 'value' => $value];
2725

2826
return $this;
2927
}
3028

31-
/**
32-
* @return $this
33-
*/
29+
3430
public function isMultiSelect(bool $multiSelect): self
3531
{
3632
$this->options['isMultiSelect'] = $multiSelect;
3733

3834
return $this;
3935
}
4036

41-
/**
42-
* @return $this
43-
*/
37+
4438
public function style(string $style): self
4539
{
4640
$this->options['style'] = $style;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/OpenUriAction.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818
*/
1919
class OpenUriAction extends AbstractAction
2020
{
21-
/**
22-
* @return $this
23-
*/
21+
2422
public function name(string $name): self
2523
{
2624
$this->options['name'] = $name;
2725

2826
return $this;
2927
}
3028

31-
/**
32-
* @return $this
33-
*/
29+
3430
public function target(string $os, string $uri): self
3531
{
3632
$this->options['targets'][] = ['os' => $os, 'uri' => $uri];

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/TextInputAction.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818
*/
1919
class TextInputAction extends AbstractActionInput
2020
{
21-
/**
22-
* @return $this
23-
*/
21+
2422
public function isMultiline(bool $multiline): self
2523
{
2624
$this->options['isMultiline'] = $multiline;
2725

2826
return $this;
2927
}
3028

31-
/**
32-
* @return $this
33-
*/
29+
3430
public function maxLength(int $maxLength): self
3531
{
3632
$this->options['maxLength'] = $maxLength;

src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/MicrosoftTeamsOptions.php

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public function getRecipientId(): ?string
7070

7171
/**
7272
* @param string $path The hook path (anything after https://outlook.office.com)
73-
*
74-
* @return $this
7573
*/
7674
public function recipient(string $path): self
7775
{
@@ -86,8 +84,6 @@ public function recipient(string $path): self
8684

8785
/**
8886
* @param string $summary Markdown string
89-
*
90-
* @return $this
9187
*/
9288
public function summary(string $summary): self
9389
{
@@ -96,49 +92,39 @@ public function summary(string $summary): self
9692
return $this;
9793
}
9894

99-
/**
100-
* @return $this
101-
*/
95+
10296
public function title(string $title): self
10397
{
10498
$this->options['title'] = $title;
10599

106100
return $this;
107101
}
108102

109-
/**
110-
* @return $this
111-
*/
103+
112104
public function text(string $text): self
113105
{
114106
$this->options['text'] = $text;
115107

116108
return $this;
117109
}
118110

119-
/**
120-
* @return $this
121-
*/
111+
122112
public function themeColor(string $themeColor): self
123113
{
124114
$this->options['themeColor'] = $themeColor;
125115

126116
return $this;
127117
}
128118

129-
/**
130-
* @return $this
131-
*/
119+
132120
public function section(SectionInterface $section): self
133121
{
134122
$this->options['sections'][] = $section->toArray();
135123

136124
return $this;
137125
}
138126

139-
/**
140-
* @return $this
141-
*/
127+
142128
public function action(ActionInterface $action): self
143129
{
144130
if (self::MAX_ACTIONS === \count($this->options['potentialAction'])) {
@@ -150,9 +136,7 @@ public function action(ActionInterface $action): self
150136
return $this;
151137
}
152138

153-
/**
154-
* @return $this
155-
*/
139+
156140
public function expectedActor(string $actor): self
157141
{
158142
$this->options['expectedActors'][] = $actor;

0 commit comments

Comments
 (0)
0