@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | if (is_array($value)) { |
94 | 94 | $flattened = []; |
95 | 95 | $this->flattenArray($value, $flattened); |
96 | - $data[$key] = array_filter($flattened, function ($item) { |
|
96 | + $data[$key] = array_filter($flattened, function($item) { |
|
97 | 97 | return is_scalar($item) && (bool)$item; |
98 | 98 | }); |
99 | 99 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | if (is_array($value)) { |
122 | 122 | $flattened = []; |
123 | 123 | $this->flattenArray($value, $flattened); |
124 | - $normalizedData[$key] = array_values(array_filter($flattened, function ($item) { |
|
124 | + $normalizedData[$key] = array_values(array_filter($flattened, function($item) { |
|
125 | 125 | return is_scalar($item) && (bool)$item; |
126 | 126 | })); |
127 | 127 | } else { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $flattened = []; |
168 | 168 | $this->flattenArray($value, $flattened); |
169 | 169 | |
170 | - return array_map('intval', array_filter($flattened, function ($item) { |
|
170 | + return array_map('intval', array_filter($flattened, function($item) { |
|
171 | 171 | return is_numeric($item) && $item > 0; |
172 | 172 | })); |
173 | 173 | } |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $result = []; |
183 | 183 | $this->flattenArray($data, $result); |
184 | 184 | |
185 | - $result = array_filter($result, function ($item) { |
|
185 | + $result = array_filter($result, function($item) { |
|
186 | 186 | return is_scalar($item) && (bool)$item; |
187 | 187 | }); |
188 | 188 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @return \Symfony\Component\HttpFoundation\RedirectResponse|array<string, mixed> |
66 | 66 | */ |
67 | - public function indexAction(Request $request): array|RedirectResponse |
|
67 | + public function indexAction(Request $request): array | RedirectResponse |
|
68 | 68 | { |
69 | 69 | $idFile = $this->castId($request->get(static::REQUEST_PARAM_ID_FILE)); |
70 | 70 | $fileAttachmentTransfer = $this->getFileAttachmentTransfer($idFile); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | protected function createCsvDownloadResponse(string $content, string $filename): StreamedResponse |
89 | 89 | { |
90 | - $response = new StreamedResponse(function () use ($content): void { |
|
90 | + $response = new StreamedResponse(function() use ($content): void { |
|
91 | 91 | echo $content; |
92 | 92 | }); |
93 | 93 | $response->headers->set('Content-Type', static::HEADER_CONTENT_TYPE_CSV); |