Completed
Pull Request — master (#199)
by Théo
04:05 queued 01:24
created
src/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
 
17 17
 use ErrorException;
18 18
 
19
-($GLOBALS['_BOX_BOOTSTRAP'] = function (): void {
19
+($GLOBALS['_BOX_BOOTSTRAP'] = function(): void {
20 20
     \KevinGH\Box\register_aliases();
21 21
 })();
22 22
 
23 23
 // Convert errors to exceptions
24 24
 set_error_handler(
25
-    function (int $code, string $message, string $file = '', int $line = -1): void {
25
+    function(int $code, string $message, string $file = '', int $line = -1): void {
26 26
         if (error_reporting() & $code) {
27 27
             throw new ErrorException($message, 0, $code, (string) $file, $line);
28 28
         }
Please login to merge, or discard this patch.
src/Box.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.