Passed
Pull Request — master (#176)
by Théo
02:26
created
src/Box.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $this->file = $file;
85 85
 
86 86
         $this->basePath = getcwd();
87
-        $this->mapFile = function (): void { };
87
+        $this->mapFile = function(): void { };
88 88
         $this->scoper = new NullScoper();
89 89
     }
90 90
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     public function addFiles(array $files, bool $binary, bool $dumpAutoload = false): void
171 171
     {
172 172
         $files = array_map(
173
-            function ($file): string {
173
+            function($file): string {
174 174
                 // Convert files to string as SplFileInfo is not serializable
175 175
                 return (string) $file;
176 176
             },
@@ -314,9 +314,9 @@  discard block
 block discarded – undo
314 314
         $mapFile = $this->mapFile;
315 315
         $placeholders = $this->placeholders;
316 316
         $compactors = $this->compactors;
317
-        $bootstrap = $GLOBALS['_BOX_BOOTSTRAP'] ?? function (): void {};
317
+        $bootstrap = $GLOBALS['_BOX_BOOTSTRAP'] ?? function(): void {};
318 318
 
319
-        $processFile = function (string $file) use ($cwd, $basePath, $mapFile, $placeholders, $compactors, $bootstrap): array {
319
+        $processFile = function(string $file) use ($cwd, $basePath, $mapFile, $placeholders, $compactors, $bootstrap): array {
320 320
             chdir($cwd);
321 321
             $bootstrap();
322 322
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     {
366 366
         return array_reduce(
367 367
             $compactors,
368
-            function (string $contents, Compactor $compactor) use ($file): string {
368
+            function(string $contents, Compactor $compactor) use ($file): string {
369 369
                 return $compactor->compact($file, $contents);
370 370
             },
371 371
             $contents
Please login to merge, or discard this patch.
src/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@
 block discarded – undo
26 26
 use function sys_get_temp_dir;
27 27
 use function unlink;
28 28
 
29
-($GLOBALS['_BOX_BOOTSTRAP'] = function (): void {
29
+($GLOBALS['_BOX_BOOTSTRAP'] = function(): void {
30 30
     \KevinGH\Box\register_aliases();
31 31
 })();
32 32
 
33 33
 // Convert errors to exceptions
34 34
 set_error_handler(
35
-    function ($code, $message, $file, $line): void {
35
+    function($code, $message, $file, $line): void {
36 36
         if (error_reporting() & $code) {
37 37
             throw new ErrorException($message, 0, $code, $file, $line);
38 38
         }
Please login to merge, or discard this patch.