Skip to content

Commit 249f516

Browse files
radekdostaldg
authored andcommitted
typos
1 parent 70e0b5f commit 249f516

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Nette\Forms greatly facilitates creating and processing web forms. What it can r
1515

1616
Why should you bother setting up framework for a simple web form? You won't have to take care about routine tasks such as writing two validation scripts (client and server) and your code will be safe against security breaches.
1717

18-
Nette Framework puts a great effort to be safe and since forms are the most common user input, Nette forms are as good as impenetrable. All is maintained dynamically and transparently, nothing has to be set manually. Well known vulnerabilities such as Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) are filtered, as well as special control characters. All inputs are checked for UTF-8 validity. Every multiple-choice, select boxe and similar are checked for forged values upon validating. Sounds good? Let's try it out.
18+
Nette Framework puts a great effort to be safe and since forms are the most common user input, Nette forms are as good as impenetrable. All is maintained dynamically and transparently, nothing has to be set manually. Well known vulnerabilities such as Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) are filtered, as well as special control characters. All inputs are checked for UTF-8 validity. Every multiple-choice, select box and similar are checked for forged values upon validating. Sounds good? Let's try it out.
1919

2020
[See documentation](https://doc.nette.org/en/forms).
2121

tests/Forms/Controls.SelectBox.loadData.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test(function () use ($series) { // Select
3939
});
4040

4141

42-
test(function () use ($series) { // Empty select
42+
test(function () { // Empty select
4343
$_POST = ['select' => 'red-dwarf'];
4444

4545
$form = new Form;
@@ -65,7 +65,7 @@ test(function () use ($series) { // Select with prompt
6565
});
6666

6767

68-
test(function () use ($series) { // Select with optgroups
68+
test(function () { // Select with optgroups
6969
$_POST = ['select' => 'red-dwarf'];
7070

7171
$form = new Form;
@@ -192,7 +192,7 @@ test(function () use ($series) { // setItems without keys
192192
});
193193

194194

195-
test(function () use ($series) { // setItems without keys
195+
test(function () { // setItems without keys
196196
$form = new Form;
197197
$input = $form->addSelect('select')->setItems(range(1, 5), FALSE);
198198
Assert::same([1 => 1, 2, 3, 4, 5], $input->getItems());

tests/Forms/Forms.validationScope.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require __DIR__ . '/../bootstrap.php';
1313

1414

1515
$datasets = [
16-
['send1', ['container', 'form', 'name', 'age', 'age2']],
16+
['send1', ['container', 'form', 'name', 'age', 'age2']],
1717
['send2', ['form']],
1818
['send3', ['form', 'name']],
1919
['send4', ['form', 'age']],

0 commit comments

Comments
 (0)