@@ -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 |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | (new PhpSettingsHandler(new ConsoleLogger($output)))->check(); |
209 | 209 | |
210 | 210 | if (function_exists('ini_set')) { |
211 | - $memoryInBytes = function (string $value): int { |
|
211 | + $memoryInBytes = function(string $value): int { |
|
212 | 212 | $unit = strtolower($value[strlen($value) - 1]); |
213 | 213 | |
214 | 214 | $value = (int) $value; |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | 'Registering compactors' |
391 | 391 | ); |
392 | 392 | |
393 | - $logCompactors = function (Compactor $compactor) use ($logger): void { |
|
393 | + $logCompactors = function(Compactor $compactor) use ($logger): void { |
|
394 | 394 | $compactorClassParts = explode('\\', get_class($compactor)); |
395 | 395 | |
396 | 396 | if ('_HumbugBox' === substr($compactorClassParts[0], 0, strlen('_HumbugBox'))) { |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | ) |
593 | 593 | ); |
594 | 594 | |
595 | - $filesCount = count($config->getBinaryFiles()) + count($config->getFiles()) + 128; // Add a little extra for good measure |
|
595 | + $filesCount = count($config->getBinaryFiles()) + count($config->getFiles()) + 128; // Add a little extra for good measure |
|
596 | 596 | |
597 | 597 | if (function_exists('posix_getrlimit') && function_exists('posix_setrlimit')) { |
598 | 598 | $softLimit = posix_getrlimit()['soft openfiles']; |