diff --git a/api/v1/_submissions/BackendSubmissionsController.php b/api/v1/_submissions/BackendSubmissionsController.php index 329676442f..4be14e358b 100644 --- a/api/v1/_submissions/BackendSubmissionsController.php +++ b/api/v1/_submissions/BackendSubmissionsController.php @@ -28,7 +28,7 @@ protected function getSubmissionCollector(array $queryParams): Collector if (isset($queryParams['sectionIds'])) { $collector->filterBySectionIds( - array_map('intval', paramToArray($queryParams['sectionIds'])) + array_map(intval(...), paramToArray($queryParams['sectionIds'])) ); } diff --git a/classes/search/PreprintSearchIndex.php b/classes/search/PreprintSearchIndex.php index d7394ff968..9e25df4114 100644 --- a/classes/search/PreprintSearchIndex.php +++ b/classes/search/PreprintSearchIndex.php @@ -58,8 +58,8 @@ public function submissionMetadataChanged($submission) array_values((array) $author->getData('givenName')), array_values((array) $author->getData('familyName')), array_values((array) $author->getData('preferredPublicName')), - array_values(array_map('strip_tags', (array) $author->getData('affiliation'))), - array_values(array_map('strip_tags', (array) $author->getData('biography'))) + array_values(array_map(strip_tags(...), (array) $author->getData('affiliation'))), + array_values(array_map(strip_tags(...), (array) $author->getData('biography'))) ); } diff --git a/plugins/metadata/dc11/filter/Dc11SchemaPreprintAdapter.php b/plugins/metadata/dc11/filter/Dc11SchemaPreprintAdapter.php index 884e8c00d9..1b8425e50f 100644 --- a/plugins/metadata/dc11/filter/Dc11SchemaPreprintAdapter.php +++ b/plugins/metadata/dc11/filter/Dc11SchemaPreprintAdapter.php @@ -114,7 +114,7 @@ public function &extractMetadataFromDataObject(&$submission) // Contributor $contributors = (array) $publication->getData('sponsor'); foreach ($contributors as $locale => $contributor) { - $contributors[$locale] = array_map('trim', explode(';', $contributor)); + $contributors[$locale] = array_map(trim(...), explode(';', $contributor)); } $this->_addLocalizedElements($dc11Description, 'dc:contributor', $contributors);