Skip to content

Commit b8ddbbf

Browse files
committed
TASK: Add / clean up imports
1 parent 2593c9c commit b8ddbbf

14 files changed

Lines changed: 28 additions & 25 deletions

Classes/AssetExtraction/IngestAttachmentAssetExtractor.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
* source code.
1414
*/
1515

16+
use Flowpack\ElasticSearch\Transfer\Exception\ApiException;
1617
use Neos\Flow\Annotations as Flow;
1718
use Neos\ContentRepository\Search\AssetExtraction\AssetExtractorInterface;
1819
use Neos\ContentRepository\Search\Dto\AssetContent;
1920
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\ElasticSearchClient;
21+
use Neos\Flow\Http\Exception;
2022
use Neos\Flow\Log\ThrowableStorageInterface;
2123
use Neos\Flow\Log\Utility\LogEnvironment;
2224
use Neos\Media\Domain\Model\AssetInterface;
@@ -58,8 +60,8 @@ class IngestAttachmentAssetExtractor implements AssetExtractorInterface
5860
* @param AssetInterface $asset
5961
* @return AssetContent
6062
* @throws \Flowpack\ElasticSearch\Transfer\Exception
61-
* @throws \Flowpack\ElasticSearch\Transfer\Exception\ApiException
62-
* @throws \Neos\Flow\Http\Exception
63+
* @throws ApiException
64+
* @throws Exception
6365
*/
6466
public function extract(AssetInterface $asset): AssetContent
6567
{

Classes/Client/ClientFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\ElasticSearchClient;
1717
use Flowpack\ElasticSearch\Domain\Model\Client;
18+
use Flowpack\ElasticSearch\Exception;
1819
use Neos\Flow\Annotations as Flow;
1920

2021
/**
@@ -32,7 +33,7 @@ class ClientFactory
3233
* Create a client
3334
*
3435
* @return Client
35-
* @throws \Flowpack\ElasticSearch\Exception
36+
* @throws Exception
3637
*/
3738
public function create(): Client
3839
{

Classes/Command/NodeTypeCommandController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* source code.
1414
*/
1515

16+
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception;
1617
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Service\NodeTypeIndexingConfiguration;
1718
use Neos\ContentRepository\Domain\Model\NodeType;
1819
use Neos\ContentRepository\Domain\Service\NodeTypeManager;
@@ -69,7 +70,7 @@ public function showCommand(?string $nodeType = null): void
6970
/**
7071
* Shows a list of NodeTypes and if they are configured to be indexable or not
7172
*
72-
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
73+
* @throws Exception
7374
*/
7475
public function showIndexableConfigurationCommand(): void
7576
{

Classes/Driver/DocumentDriverInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
* source code.
1515
*/
1616

17-
use Flowpack\ElasticSearch\Domain\Model\Index;
1817
use Neos\ContentRepository\Domain\Model\NodeInterface;
19-
use Neos\ContentRepository\Domain\Model\NodeType;
2018

2119
/**
2220
* Elasticsearch Document Driver Interface

Classes/Driver/NodeTypeMappingBuilderInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616

1717
use Flowpack\ElasticSearch\Domain\Model\Index;
18+
use Flowpack\ElasticSearch\Domain\Model\Mapping;
1819
use Flowpack\ElasticSearch\Mapping\MappingCollection;
1920
use Neos\Error\Messages\Result;
2021

@@ -27,7 +28,7 @@ interface NodeTypeMappingBuilderInterface
2728
* Builds a Mapping Collection from the configured node types
2829
*
2930
* @param Index $index
30-
* @return MappingCollection<\Flowpack\ElasticSearch\Domain\Model\Mapping>
31+
* @return MappingCollection<Mapping>
3132
*/
3233
public function buildMappingInformation(Index $index): MappingCollection;
3334

Classes/Driver/Version6/DocumentDriver.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515

1616
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractDriver;
1717
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\DocumentDriverInterface;
18-
use Flowpack\ElasticSearch\Domain\Model\Index;
19-
use Flowpack\ElasticSearch\Domain\Model\Mapping;
2018
use Neos\ContentRepository\Domain\Model\NodeInterface;
21-
use Neos\ContentRepository\Domain\Model\NodeType;
2219
use Neos\Flow\Annotations as Flow;
23-
use Neos\Flow\Log\Utility\LogEnvironment;
2420

2521
/**
2622
* Document driver for Elasticsearch version 6.x

Classes/Driver/Version6/IndexerDriver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515

1616
use Neos\Flow\Annotations as Flow;
17-
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\NodeIndexer;
1817
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractIndexerDriver;
1918
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\IndexerDriverInterface;
2019
use Flowpack\ElasticSearch\Domain\Model\Document as ElasticSearchDocument;

Classes/Driver/Version6/Mapping/NodeTypeMappingBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* source code.
1414
*/
1515

16+
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception;
1617
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Service\NodeTypeIndexingConfiguration;
1718
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractNodeTypeMappingBuilder;
1819
use Flowpack\ElasticSearch\Domain\Model\Index;
@@ -39,8 +40,8 @@ class NodeTypeMappingBuilder extends AbstractNodeTypeMappingBuilder
3940
* Builds a Mapping Collection from the configured node types
4041
*
4142
* @param Index $index
42-
* @return MappingCollection<\Flowpack\ElasticSearch\Domain\Model\Mapping>
43-
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
43+
* @return MappingCollection<Mapping>
44+
* @throws Exception
4445
*/
4546
public function buildMappingInformation(Index $index): MappingCollection
4647
{

Classes/Driver/Version6/RequestDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\RequestDriverInterface;
1818
use Flowpack\ElasticSearch\Domain\Model\Index;
1919
use Neos\Flow\Annotations as Flow;
20+
use Neos\Flow\Http\Exception;
2021

2122
/**
2223
* Request driver for Elasticsearch version 6.x
@@ -28,7 +29,7 @@ class RequestDriver extends AbstractDriver implements RequestDriverInterface
2829
/**
2930
* {@inheritdoc}
3031
* @throws \Flowpack\ElasticSearch\Exception
31-
* @throws \Neos\Flow\Http\Exception
32+
* @throws Exception
3233
*/
3334
public function bulk(Index $index, $request): array
3435
{

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Neos\Flow\Log\ThrowableStorageInterface;
2222
use Neos\Flow\Log\Utility\LogEnvironment;
2323
use Neos\Flow\Persistence\Exception\IllegalObjectTypeException;
24-
use Neos\Flow\Persistence\QueryResultInterface;
2524
use Psr\Log\LoggerInterface;
2625
use Flowpack\ElasticSearch\Transfer\Exception\ApiException;
2726
use Neos\ContentRepository\Domain\Model\NodeInterface;
@@ -575,7 +574,7 @@ public function getFullElasticSearchHitForNode(NodeInterface $node): ?array
575574
*
576575
* This method is rather internal; just to be called from the ElasticSearchQueryResult. For the public API, please use execute()
577576
*
578-
* @return array<\Neos\ContentRepository\Domain\Model\NodeInterface>
577+
* @return array<NodeInterface>
579578
* @throws Exception
580579
* @throws \Flowpack\ElasticSearch\Exception
581580
* @throws \Neos\Flow\Http\Exception

0 commit comments

Comments
 (0)