Skip to content

Commit 2b182a3

Browse files
committed
style: cs fixes
1 parent 84abbf2 commit 2b182a3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Metadata/Extractor/XmlResourceExtractor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\Metadata\Extractor;
1515

16+
use ApiPlatform\Elasticsearch\State\Options;
1617
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
1718
use ApiPlatform\Metadata\GetCollection;
1819
use ApiPlatform\Metadata\Post;
19-
use ApiPlatform\Elasticsearch\State\Options;
2020
use ApiPlatform\OpenApi\Model\ExternalDocumentation;
2121
use ApiPlatform\OpenApi\Model\Operation as OpenApiOperation;
2222
use ApiPlatform\OpenApi\Model\Parameter;
@@ -446,9 +446,9 @@ private function buildStateOptions(\SimpleXMLElement $resource): ?OptionsInterfa
446446
}
447447
$elasticsearchOptions = $stateOptions->elasticsearchOptions ?? null;
448448
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+
}
452452
}
453453

454454
return null;

src/Metadata/Extractor/YamlResourceExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\Metadata\Extractor;
1515

16+
use ApiPlatform\Elasticsearch\State\Options;
1617
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
1718
use ApiPlatform\Metadata\GetCollection;
1819
use ApiPlatform\Metadata\Post;
19-
use ApiPlatform\Elasticsearch\State\Options;
2020
use ApiPlatform\OpenApi\Model\ExternalDocumentation;
2121
use ApiPlatform\OpenApi\Model\Operation as OpenApiOperation;
2222
use ApiPlatform\OpenApi\Model\Parameter;

0 commit comments

Comments
 (0)