Skip to content

Commit 2f2e686

Browse files
committed
fix lint
1 parent 0e29239 commit 2f2e686

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

core/content-negotiation.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ merge new encoders and normalizers in API Platform.
356356
## JSON:API sparse fieldset and sort parameters
357357

358358
> [!WARNING]
359-
> The SortFilter is for Eloquent, the Doctrine equivalent is the OrderFilter.
359+
> The SortFilter is for Eloquent, the Doctrine equivalent is the OrderFilter.
360360
> The config/api-platform.php is Laravel specific.
361361

362362
When working with JSON:API you may want to declare the `SparseFieldset` and the
@@ -371,11 +371,11 @@ use ApiPlatform\JsonApi\Filter\SparseFieldset;
371371
use ApiPlatform\Laravel\Eloquent\Filter\JsonApi\SortFilter;
372372
373373
return [
374-
// ...
375-
'parameters' => [
376-
new QueryParameter(key: 'fields', filter: SparseFieldset::class),
377-
new QueryParameter(key: 'sort', filter: SortFilter::class),
378-
],
374+
// ...
375+
'parameters' => [
376+
new QueryParameter(key: 'fields', filter: SparseFieldset::class),
377+
new QueryParameter(key: 'sort', filter: SortFilter::class),
378+
],
379379
];
380380
```
381381

core/elasticsearch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ application search, security analytics, metrics, logging, etc.
88
API Platform comes natively with the **reading** support for Elasticsearch. It uses internally the official PHP client
99
for Elasticsearch: [Elasticsearch-PHP](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html).
1010

11-
Be careful, API Platform only supports Elasticsearch >= 7.11.0 < 8.0 and Elasticsearch >= 8.4 < 9.0. Support for
11+
Be careful, API Platform only supports Elasticsearch >= 7.11.0 < 8.0 and Elasticsearch >= 8.4 < 9.0. Support for
1212
Elasticsearch 8 was introduced in API Platform 3.2.
1313

1414
## Enabling Reading Support

core/errors.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Since 3.4, you also have the possibility to link your specific domain exceptions
330330
directly in your OpenAPI definition !
331331

332332
Let's say that you have a `Greetings` resource, and that one of its providers can throw the following exception for the
333-
`ApiPlatform\Metadata\GetCollection` Operation:
333+
`ApiPlatform\Metadata\GetCollection` Operation:
334334

335335
```php
336336
use ApiPlatform\Metadata\ErrorResource;
@@ -369,7 +369,7 @@ class MyDomainException extends \Exception implements ProblemExceptionInterface
369369
```
370370

371371
As long as your Exception implements `ApiPlatform\Metadata\Exception\ProblemExceptionInterface` and has the `ErrorResource`
372-
attribute, you can then map it to your Operation this way:
372+
attribute, you can then map it to your Operation this way:
373373

374374
```php
375375
use ApiPlatform\Metadata\ApiResource;

0 commit comments

Comments
 (0)