Skip to content

Commit 3e0446c

Browse files
committed
removed duplicated phpDoc
1 parent d2d89b0 commit 3e0446c

14 files changed

+0
-74
lines changed

src/Forms/Controls/Checkbox.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,12 @@ public function setValue($value)
4949
}
5050

5151

52-
/**
53-
* Is control filled?
54-
*/
5552
public function isFilled(): bool
5653
{
5754
return $this->getValue() !== false; // back compatibility
5855
}
5956

6057

61-
/**
62-
* Generates control's HTML element.
63-
*/
6458
public function getControl(): Html
6559
{
6660
return $this->wrapper->setHtml($this->getLabelPart()->insert(0, $this->getControlPart()));

src/Forms/Controls/CheckboxList.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ public function __construct($label = null, array $items = null)
4646
}
4747

4848

49-
/**
50-
* Generates control's HTML element.
51-
*/
5249
public function getControl(): Html
5350
{
5451
$input = parent::getControl();
@@ -72,10 +69,6 @@ public function getControl(): Html
7269
}
7370

7471

75-
/**
76-
* Generates label's HTML element.
77-
* @param string|object $caption
78-
*/
7972
public function getLabel($caption = null): Html
8073
{
8174
return parent::getLabel($caption)->for(null);

src/Forms/Controls/ChoiceControl.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public function __construct($label = null, array $items = null)
3636
}
3737

3838

39-
/**
40-
* Loads HTTP data.
41-
*/
4239
public function loadHttpData(): void
4340
{
4441
$this->value = $this->getHttpData(Nette\Forms\Form::DATA_TEXT);

src/Forms/Controls/CsrfProtection.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ public function setValue($value)
5252
}
5353

5454

55-
/**
56-
* Loads HTTP data.
57-
*/
5855
public function loadHttpData(): void
5956
{
6057
$this->value = $this->getHttpData(Nette\Forms\Form::DATA_TEXT);
@@ -80,9 +77,6 @@ private function generateToken(string $random = null): string
8077
}
8178

8279

83-
/**
84-
* Generates control's HTML element.
85-
*/
8680
public function getControl(): Nette\Utils\Html
8781
{
8882
return parent::getControl()->value($this->generateToken());

src/Forms/Controls/HiddenField.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ public function setValue($value)
5656
}
5757

5858

59-
/**
60-
* Returns control's value.
61-
* @return mixed
62-
*/
6359
public function getValue()
6460
{
6561
return $this->nullable && $this->value === '' ? null : $this->value;
@@ -88,9 +84,6 @@ public function addFilter(callable $filter)
8884
}
8985

9086

91-
/**
92-
* Generates control's HTML element.
93-
*/
9487
public function getControl(): Nette\Utils\Html
9588
{
9689
$this->setOption('rendered', true);
@@ -105,7 +98,6 @@ public function getControl(): Nette\Utils\Html
10598

10699
/**
107100
* Bypasses label generation.
108-
* @param string|object $caption
109101
*/
110102
public function getLabel($caption = null)
111103
{

src/Forms/Controls/ImageButton.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ public function __construct(string $src = null, string $alt = null)
2828
}
2929

3030

31-
/**
32-
* Loads HTTP data.
33-
*/
3431
public function loadHttpData(): void
3532
{
3633
parent::loadHttpData();
@@ -40,9 +37,6 @@ public function loadHttpData(): void
4037
}
4138

4239

43-
/**
44-
* Returns HTML name of control.
45-
*/
4640
public function getHtmlName(): string
4741
{
4842
return parent::getHtmlName() . '[]';

src/Forms/Controls/MultiChoiceControl.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public function __construct($label = null, array $items = null)
3636
}
3737

3838

39-
/**
40-
* Loads HTTP data.
41-
*/
4239
public function loadHttpData(): void
4340
{
4441
$this->value = array_keys(array_flip($this->getHttpData(Nette\Forms\Form::DATA_TEXT)));

src/Forms/Controls/MultiSelectBox.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ public function setItems(array $items, bool $useKeys = true)
5656
}
5757

5858

59-
/**
60-
* Generates control's HTML element.
61-
*/
6259
public function getControl(): Nette\Utils\Html
6360
{
6461
$items = [];

src/Forms/Controls/RadioList.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ public function __construct($label = null, array $items = null)
4949
}
5050

5151

52-
/**
53-
* Generates control's HTML element.
54-
*/
5552
public function getControl(): Html
5653
{
5754
$input = parent::getControl();
@@ -79,10 +76,6 @@ public function getControl(): Html
7976
}
8077

8178

82-
/**
83-
* Generates label's HTML element.
84-
* @param string|object $caption
85-
*/
8679
public function getLabel($caption = null): Html
8780
{
8881
return parent::getLabel($caption)->for(null);

src/Forms/Controls/SelectBox.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ public function setItems(array $items, bool $useKeys = true)
8989
}
9090

9191

92-
/**
93-
* Generates control's HTML element.
94-
*/
9592
public function getControl(): Nette\Utils\Html
9693
{
9794
$items = $this->prompt === false ? [] : ['' => $this->translate($this->prompt)];

0 commit comments

Comments
 (0)