Skip to content

Commit 0c3ddf2

Browse files
committed
TASK: Clean up code
- tweak use statement order - whitespace fixes
1 parent a9b67d0 commit 0c3ddf2

19 files changed

Lines changed: 40 additions & 41 deletions

Classes/Command/NodeIndexCommandController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* source code.
1212
*/
1313

14-
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\Error\ErrorInterface;
1514
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\NodeTypeMappingBuilderInterface;
15+
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\Error\ErrorInterface;
1616
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\LoggerInterface;
1717
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Service\ErrorHandlingService;
1818
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Service\IndexWorkspaceTrait;

Classes/Driver/AbstractIndexerDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* source code.
1212
*/
1313

14-
use Neos\Flow\Annotations as Flow;
1514
use Neos\ContentRepository\Domain\Model\NodeInterface;
15+
use Neos\Flow\Annotations as Flow;
1616

1717
/**
1818
* Abstract Fulltext Indexer Driver

Classes/Driver/AbstractNodeTypeMappingBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
use Neos\ContentRepository\Domain\Service\NodeTypeManager;
1515
use Neos\Error\Messages\Result;
1616
use Neos\Flow\Annotations as Flow;
17-
use Neos\Flow\Configuration\Exception\InvalidConfigurationTypeException;
1817
use Neos\Flow\Configuration\ConfigurationManager;
18+
use Neos\Flow\Configuration\Exception\InvalidConfigurationTypeException;
1919
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
2020

2121
/**

Classes/Driver/AbstractQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function moreLikeThis(array $like, array $fields = [], $options = [])
121121
if (!empty($fields)) {
122122
$moreLikeThis['fields'] = $fields;
123123
}
124-
124+
125125
$this->appendAtPath('query.bool.filter.bool.must', ['more_like_this' => $moreLikeThis]);
126126
}
127127

Classes/Driver/QueryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public function highlight($fragmentSize, $fragmentCount = null);
9696
* @param array $aggregationDefinition
9797
* @param string $parentPath ParentPath to define the parent of a sub aggregation
9898
* @return void
99-
* @api
10099
* @throws Exception\QueryBuildingException
100+
* @api
101101
*/
102102
public function aggregation($name, array $aggregationDefinition, $parentPath = '');
103103

Classes/Driver/RequestDriverInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* information, please view the LICENSE file which was distributed with this
1111
* source code.
1212
*/
13+
1314
use Flowpack\ElasticSearch\Domain\Model\Index;
1415

1516
/**

Classes/Driver/Version5/DocumentDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
* source code.
1212
*/
1313

14-
use Neos\Flow\Annotations as Flow;
1514
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractDriver;
1615
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\DocumentDriverInterface;
1716
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\NodeTypeMappingBuilderInterface;
1817
use Flowpack\ElasticSearch\Domain\Model\Index;
1918
use Neos\ContentRepository\Domain\Model\NodeInterface;
2019
use Neos\ContentRepository\Domain\Model\NodeType;
20+
use Neos\Flow\Annotations as Flow;
2121

2222
/**
2323
* Document driver for Elasticsearch version 5.x

Classes/Driver/Version5/IndexDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
* source code.
1212
*/
1313

14-
use Neos\Flow\Annotations as Flow;
1514
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractDriver;
1615
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\IndexDriverInterface;
1716
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception;
17+
use Neos\Flow\Annotations as Flow;
1818

1919
/**
2020
* Index management driver for Elasticsearch version 5.x

Classes/Driver/Version5/IndexerDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* source code.
1212
*/
1313

14+
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractIndexerDriver;
15+
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\IndexerDriverInterface;
1416
use Flowpack\ElasticSearch\Domain\Model\Document as ElasticSearchDocument;
1517
use Neos\ContentRepository\Domain\Model\NodeInterface;
1618
use Neos\Flow\Annotations as Flow;
17-
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractIndexerDriver;
18-
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\IndexerDriverInterface;
1919

2020
/**
2121
* Indexer driver for Elasticsearch version 5.x

Classes/Driver/Version5/Mapping/NodeTypeMappingBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
* source code.
1212
*/
1313

14-
use Neos\Flow\Annotations as Flow;
1514
use Flowpack\ElasticSearch\ContentRepositoryAdaptor\Driver\AbstractNodeTypeMappingBuilder;
1615
use Flowpack\ElasticSearch\Domain\Model\Index;
1716
use Flowpack\ElasticSearch\Domain\Model\Mapping;
1817
use Flowpack\ElasticSearch\Mapping\MappingCollection;
1918
use Neos\ContentRepository\Domain\Model\NodeType;
2019
use Neos\Error\Messages\Result;
2120
use Neos\Error\Messages\Warning;
21+
use Neos\Flow\Annotations as Flow;
2222
use Neos\Flow\Configuration\Exception\InvalidConfigurationTypeException;
2323
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
2424

0 commit comments

Comments
 (0)