Skip to content

Commit 21dbaf0

Browse files
committed
CR fixes
1 parent 48072bf commit 21dbaf0

File tree

8 files changed

+20
-8
lines changed

8 files changed

+20
-8
lines changed

src/bundle/Core/DependencyInjection/Configuration/Parser/Embeddings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @copyright Copyright (C) Ibexa AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7+
declare(strict_types=1);
8+
79
namespace Ibexa\Bundle\Core\DependencyInjection\Configuration\Parser;
810

911
use Ibexa\Bundle\Core\DependencyInjection\Configuration\AbstractParser;
@@ -26,7 +28,7 @@
2628
* default_embedding_model: text-embedding-ada-002
2729
* ```
2830
*/
29-
class Embeddings extends AbstractParser
31+
final class Embeddings extends AbstractParser
3032
{
3133
public function addSemanticConfig(NodeBuilder $nodeBuilder): void
3234
{

src/contracts/Repository/Values/Content/EmbeddingQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;
1212
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Embedding;
1313

14-
class EmbeddingQueryBuilder
14+
final class EmbeddingQueryBuilder
1515
{
1616
private EmbeddingQuery $query;
1717

src/contracts/Search/FieldType/EmbeddingField.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
* @copyright Copyright (C) Ibexa AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7+
declare(strict_types=1);
8+
79
namespace Ibexa\Contracts\Core\Search\FieldType;
810

911
use Ibexa\Contracts\Core\Search\FieldType;
1012

11-
class EmbeddingField extends FieldType
13+
final class EmbeddingField extends FieldType
1214
{
1315
private function __construct(string $type)
1416
{

src/contracts/Search/FieldType/EmbeddingFieldFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
* @copyright Copyright (C) Ibexa AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7+
declare(strict_types=1);
8+
79
namespace Ibexa\Contracts\Core\Search\FieldType;
810

911
use Ibexa\Contracts\Core\Search\Embedding\EmbeddingConfigurationInterface;
1012

11-
class EmbeddingFieldFactory
13+
final class EmbeddingFieldFactory
1214
{
1315
private EmbeddingConfigurationInterface $config;
1416

src/lib/Search/Common/FieldValueMapper/EmbeddingMapper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* @copyright Copyright (C) Ibexa AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7+
declare(strict_types=1);
8+
79
namespace Ibexa\Core\Search\Common\FieldValueMapper;
810

911
use Ibexa\Contracts\Core\Search\Field;
@@ -13,7 +15,7 @@
1315
/**
1416
* @internal for internal use by Search engine field value mapper
1517
*/
16-
class EmbeddingMapper extends FieldValueMapper
18+
final class EmbeddingMapper extends FieldValueMapper
1719
{
1820
public function canMap(Field $field): bool
1921
{

tests/bundle/Core/DependencyInjection/Configuration/Parser/EmbeddingsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
* @copyright Copyright (C) Ibexa AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7+
declare(strict_types=1);
8+
79
namespace Ibexa\Tests\Bundle\Core\DependencyInjection\Configuration\Parser;
810

911
use Ibexa\Bundle\Core\DependencyInjection\Configuration\Parser\Embeddings as EmbeddingsConfigParser;
1012
use Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension;
1113
use Symfony\Component\Yaml\Yaml;
1214

13-
class EmbeddingsTest extends AbstractParserTestCase
15+
final class EmbeddingsTest extends AbstractParserTestCase
1416
{
1517
protected function getContainerExtensions(): array
1618
{

tests/integration/Core/Repository/Values/Content/EmbeddingQueryBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use InvalidArgumentException;
2020
use PHPUnit\Framework\TestCase;
2121

22-
class EmbeddingQueryBuilderTest extends TestCase
22+
final class EmbeddingQueryBuilderTest extends TestCase
2323
{
2424
public function testBuilderSetsAllowedProperties(): void
2525
{

tests/integration/Core/Search/FieldType/EmbeddingFieldFactoryTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
* @copyright Copyright (C) Ibexa AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7+
declare(strict_types=1);
8+
79
namespace Ibexa\Tests\Integration\Core\Search\FieldType;
810

911
use Ibexa\Contracts\Core\Search\Embedding\EmbeddingConfigurationInterface;
1012
use Ibexa\Contracts\Core\Search\FieldType\EmbeddingFieldFactory;
1113
use PHPUnit\Framework\TestCase;
1214

13-
class EmbeddingFieldFactoryTest extends TestCase
15+
final class EmbeddingFieldFactoryTest extends TestCase
1416
{
1517
public function testCreateUsesConfigSuffix(): void
1618
{

0 commit comments

Comments
 (0)