Skip to content

Commit cd24f52

Browse files
committed
fixing typos
Assisted-by: Claude Code
1 parent da063c6 commit cd24f52

32 files changed

Lines changed: 35 additions & 35 deletions

File tree

‎src/content/docs-4.2/forms.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function bind(
192192
array $whitelist = []
193193
): Form
194194
```
195-
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the names of the `data`elements defined in the form, those elements will be populated with the values of the corresponding properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model](/4.2/db-models/) or even a `\stdClass`. The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the same name as an element in the `data` array will be ignored.
195+
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the names of the `data` elements defined in the form, those elements will be populated with the values of the corresponding properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model](/4.2/db-models/) or even a `\stdClass`. The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the same name as an element in the `data` array will be ignored.
196196

197197
The `bind` method takes the first array (e.g `$_POST`) and an entity object (e.g. `Invoices`). It loops through the array and if it finds an array key that exists in the form, it applies the necessary filters (defined in the form) to the value of the array. After that, it checks the entity object (`Invoices`) and assigns this value to any property that matches the array key. If a method exists as a setter with the same name as an array key, it will be called first (i.e. `name` -> `setName()`). This method allows us to quickly filter input and assign this input to the passed entity object.
198198

‎src/content/docs-4.2/upgrade.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ use Phalcon\Filter\FilterFactory;
360360
$factory = new FilterFactory();
361361
$locator = $factory->newInstance();
362362
```
363-
Calling`newInstance()` will return a [Phalcon\Filter](/4.2/api/phalcon_filter/#filter) object with all the sanitizers registered. The sanitizers are lazy loaded so they are instantiated only when called from the locator.
363+
Calling `newInstance()` will return a [Phalcon\Filter](/4.2/api/phalcon_filter/#filter) object with all the sanitizers registered. The sanitizers are lazy loaded so they are instantiated only when called from the locator.
364364

365365
#### Load Only Sanitizers You Want
366366
You can instantiate the [Phalcon\Filter](/4.2/api/phalcon_filter/#filter) component and either use the `set()` method to set all the sanitizers you need, or pass an array in the constructor with the sanitizers you want to register.

‎src/content/docs-5.11/forms.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function bind(
192192
array $whitelist = []
193193
): Form
194194
```
195-
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the names of the `data`elements defined in the form, those elements will be populated with the values of the corresponding properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`. The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the same name as an element in the `data` array will be ignored.
195+
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the names of the `data` elements defined in the form, those elements will be populated with the values of the corresponding properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`. The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the same name as an element in the `data` array will be ignored.
196196

197197
The `bind` method takes the first array (e.g. `$_POST`) and an entity object (e.g. `Invoices`). It loops through the array and if it finds an array key that exists in the form, it applies the necessary filters (defined in the form) to the value of the array. After that, it checks the entity object (`Invoices`) and assigns this value to any property that matches the array key. If a method exists as a setter with the same name as an array key, it will be called first (i.e. `name` -> `setName()`). This method allows us to quickly filter input and assign this input to the passed entity object.
198198

‎src/content/docs-5.12/forms.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function bind(
192192
array $whitelist = []
193193
): Form
194194
```
195-
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the names of the `data`elements defined in the form, those elements will be populated with the values of the corresponding properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`. The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the same name as an element in the `data` array will be ignored.
195+
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the names of the `data` elements defined in the form, those elements will be populated with the values of the corresponding properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`. The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the same name as an element in the `data` array will be ignored.
196196

197197
The `bind` method takes the first array (e.g. `$_POST`) and an entity object (e.g. `Invoices`). It loops through the array and if it finds an array key that exists in the form, it applies the necessary filters (defined in the form) to the value of the array. After that, it checks the entity object (`Invoices`) and assigns this value to any property that matches the array key. If a method exists as a setter with the same name as an array key, it will be called first (i.e. `name` -> `setName()`). This method allows us to quickly filter input and assign this input to the passed entity object.
198198

‎src/content/docs-5.13/db-layer.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,8 +2707,8 @@ $idx = new Index(
27072707
$connection->addIndex('users', null, $idx);
27082708
```
27092709

2710-
The MySQL and PostgreSQL dialects wrap each expression entry in extra parentheses (`KEY idx (\`tenant_id\`, (LOWER(
2711-
email)))`); SQLite emits the expression directly. Expressions compose with `directions` and `where` without any
2710+
The MySQL and PostgreSQL dialects wrap each expression entry in extra parentheses (``KEY idx (`tenant_id`, (LOWER(
2711+
email)))``); SQLite emits the expression directly. Expressions compose with `directions` and `where` without any
27122712
additional API surface.
27132713

27142714
#### Concurrent Index Creation (PostgreSQL)

‎src/content/docs-5.13/forms.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function bind(
208208

209209
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The
210210
second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the
211-
names of the `data`elements defined in the form, those elements will be populated with the values of the corresponding
211+
names of the `data` elements defined in the form, those elements will be populated with the values of the corresponding
212212
properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`.
213213
The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the
214214
same name as an element in the `data` array will be ignored.

‎src/content/docs-5.14/db-layer.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,8 +2734,8 @@ $idx = new Index(
27342734
$connection->addIndex('users', null, $idx);
27352735
```
27362736

2737-
The MySQL and PostgreSQL dialects wrap each expression entry in extra parentheses (`KEY idx (\`tenant_id\`, (LOWER(
2738-
email)))`); SQLite emits the expression directly. Expressions compose with `directions` and `where` without any
2737+
The MySQL and PostgreSQL dialects wrap each expression entry in extra parentheses (``KEY idx (`tenant_id`, (LOWER(
2738+
email)))``); SQLite emits the expression directly. Expressions compose with `directions` and `where` without any
27392739
additional API surface.
27402740

27412741
#### Concurrent Index Creation (PostgreSQL)

‎src/content/docs-5.14/forms.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function bind(
208208

209209
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The
210210
second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the
211-
names of the `data`elements defined in the form, those elements will be populated with the values of the corresponding
211+
names of the `data` elements defined in the form, those elements will be populated with the values of the corresponding
212212
properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`.
213213
The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the
214214
same name as an element in the `data` array will be ignored.

‎src/content/docs-5.15/db-layer.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,8 +2823,8 @@ $idx = new Index(
28232823
$connection->addIndex('users', null, $idx);
28242824
```
28252825

2826-
The MySQL and PostgreSQL dialects wrap each expression entry in extra parentheses (`KEY idx (\`tenant_id\`, (LOWER(
2827-
email)))`); SQLite emits the expression directly. Expressions compose with `directions` and `where` without any
2826+
The MySQL and PostgreSQL dialects wrap each expression entry in extra parentheses (``KEY idx (`tenant_id`, (LOWER(
2827+
email)))``); SQLite emits the expression directly. Expressions compose with `directions` and `where` without any
28282828
additional API surface.
28292829

28302830
#### Concurrent Index Creation (PostgreSQL)

‎src/content/docs-5.15/forms.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function bind(
208208

209209
Binds data to the entity. The first parameter `data` is an array of key/values. This usually is the `$_POST` array. The
210210
second parameter `entity` is an entity object. If the properties of the entity object contain properties that match the
211-
names of the `data`elements defined in the form, those elements will be populated with the values of the corresponding
211+
names of the `data` elements defined in the form, those elements will be populated with the values of the corresponding
212212
properties of the entity. The entity can be an object such as a [Phalcon\Mvc\Model][db-models] or even a `\stdClass`.
213213
The third parameter `whitelist` is an array of whitelisted elements. Any element in the `whitelist` array that has the
214214
same name as an element in the `data` array will be ignored.

0 commit comments

Comments
 (0)