Skip to content

Commit 6b25c54

Browse files
committed
Typofixes
1 parent 55f8d66 commit 6b25c54

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Diff for: README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Array (
6464
)
6565
```
6666

67-
**Find one item by criteria.** This method my return `null`.
67+
**Find one item by criteria.** This method may return `null`.
6868

6969
```php
7070
$repo->findOneBy([
@@ -132,13 +132,13 @@ $persistence = new Persistence\YamlFilePersistence('path/to/yaml');
132132

133133
### Methods API
134134

135-
| Method | Parameters | Return | Description |
136-
| ------- | --------------- | ------------ | ------------- |
137-
| create | `array` data | `string|int` | New ID |
138-
| read | `string|int` id | `array` | The record |
139-
| readAll | | array | All records |
140-
| update | `array` data | `int` | Affected rows |
141-
| delete | `string|int` | `int` | Affected rows |
135+
| Method | Parameters | Return | Description |
136+
| ------- | ---------------- | ------------- | ------------- |
137+
| create | `array` data | `string¦int` | New ID |
138+
| read | `string¦int` id | `array` | The record |
139+
| readAll | | array | All records |
140+
| update | `array` data | `int` | Affected rows |
141+
| delete | `string¦int` | `int` | Affected rows |
142142

143143
### Special implementations
144144

@@ -199,12 +199,12 @@ $repository = new Repository($persistence)
199199

200200
| Method | Required Parameters | Optional | Return | Description |
201201
| --------- | --------------------- | -------------------------------------------------------- | ------------------- | ------------ |
202-
| get | `string|id` id | | `array|object` | The record |
203-
| findOneBy | `array` criteria | | `array|object|null` | One record |
202+
| get | `string¦int` id | | `array¦object` | The record |
203+
| findOneBy | `array` criteria | | `array¦object¦null` | One record |
204204
| findAll | | | `iterable` | All records |
205205
| findBy | `array` criteria | `?array` orderBy,<br /> `?int` limit<br /> `?int` offset | `iterable` | Some records |
206-
| save | `array|object` entity | | `bool` | |
207-
| delete | `array|object` entity | | `bool` | |
206+
| save | `array¦object` entity | | `bool` | |
207+
| delete | `array¦object` entity | | `bool` | |
208208

209209
---
210210

0 commit comments

Comments
 (0)