Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig authored and github-actions[bot] committed Nov 14, 2024
1 parent 6bcbfdc commit 5a07fc6
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Model/SearchIndex/HitData.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public function getIndex(): string
{
return $this->index;
}
}
}
2 changes: 1 addition & 1 deletion src/Repository/IndexQueueRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public function enqueueBySelectQuery(DBALQueryBuilder $queryBuilder): void

/**
* @throws DBALException
*
* @param HitData[] $enqueueItemList
*/
public function enqueueByItemList(array $enqueueItemList, IndexQueueOperation $operation, int $operationTime): void
Expand Down Expand Up @@ -226,7 +227,6 @@ public function enqueueByItemList(array $enqueueItemList, IndexQueueOperation $o
);
}


/**
* @throws DBALException
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public function fetchAllTypesAndIds(
OpenSearchSearchInterface $search,
string $indexName,
bool $sortById = true
): array
{
): array {
$search = clone $search;
if ($sortById) {
$search->setSortList(new FieldSortList([new FieldSort(SystemField::ID->getPath())]));
Expand Down
1 change: 0 additions & 1 deletion src/Service/ElementService.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public function getElementType(ElementInterface $element): ElementType
};
}


public function classDefinitionExists(string $name): bool
{
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public function __construct(
private ElementServiceInterface $elementService,
private FetchIdsBySearchServiceInterface $fetchIdsService,
private IndexNameResolverInterface $indexNameResolver,
private IndexNameResolverInterface $indexNameResolver,
private SearchProviderInterface $searchProvider,
private TransformToAdapterSearchServiceInterface $transformToAdapterSearchService,
) {
Expand All @@ -54,4 +54,4 @@ public function getDependencyList(ElementInterface $element): array
$this->indexNameResolver->resolveIndexName($search)
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ interface RequiredByElementListServiceInterface
{
/**
* Returns array of IDs,element types and index name of all elements which require passed element ($element).
*
* @return HitData[]
*/
public function getDependencyList(ElementInterface $element): array;
}
}
3 changes: 1 addition & 2 deletions src/Service/SearchIndex/IndexQueueService.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ private function handleQueueByOperation(
ElementInterface $element,
string $operation,
bool $processSynchronously
): void
{
): void {
$this->enqueueService->enqueueRelatedItems(
element: $element,
includeElement: !$processSynchronously,
Expand Down
2 changes: 0 additions & 2 deletions src/Service/SearchIndex/IndexService/IndexService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
use Pimcore\Bundle\GenericDataIndexBundle\SearchIndexAdapter\SearchIndexServiceInterface;
use Pimcore\Bundle\GenericDataIndexBundle\Service\SearchIndex\IndexService\ElementTypeAdapter\AdapterServiceInterface;
use Pimcore\Bundle\GenericDataIndexBundle\Traits\LoggerAwareTrait;
use Pimcore\Model\Asset;
use Pimcore\Model\DataObject\AbstractObject;
use Pimcore\Model\Element\ElementInterface;
use Symfony\Component\Serializer\Exception\ExceptionInterface;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
namespace Pimcore\Bundle\GenericDataIndexBundle\Service\SearchIndex\IndexService;

use Pimcore\Bundle\GenericDataIndexBundle\Exception\IndexDataException;
use Pimcore\Model\Asset;
use Pimcore\Model\Element\ElementInterface;

/**
Expand Down

0 comments on commit 5a07fc6

Please sign in to comment.