More identation on some method parameters

This commit is contained in:
Julien Fastré 2023-09-13 10:10:04 +02:00
parent cd9611a669
commit 76f1814848
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -451,10 +451,12 @@ class ExportManager
* Return true if the current user has access to the ExportElement for every * 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. * 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) { if ($element instanceof ExportInterface || $element instanceof DirectExportInterface) {
$role = $element->requiredRole(); $role = $element->requiredRole();
} else { } 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) { if (null === $data) {
return []; return [];
@ -637,7 +639,7 @@ class ExportManager
* *
* @return array an array with types * @return array an array with types
*/ */
private function retrieveUsedFiltersType(mixed $data) private function retrieveUsedFiltersType(mixed $data): iterable
{ {
if (null === $data) { if (null === $data) {
return []; return [];