Skip to content

Commit bc129bc

Browse files
koriymclaude
andcommitted
docs: Fix markdown formatting based on AI review
- Convert bold text to proper markdown headings for better TOC - Add closing form tag and blank line for proper HTML structure - Wrap checkbox/select examples in form tag for consistency - Fix Note formatting by removing extraneous colon 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fdbf0a3 commit bc129bc

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ final class UserListController
153153
}
154154
```
155155

156-
**Query data format for arrays:**
156+
#### Query data format for arrays
157157

158158
Arrays should be submitted as indexed arrays. Here's how to structure HTML forms and the resulting data:
159159

@@ -166,6 +166,7 @@ Arrays should be submitted as indexed arrays. Here's how to structure HTML forms
166166
<input name="users[1][id]" value="2">
167167
<input name="users[1][name]" value="Horikawa">
168168
</form>
169+
169170
```
170171

171172
This will be received as:
@@ -182,22 +183,24 @@ $args = $inputQuery->getArguments($method, $data);
182183
// $args[0] will be an array of UserInput objects
183184
```
184185

185-
**Simple array values (e.g., checkboxes):**
186+
#### Simple array values (e.g., checkboxes)
186187

187188
For simple arrays like checkboxes or multi-select:
188189

189190
```html
190-
<!-- Checkbox group -->
191-
<input name="hobbies[]" type="checkbox" value="music">
192-
<input name="hobbies[]" type="checkbox" value="sports">
193-
<input name="hobbies[]" type="checkbox" value="reading">
194-
195-
<!-- Multi-select -->
196-
<select name="categories[]" multiple>
197-
<option value="tech">Technology</option>
198-
<option value="business">Business</option>
199-
<option value="lifestyle">Lifestyle</option>
200-
</select>
191+
<form method="post">
192+
<!-- Checkbox group -->
193+
<input name="hobbies[]" type="checkbox" value="music">
194+
<input name="hobbies[]" type="checkbox" value="sports">
195+
<input name="hobbies[]" type="checkbox" value="reading">
196+
197+
<!-- Multi-select -->
198+
<select name="categories[]" multiple>
199+
<option value="tech">Technology</option>
200+
<option value="business">Business</option>
201+
<option value="lifestyle">Lifestyle</option>
202+
</select>
203+
</form>
201204
```
202205

203206
This will be received as:
@@ -217,14 +220,14 @@ public function updatePreferences(
217220
}
218221
```
219222

220-
**Note:** For non-array parameters, use flat naming without brackets:
223+
**Note**: For non-array parameters, use flat naming without brackets:
221224
```html
222225
<!-- Single object properties -->
223226
<input name="customerName" value="Jingu">
224227
<input name="customerEmail" value="jingu@example.com">
225228
```
226229

227-
**ArrayObject Inheritance Support:**
230+
#### ArrayObject Inheritance Support
228231

229232
Custom ArrayObject subclasses are also supported:
230233

0 commit comments

Comments
 (0)