Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Sep 6, 2023
1 parent d11f5b7 commit 2935f21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function onResolveUrlAliasSchema(ResolveUrlAliasSchemaEvent $event): void
$contentType = $content->getContentType();
$tokenValues = $this->processEvent(
array_map(
static function (Language $language) {
static function (Language $language): string {
return $language->getLanguageCode();
},
$event->getContent()->getVersionInfo()->getLanguages()
Expand Down
11 changes: 6 additions & 5 deletions src/lib/Repository/Helper/NameSchemaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Core\Repository\Helper;

use Ibexa\Contracts\Core\Persistence\Content\Type as SPIContentType;
Expand Down Expand Up @@ -35,9 +36,9 @@ public function __construct(
array $settings = []
) {
$this->settings = $settings + [
'limit' => 150,
'sequence' => '...',
];
'limit' => 150,
'sequence' => '...',
];

parent::__construct(
$fieldTypeRegistry,
Expand Down Expand Up @@ -113,7 +114,7 @@ public function resolveNameSchema(
return $names;
}

protected function mergeFieldMap(Content $content, array $fieldMap, array $languageCodes)
protected function mergeFieldMap(Content $content, array $fieldMap, array $languageCodes): array
{
if (empty($fieldMap)) {
return $content->fields;
Expand Down Expand Up @@ -145,7 +146,7 @@ protected function mergeFieldMap(Content $content, array $fieldMap, array $langu
*
* @see \Ibexa\Core\Repository\Values\ContentType\FieldType::getName()
*/
protected function getFieldTitles(array $schemaIdentifiers, $contentType, array $fieldMap, $languageCode)
protected function getFieldTitles(array $schemaIdentifiers, $contentType, array $fieldMap, $languageCode): array
{
$fieldTitles = [];

Expand Down

0 comments on commit 2935f21

Please sign in to comment.