@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | Assertion::true($this->buffering, 'Cannot add files if the buffering has not started.'); |
| 297 | 297 | |
| 298 | 298 | $files = array_map( |
| 299 | - function ($file): string { |
|
| 299 | + function($file): string { |
|
| 300 | 300 | // Convert files to string as SplFileInfo is not serializable |
| 301 | 301 | return (string) $file; |
| 302 | 302 | }, |
@@ -415,10 +415,10 @@ discard block |
||
| 415 | 415 | $mapFile = $this->mapFile; |
| 416 | 416 | $placeholders = $this->placeholders; |
| 417 | 417 | $compactors = $this->compactors; |
| 418 | - $bootstrap = $GLOBALS['_BOX_BOOTSTRAP'] ?? function (): void {}; |
|
| 418 | + $bootstrap = $GLOBALS['_BOX_BOOTSTRAP'] ?? function(): void {}; |
|
| 419 | 419 | $cwd = getcwd(); |
| 420 | 420 | |
| 421 | - $processFile = function (string $file) use ($cwd, $basePath, $mapFile, $placeholders, $compactors, $bootstrap): array { |
|
| 421 | + $processFile = function(string $file) use ($cwd, $basePath, $mapFile, $placeholders, $compactors, $bootstrap): array { |
|
| 422 | 422 | chdir($cwd); |
| 423 | 423 | $bootstrap(); |
| 424 | 424 | |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | { |
| 468 | 468 | return array_reduce( |
| 469 | 469 | $compactors, |
| 470 | - function (string $contents, Compactor $compactor) use ($file): string { |
|
| 470 | + function(string $contents, Compactor $compactor) use ($file): string { |
|
| 471 | 471 | return $compactor->compact($file, $contents); |
| 472 | 472 | }, |
| 473 | 473 | $contents |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | $this->lint($json); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - return false === $assoc ? (object) $data : $data; // If JSON is an empty JSON json_decode returns an empty |
|
| 68 | + return false === $assoc ? (object) $data : $data; // If JSON is an empty JSON json_decode returns an empty |
|
| 69 | 69 | // array instead of an stdClass instance |
| 70 | 70 | } |
| 71 | 71 | |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $files = array_values( |
| 75 | 75 | array_map( |
| 76 | - function (string $file) use ($root): string { |
|
| 76 | + function(string $file) use ($root): string { |
|
| 77 | 77 | return str_replace($root.DIRECTORY_SEPARATOR, '', $file); |
| 78 | 78 | }, |
| 79 | 79 | $files |