diff --git a/src/contracts/Repository/NameSchema/NameSchemaServiceInterface.php b/src/contracts/Repository/NameSchema/NameSchemaServiceInterface.php index ac7ba9fbe5..6f3a6cf8a1 100644 --- a/src/contracts/Repository/NameSchema/NameSchemaServiceInterface.php +++ b/src/contracts/Repository/NameSchema/NameSchemaServiceInterface.php @@ -46,5 +46,10 @@ public function resolveContentNameSchema( * * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException */ - public function resolveNameSchema(string $nameSchema, ContentType $contentType, array $fieldMap, array $languageCodes): array; + public function resolveNameSchema( + string $nameSchema, + ContentType $contentType, + array $fieldMap, + array $languageCodes + ): array; } diff --git a/src/lib/Repository/Helper/NameSchemaService.php b/src/lib/Repository/Helper/NameSchemaService.php index 002b0179d7..2ad482c492 100644 --- a/src/lib/Repository/Helper/NameSchemaService.php +++ b/src/lib/Repository/Helper/NameSchemaService.php @@ -50,7 +50,12 @@ public function resolveContentNameSchema( ); } - public function resolveNameSchema(string $nameSchema, ContentType $contentType, array $fieldMap, array $languageCodes): array + public function resolveNameSchema( + string $nameSchema, + ContentType $contentType, + array $fieldMap, + array $languageCodes + ): array { [$filteredNameSchema, $groupLookupTable] = $this->filterNameSchema($nameSchema); $tokens = $this->extractTokens($filteredNameSchema); diff --git a/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php b/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php index 19813b391f..b4dd2b00ac 100644 --- a/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php +++ b/tests/lib/Repository/NameSchema/NameSchemaServiceTest.php @@ -107,7 +107,12 @@ public static function getDataForTestResolveNameSchema(): iterable * @param array $languageCodes * @param array $expectedNames */ - public function testResolveNameSchema(array $fieldMap, array $tokenValues, array $languageCodes, array $expectedNames): void + public function testResolveNameSchema( + array $fieldMap, + array $tokenValues, + array $languageCodes, + array $expectedNames + ): void { $content = $this->buildTestContentObject(); $nameSchema = '';