Skip to content

Commit

Permalink
EZP-31783: Updated CS #3
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev committed Sep 23, 2020
1 parent 0e3c6cf commit 502ce9c
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ private function getAllowedContentTypesIdentifiers(

$restrictedContentTypes = $contentTypeService->loadContentTypeList($restrictedContentTypesIds);

return array_values(array_map(static function (ContentType $contentType): string {
return $contentType->identifier;
}, (array)$restrictedContentTypes));
return array_values(
array_map(
static function (ContentType $contentType): string {
return $contentType->identifier;
},
iterator_to_array($restrictedContentTypes)
)
);
}

/**
Expand Down

0 comments on commit 502ce9c

Please sign in to comment.