diff --git a/src/Bundle/ChillMainBundle/Export/ExportManager.php b/src/Bundle/ChillMainBundle/Export/ExportManager.php index cebe04157..612ff4140 100644 --- a/src/Bundle/ChillMainBundle/Export/ExportManager.php +++ b/src/Bundle/ChillMainBundle/Export/ExportManager.php @@ -451,10 +451,12 @@ class ExportManager * Return true if the current user has access to the ExportElement for every * center, false if the user hasn't access to element for at least one center. * - * */ - public function isGrantedForElement(ExportInterface|DirectExportInterface|ModifierInterface $element, \Chill\MainBundle\Export\DirectExportInterface|\Chill\MainBundle\Export\ExportInterface $export = null, ?array $centers = null): bool - { + public function isGrantedForElement( + ExportInterface|DirectExportInterface|ModifierInterface $element, + \Chill\MainBundle\Export\DirectExportInterface|\Chill\MainBundle\Export\ExportInterface $export = null, + ?array $centers = null + ): bool { if ($element instanceof ExportInterface || $element instanceof DirectExportInterface) { $role = $element->requiredRole(); } else { @@ -615,9 +617,9 @@ class ExportManager } /** - * @param type $data the data from the filter key of the ExportType + * @param mixed $data the data from the filter key of the ExportType */ - private function retrieveUsedFilters($data) + private function retrieveUsedFilters(mixed $data): iterable { if (null === $data) { return []; @@ -637,7 +639,7 @@ class ExportManager * * @return array an array with types */ - private function retrieveUsedFiltersType(mixed $data) + private function retrieveUsedFiltersType(mixed $data): iterable { if (null === $data) { return [];