File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 13
13
14
14
namespace ApiPlatform \Metadata \Extractor ;
15
15
16
+ use ApiPlatform \Elasticsearch \State \Options ;
16
17
use ApiPlatform \Metadata \Exception \InvalidArgumentException ;
17
18
use ApiPlatform \Metadata \GetCollection ;
18
19
use ApiPlatform \Metadata \Post ;
19
- use ApiPlatform \Elasticsearch \State \Options ;
20
20
use ApiPlatform \OpenApi \Model \ExternalDocumentation ;
21
21
use ApiPlatform \OpenApi \Model \Operation as OpenApiOperation ;
22
22
use ApiPlatform \OpenApi \Model \Parameter ;
@@ -446,9 +446,9 @@ private function buildStateOptions(\SimpleXMLElement $resource): ?OptionsInterfa
446
446
}
447
447
$ elasticsearchOptions = $ stateOptions ->elasticsearchOptions ?? null ;
448
448
if ($ elasticsearchOptions ) {
449
- if (class_exists (Options::class)) {
450
- return new Options (isset ($ elasticsearchOptions ['index ' ]) ? (string ) $ elasticsearchOptions ['index ' ] : null , isset ($ elasticsearchOptions ['type ' ]) ? (string ) $ elasticsearchOptions ['type ' ] : null );
451
- }
449
+ if (class_exists (Options::class)) {
450
+ return new Options (isset ($ elasticsearchOptions ['index ' ]) ? (string ) $ elasticsearchOptions ['index ' ] : null , isset ($ elasticsearchOptions ['type ' ]) ? (string ) $ elasticsearchOptions ['type ' ] : null );
451
+ }
452
452
}
453
453
454
454
return null ;
Original file line number Diff line number Diff line change 13
13
14
14
namespace ApiPlatform \Metadata \Extractor ;
15
15
16
+ use ApiPlatform \Elasticsearch \State \Options ;
16
17
use ApiPlatform \Metadata \Exception \InvalidArgumentException ;
17
18
use ApiPlatform \Metadata \GetCollection ;
18
19
use ApiPlatform \Metadata \Post ;
19
- use ApiPlatform \Elasticsearch \State \Options ;
20
20
use ApiPlatform \OpenApi \Model \ExternalDocumentation ;
21
21
use ApiPlatform \OpenApi \Model \Operation as OpenApiOperation ;
22
22
use ApiPlatform \OpenApi \Model \Parameter ;
You can’t perform that action at this time.
0 commit comments