Skip to content

Commit 4969582

Browse files
committed
typos
1 parent cca740e commit 4969582

File tree

6 files changed

+35
-35
lines changed

6 files changed

+35
-35
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author David Grudl
2020
*
21-
* @property-read Nette\Forms\Form $form
21+
* @property-read Form $form
2222
* @property-read string $htmlName
2323
* @property string $htmlId
2424
* @property-read array $options
@@ -28,10 +28,10 @@
2828
* @property-write $defaultValue
2929
* @property bool $disabled
3030
* @property bool $omitted
31-
* @property-read Nette\Utils\Html $control
32-
* @property-read Nette\Utils\Html $label
33-
* @property-read Nette\Utils\Html $controlPrototype
34-
* @property-read Nette\Utils\Html $labelPrototype
31+
* @property-read Html $control
32+
* @property-read Html $label
33+
* @property-read Html $controlPrototype
34+
* @property-read Html $labelPrototype
3535
* @property-read Nette\Forms\Rules $rules
3636
* @property bool $required
3737
* @property-read array $errors
@@ -47,10 +47,10 @@ abstract class BaseControl extends Nette\ComponentModel\Component implements ICo
4747
/** @var mixed current control value */
4848
protected $value;
4949

50-
/** @var Nette\Utils\Html control element template */
50+
/** @var Html control element template */
5151
protected $control;
5252

53-
/** @var Nette\Utils\Html label element template */
53+
/** @var Html label element template */
5454
protected $label;
5555

