Skip to content

Commit 65a8dab

Browse files
committed
cs
1 parent 0e0e2dd commit 65a8dab

19 files changed

+16
-55
lines changed

src/Forms/Container.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ public function getValues($returnType = null)
125125
}
126126

127127

128-
/**
129-
* @return static
130-
*/
128+
/** @return static */
131129
public function setMappedType(string $type)
132130
{
133131
$this->mappedType = $type;
@@ -194,9 +192,7 @@ public function getErrors(): array
194192
/********************* form building ****************d*g**/
195193

196194

197-
/**
198-
* @return static
199-
*/
195+
/** @return static */
200196
public function setCurrentGroup(ControlGroup $group = null)
201197
{
202198
$this->currentGroup = $group;

src/Forms/ControlGroup.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ public function __construct()
3232
}
3333

3434

35-
/**
36-
* @return static
37-
*/
35+
/** @return static */
3836
public function add(...$items)
3937
{
4038
foreach ($items as $item) {
@@ -73,9 +71,7 @@ public function removeOrphans(): void
7371
}
7472

7573

76-
/**
77-
* @return IControl[]
78-
*/
74+
/** @return IControl[] */
7975
public function getControls(): array
8076
{
8177
return iterator_to_array($this->controls);

src/Forms/Controls/BaseControl.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ public function setCaption($caption)
105105
}
106106

107107

108-
/**
109-
* @return object|string
110-
*/
108+
/** @return object|string */
111109
public function getCaption()
112110
{
113111
return $this->caption;
@@ -524,9 +522,7 @@ public function cleanErrors(): void
524522
}
525523

526524

527-
/**
528-
* @deprecated
529-
*/
525+
/** @deprecated */
530526
public static function enableAutoOptionalMode(): void
531527
{
532528
trigger_error(__METHOD__ . '() is deprecated.', E_USER_DEPRECATED);

src/Forms/Controls/Button.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818
class Button extends BaseControl
1919
{
20-
2120
/**
2221
* @param string|object $caption
2322
*/

src/Forms/Controls/ChoiceControl.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ public function setDisabled($value = true)
149149
}
150150

151151

152-
/**
153-
* @return static
154-
*/
152+
/** @return static */
155153
public function checkDefaultValue(bool $value = true)
156154
{
157155
$this->checkDefaultValue = $value;

src/Forms/Controls/CsrfProtection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ public function getControl(): Nette\Utils\Html
8989
}
9090

9191

92-
/**
93-
* @internal
94-
*/
92+
/** @internal */
9593
public static function validateCsrf(self $control): bool
9694
{
9795
$value = (string) $control->getValue();

src/Forms/Controls/ImageButton.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
class ImageButton extends SubmitButton
1717
{
18-
1918
/**
2019
* @param string $src URI of the image
2120
* @param string $alt alternate text for the image

src/Forms/Controls/MultiChoiceControl.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ public function getHtmlName(): string
161161
}
162162

163163

164-
/**
165-
* @return static
166-
*/
164+
/** @return static */
167165
public function checkDefaultValue(bool $value = true)
168166
{
169167
$this->checkDefaultValue = $value;

src/Forms/Controls/MultiSelectBox.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ public function getControl(): Nette\Utils\Html
7676
}
7777

7878

79-
/**
80-
* @return static
81-
*/
79+
/** @return static */
8280
public function addOptionAttributes(array $attributes)
8381
{
8482
$this->optionAttributes = $attributes + $this->optionAttributes;

src/Forms/Controls/SelectBox.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ public function getControl(): Nette\Utils\Html
109109
}
110110

111111

112-
/**
113-
* @return static
114-
*/
112+
/** @return static */
115113
public function addOptionAttributes(array $attributes)
116114
{
117115
$this->optionAttributes = $attributes + $this->optionAttributes;

0 commit comments

Comments
 (0)