Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.x' into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
herbertroth committed Jan 15, 2024
2 parents e9f13fc + 1804b94 commit 10f7835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Service/SearchIndex/DataObject/FieldDefinitionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

namespace Pimcore\Bundle\GenericDataIndexBundle\Service\SearchIndex\DataObject;

use Pimcore\{
Bundle\GenericDataIndexBundle\Service\SearchIndex\DataObject\FieldDefinitionAdapter\FieldDefinitionAdapterInterface,
Model\DataObject\ClassDefinition};
use Pimcore\Bundle\GenericDataIndexBundle\Service\SearchIndex\DataObject\FieldDefinitionAdapter\FieldDefinitionAdapterInterface;

Check warning on line 16 in src/Service/SearchIndex/DataObject/FieldDefinitionService.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Line is longer than allowed by code style

Line is longer than allowed by code style (\> 120 columns)

Check warning on line 16 in src/Service/SearchIndex/DataObject/FieldDefinitionService.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Line is longer than allowed by code style

Line is longer than allowed by code style (\> 120 columns)
use Pimcore\Model\DataObject\ClassDefinition;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

Check notice on line 19 in src/Service/SearchIndex/DataObject/FieldDefinitionService.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Unused import

Import 'Psr\\Container\\NotFoundExceptionInterface' is never used
use Symfony\Component\DependencyInjection\ServiceLocator;
Expand Down
5 changes: 3 additions & 2 deletions src/Service/SearchIndex/IndexService/AssetIndexService.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ protected function doUpdateMapping(): AssetIndexService

/**
* @param Asset $element
*
* @throws \JsonException

Check notice on line 139 in src/Service/SearchIndex/IndexService/AssetIndexService.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Fully qualified name usage

Qualifier can be replaced with an import
*/
protected function getIndexData(ElementInterface $element): array
Expand Down Expand Up @@ -169,10 +170,10 @@ private function getSystemFieldsIndexData(Asset $asset): array
SystemField::ID->value => $asset->getId(),
SystemField::CREATION_DATE->value => $date->setTimestamp(
$asset->getCreationDate())->format(DateTimeInterface::ATOM
),
),
SystemField::MODIFICATION_DATE->value => $date->setTimestamp(
$asset->getModificationDate())->format(DateTimeInterface::ATOM
),
),
SystemField::TYPE->value => $asset->getType(),
SystemField::KEY->value => $asset->getKey(),
SystemField::PATH->value => $asset->getPath(),
Expand Down

0 comments on commit 10f7835

Please sign in to comment.