5656
/** @var array */
@@ -103,7 +103,7 @@ protected function attached($form)
103103
/**
104104
* Returns form.
105105
* @param bool throw exception if form doesn't exist?
106-
* @return Nette\Forms\Form
106+
* @return Form
107107
*/
108108
public function getForm($need = TRUE)
109109
{
@@ -242,7 +242,7 @@ public function isOmitted()
242242

243243
/**
244244
* Generates control's HTML element.
245-
* @return Nette\Utils\Html|string
245+
* @return Html|string
246246
*/
247247
public function getControl()
248248
{
@@ -261,7 +261,7 @@ public function getControl()
261261
/**
262262
* Generates label's HTML element.
263263
* @param string
264-
* @return Nette\Utils\Html|string
264+
* @return Html|string
265265
*/
266266
public function getLabel($caption = NULL)
267267
{
@@ -274,7 +274,7 @@ public function getLabel($caption = NULL)
274274

275275
/**
276276
* Returns control's HTML element template.
277-
* @return Nette\Utils\Html
277+
* @return Html
278278
*/
279279
public function getControlPrototype()
280280
{
@@ -284,7 +284,7 @@ public function getControlPrototype()
284284

285285
/**
286286
* Returns label's HTML element template.
287-
* @return Nette\Utils\Html
287+
* @return Html
288288
*/
289289
public function getLabelPrototype()
290290
{
@@ -408,7 +408,7 @@ public function addCondition($validator, $value = NULL)
408408

409409
/**
410410
* Adds a validation condition based on another control a returns new branch.
411-
* @param Nette\Forms\IControl form control
411+
* @param IControl form control
412412
* @param mixed condition type
413413
* @param mixed optional condition arguments
414414
* @return Nette\Forms\Rules new branch

src/Forms/Controls/CheckboxList.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
*
1717
* @author David Grudl
1818
*
19-
* @property-read Nette\Utils\Html $separatorPrototype
19+
* @property-read Html $separatorPrototype
2020
*/
2121
class CheckboxList extends MultiChoiceControl
2222
{
23-
/** @var Nette\Utils\Html separator element template */
23+
/** @var Html separator element template */
2424
protected $separator;
2525

2626

@@ -59,7 +59,7 @@ public function getControl()
5959
/**
6060
* Generates label's HTML element.
6161
* @param string
62-
* @return Nette\Utils\Html
62+
* @return Html
6363
*/
6464
public function getLabel($caption = NULL)
6565
{
@@ -69,7 +69,7 @@ public function getLabel($caption = NULL)
6969

7070
/**
7171
* Returns separator HTML element template.
72-
* @return Nette\Utils\Html
72+
* @return Html
7373
*/
7474
public function getSeparatorPrototype()
7575
{
@@ -78,7 +78,7 @@ public function getSeparatorPrototype()
7878

7979

8080
/**
81-
* @return Nette\Utils\Html
81+
* @return Html
8282
*/
8383
public function getControlPart($key)
8484
{
@@ -93,7 +93,7 @@ public function getControlPart($key)
9393

9494

9595
/**
96-
* @return Nette\Utils\Html
96+
* @return Html
9797
*/
9898
public function getLabelPart($key)
9999
{

src/Forms/Controls/RadioList.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
*
1717
* @author David Grudl
1818
*
19-
* @property-read Nette\Utils\Html $separatorPrototype
20-
* @property-read Nette\Utils\Html $containerPrototype
21-
* @property-read Nette\Utils\Html $itemLabelPrototype
19+
* @property-read Html $separatorPrototype
20+
* @property-read Html $containerPrototype
21+
* @property-read Html $itemLabelPrototype
2222
*/
2323
class RadioList extends ChoiceControl
2424
{
2525
/** @var bool */
2626
public $generateId = FALSE;
2727

28-
/** @var Nette\Utils\Html separator element template */
28+
/** @var Html separator element template */
2929
protected $separator;
3030

31-
/** @var Nette\Utils\Html container element template */
31+
/** @var Html container element template */
3232
protected $container;
3333

34-
/** @var Nette\Utils\Html item label template */
34+
/** @var Html item label template */
3535
protected $itemLabel;
3636

3737

@@ -61,7 +61,7 @@ public function getValue()
6161

6262
/**
6363
* Returns separator HTML element template.
64-
* @return Nette\Utils\Html
64+
* @return Html
6565
*/
6666
public function getSeparatorPrototype()
6767
{
@@ -71,7 +71,7 @@ public function getSeparatorPrototype()
7171

7272
/**
7373
* Returns container HTML element template.
74-
* @return Nette\Utils\Html
74+
* @return Html
7575
*/
7676
public function getContainerPrototype()
7777
{
@@ -81,7 +81,7 @@ public function getContainerPrototype()
8181

8282
/**
8383
* Returns item label HTML element template.
84-
* @return Nette\Utils\Html
84+
* @return Html
8585
*/
8686
public function getItemLabelPrototype()
8787
{
@@ -91,7 +91,7 @@ public function getItemLabelPrototype()
9191

9292
/**
9393
* Generates control's HTML element.
94-
* @return Nette\Utils\Html
94+
* @return Html
9595
*/
9696
public function getControl()
9797
{
@@ -123,7 +123,7 @@ public function getControl()
123123
/**
124124
* Generates label's HTML element.
125125
* @param string
126-
* @return Nette\Utils\Html
126+
* @return Html
127127
*/
128128
public function getLabel($caption = NULL)
129129
{
@@ -132,7 +132,7 @@ public function getLabel($caption = NULL)
132132

133133

134134
/**
135-
* @return Nette\Utils\Html
135+
* @return Html
136136
*/
137137
public function getControlPart($key)
138138
{
@@ -146,7 +146,7 @@ public function getControlPart($key)
146146

147147

148148
/**
149-
* @return Nette\Utils\Html
149+
* @return Html
150150
*/
151151
public function getLabelPart($key)
152152
{

src/Forms/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static function createInputList(array $items, array $inputAttrs = NULL, a
165165

166166

167167
/**
168-
* @return Nette\Utils\Html
168+
* @return Html
169169
*/
170170
public static function createSelectBox(array $items, array $optionAttrs = NULL)
171171
{

src/Forms/Rendering/DefaultFormRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public function renderControl(Nette\Forms\IControl $control)
456456

457457
/**
458458
* @param string
459-
* @return Nette\Utils\Html
459+
* @return Html
460460
*/
461461
protected function getWrapper($name)
462462
{

src/Forms/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Validator extends Nette\Object
4040
Form::MAX_POST_SIZE => 'The uploaded data exceeds the limit of %d bytes.',
4141
Form::MIME_TYPE => 'The uploaded file is not in the expected format.',
4242
Form::IMAGE => 'The uploaded file must be image in format JPEG, GIF or PNG.',
43-
Nette\Forms\Controls\SelectBox::VALID => 'Please select a valid option.',
43+
Controls\SelectBox::VALID => 'Please select a valid option.',
4444
);
4545

4646

0 commit comments

Comments
 (0)