@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | protected function initializeFileDeclarations(string $fileName): array |
131 | 131 | { |
132 | - $cspClosure = function (ResponseInterface $response): ?StatusMessage { |
|
132 | + $cspClosure = function(ResponseInterface $response): ?StatusMessage { |
|
133 | 133 | $cspHeader = new ContentSecurityPolicyHeader( |
134 | 134 | $response->getHeaderLine('content-security-policy') |
135 | 135 | ); |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | protected function createMismatchMessage(FileDeclaration $fileDeclaration, ResponseInterface $response): string |
260 | 260 | { |
261 | 261 | $messageParts = array_map( |
262 | - function (StatusMessage $mismatch): string { |
|
262 | + function(StatusMessage $mismatch): string { |
|
263 | 263 | return vsprintf( |
264 | 264 | $mismatch->getMessage(), |
265 | 265 | $this->wrapValues($mismatch->getValues(), '<code>', '</code>') |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | protected function wrapItems(array $items, string $before, string $after): array |
297 | 297 | { |
298 | 298 | return array_map( |
299 | - function (string $item) use ($before, $after): string { |
|
299 | + function(string $item) use ($before, $after): string { |
|
300 | 300 | return $before . $item . $after; |
301 | 301 | }, |
302 | 302 | array_filter($items) |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | protected function wrapValues(array $values, string $before, string $after): array |
307 | 307 | { |
308 | 308 | return array_map( |
309 | - function (string $value) use ($before, $after): string { |
|
309 | + function(string $value) use ($before, $after): string { |
|
310 | 310 | return $this->wrapValue($value, $before, $after); |
311 | 311 | }, |
312 | 312 | array_filter($values) |