@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $this->file = $file; |
91 | 91 | |
92 | 92 | $this->basePath = getcwd(); |
93 | - $this->mapFile = function (): void { }; |
|
93 | + $this->mapFile = function(): void { }; |
|
94 | 94 | $this->scoper = new NullScoper(); |
95 | 95 | } |
96 | 96 | |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | Assertion::true($this->buffering, 'Cannot add files if the buffering has not started.'); |
219 | 219 | |
220 | 220 | $files = array_map( |
221 | - function ($file): string { |
|
221 | + function($file): string { |
|
222 | 222 | // Convert files to string as SplFileInfo is not serializable |
223 | 223 | return (string) $file; |
224 | 224 | }, |
@@ -341,10 +341,10 @@ discard block |
||
341 | 341 | $mapFile = $this->mapFile; |
342 | 342 | $placeholders = $this->placeholders; |
343 | 343 | $compactors = $this->compactors; |
344 | - $bootstrap = $GLOBALS['_BOX_BOOTSTRAP'] ?? function (): void {}; |
|
344 | + $bootstrap = $GLOBALS['_BOX_BOOTSTRAP'] ?? function(): void {}; |
|
345 | 345 | $cwd = getcwd(); |
346 | 346 | |
347 | - $processFile = function (string $file) use ($cwd, $basePath, $mapFile, $placeholders, $compactors, $bootstrap): array { |
|
347 | + $processFile = function(string $file) use ($cwd, $basePath, $mapFile, $placeholders, $compactors, $bootstrap): array { |
|
348 | 348 | chdir($cwd); |
349 | 349 | $bootstrap(); |
350 | 350 | |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | { |
394 | 394 | return array_reduce( |
395 | 395 | $compactors, |
396 | - function (string $contents, Compactor $compactor) use ($file): string { |
|
396 | + function(string $contents, Compactor $compactor) use ($file): string { |
|
397 | 397 | return $compactor->compact($file, $contents); |
398 | 398 | }, |
399 | 399 | $contents |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | 'Registering compactors' |
375 | 375 | ); |
376 | 376 | |
377 | - $logCompactors = function (Compactor $compactor) use ($logger): void { |
|
377 | + $logCompactors = function(Compactor $compactor) use ($logger): void { |
|
378 | 378 | $compactorClassParts = explode('\\', get_class($compactor)); |
379 | 379 | |
380 | 380 | if ('_HumbugBox' === substr($compactorClassParts[0], 0, strlen('_HumbugBox'))) { |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | */ |
614 | 614 | private function bumpOpenFileDescriptorLimit(Box $box, SymfonyStyle $io): callable |
615 | 615 | { |
616 | - $filesCount = count($box) + 128; // Add a little extra for good measure |
|
616 | + $filesCount = count($box) + 128; // Add a little extra for good measure |
|
617 | 617 | |
618 | 618 | if (function_exists('posix_getrlimit') && function_exists('posix_setrlimit')) { |
619 | 619 | $softLimit = posix_getrlimit()['soft openfiles']; |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | ); |
647 | 647 | } |
648 | 648 | |
649 | - return function () use ($io, $softLimit, $hardLimit): void { |
|
649 | + return function() use ($io, $softLimit, $hardLimit): void { |
|
650 | 650 | if (function_exists('posix_setrlimit') && isset($softLimit, $hardLimit)) { |
651 | 651 | posix_setrlimit( |
652 | 652 | POSIX_RLIMIT_NOFILE, |