mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
Fix cs with new cs rules (php-cs-fixer version 3.35)
This commit is contained in:
@@ -28,7 +28,7 @@ final readonly class ExportFormHelper
|
||||
private FormFactoryInterface $formFactory,
|
||||
) {}
|
||||
|
||||
public function getDefaultData(string $step, ExportInterface|DirectExportInterface $export, array $options = []): array
|
||||
public function getDefaultData(string $step, DirectExportInterface|ExportInterface $export, array $options = []): array
|
||||
{
|
||||
return match ($step) {
|
||||
'centers', 'generate_centers' => ['centers' => $this->authorizationHelper->getReachableCenters($export->requiredRole())],
|
||||
@@ -45,7 +45,7 @@ final readonly class ExportFormHelper
|
||||
return $formatter->getFormDefaultData($options['aggregator_aliases']);
|
||||
}
|
||||
|
||||
private function getDefaultDataStepExport(ExportInterface|DirectExportInterface $export, array $options): array
|
||||
private function getDefaultDataStepExport(DirectExportInterface|ExportInterface $export, array $options): array
|
||||
{
|
||||
$data = [
|
||||
ExportType::EXPORT_KEY => $export->getFormDefaultData(),
|
||||
|
@@ -101,7 +101,7 @@ class ExportManager
|
||||
*
|
||||
* @return FilterInterface[] a \Generator that contains filters. The key is the filter's alias
|
||||
*/
|
||||
public function &getFiltersApplyingOn(ExportInterface|DirectExportInterface $export, ?array $centers = null): iterable
|
||||
public function &getFiltersApplyingOn(DirectExportInterface|ExportInterface $export, ?array $centers = null): iterable
|
||||
{
|
||||
if ($export instanceof DirectExportInterface) {
|
||||
return;
|
||||
@@ -124,7 +124,7 @@ class ExportManager
|
||||
*
|
||||
* @return null|iterable<string, AggregatorInterface> a \Generator that contains aggretagors. The key is the filter's alias
|
||||
*/
|
||||
public function &getAggregatorsApplyingOn(ExportInterface|DirectExportInterface $export, ?array $centers = null): ?iterable
|
||||
public function &getAggregatorsApplyingOn(DirectExportInterface|ExportInterface $export, ?array $centers = null): ?iterable
|
||||
{
|
||||
if ($export instanceof ListInterface || $export instanceof DirectExportInterface) {
|
||||
return;
|
||||
@@ -307,7 +307,7 @@ class ExportManager
|
||||
*
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
public function getExport($alias): ExportInterface|DirectExportInterface
|
||||
public function getExport($alias): DirectExportInterface|ExportInterface
|
||||
{
|
||||
if (!array_key_exists($alias, $this->exports)) {
|
||||
throw new RuntimeException("The export with alias {$alias} is not known.");
|
||||
@@ -453,7 +453,7 @@ class ExportManager
|
||||
*
|
||||
*/
|
||||
public function isGrantedForElement(
|
||||
ExportInterface|DirectExportInterface|ModifierInterface $element,
|
||||
DirectExportInterface|ExportInterface|ModifierInterface $element,
|
||||
\Chill\MainBundle\Export\DirectExportInterface|\Chill\MainBundle\Export\ExportInterface $export = null,
|
||||
?array $centers = null
|
||||
): bool {
|
||||
|
Reference in New Issue
Block a user