Skip to content

Commit

Permalink
Fixed code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Aug 9, 2023
1 parent a6ad1c4 commit 2651348
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
7 changes: 6 additions & 1 deletion src/lib/Repository/Helper/NameSchemaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 6 additions & 1 deletion tests/lib/Repository/NameSchema/NameSchemaServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ public static function getDataForTestResolveNameSchema(): iterable
* @param array<string> $languageCodes
* @param array<string, string> $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 = '<text3|text2>';
Expand Down

0 comments on commit 2651348

Please sign in to comment.