Skip to content

Commit 6057810

Browse files
szepeviktorpionl
authored andcommitted
Make README more READable
1 parent 9e0e1d7 commit 6057810

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ help with the documentation, new features, tests).
2222
```php
2323
$data = new \Wrkflow\GetValue\GetValue(new \Wrkflow\GetValue\DataHolders\ArrayData([
2424
'page' => 1,
25-
'items' => [['name' => 'test', 'tags' => null, 'label' => 'yes'], ['name' => 'test 2', 'tags' => ['test']]]
25+
'items' => [
26+
['name' => 'test', 'tags' => null, 'label' => 'yes'],
27+
['name' => 'test 2', 'tags' => ['test']],
28+
],
2629
]));
2730
$page = $data->getRequiredInt('page'); // Will throw MissingValueForKeyException
2831
$items = $data->getRequiredArray('items');
@@ -43,4 +46,3 @@ foreach ($items as $item) {
4346
## Documentation
4447

4548
Documentation is hosted on [GitHub Pages](https://php-get-typed-value.wrk-flow.com).
46-

0 commit comments

Comments
 (0)