Passed
Push — master ( 8afd9e...0ad9df )
by Théo
02:20
created
src/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the box project.
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 use ErrorException;
18 18
 use RuntimeException;
19 19
 
20
-$findAutoloader = function () {
20
+$findAutoloader = function() {
21 21
     if (file_exists($autoload = __DIR__.'/../../../autoload.php')) {
22 22
         // Is installed via Composer
23 23
         return $autoload;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 };
33 33
 
34 34
 // TODO: update PHP-Scoper to get rid of this horrible hack at some point
35
-$findPhpScoperFunctions = function () {
35
+$findPhpScoperFunctions = function() {
36 36
     if (file_exists($autoload = __DIR__.'/../../php-scoper/src/functions.php')) {
37 37
         // Is installed via Composer
38 38
         return $autoload;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     throw new RuntimeException('Unable to find the PHP-Scoper functions.');
47 47
 };
48 48
 
49
-$bootstrap = function () use ($findAutoloader, $findPhpScoperFunctions): void {
49
+$bootstrap = function() use ($findAutoloader, $findPhpScoperFunctions): void {
50 50
     require_once $findAutoloader();
51 51
     require_once $findPhpScoperFunctions();
52 52
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 // Convert errors to exceptions
60 60
 set_error_handler(
61
-    function ($code, $message, $file, $line): void {
61
+    function($code, $message, $file, $line): void {
62 62
         if (error_reporting() & $code) {
63 63
             throw new ErrorException($message, 0, $code, $file, $line);
64 64
         }
Please login to merge, or discard this patch.
scoper.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of the box project.
@@ -18,12 +18,12 @@  discard block
 block discarded – undo
18 18
 
19 19
 return [
20 20
     'patchers' => [
21
-        function (string $filePath, string $prefix, string $contents): string {
21
+        function(string $filePath, string $prefix, string $contents): string {
22 22
             $finderClass = sprintf('\%s\%s', $prefix, Finder::class);
23 23
 
24 24
             return str_replace($finderClass, '\\'.Finder::class, $contents);
25 25
         },
26
-        function (string $filePath, string $prefix, string $contents): string {
26
+        function(string $filePath, string $prefix, string $contents): string {
27 27
             $file = 'vendor/beberlei/assert/lib/Assert/Assertion.php';
28 28
 
29 29
             if ($filePath !== $file) {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 $contents
40 40
             );
41 41
         },
42
-        function (string $filePath, string $prefix, string $contents): string {
42
+        function(string $filePath, string $prefix, string $contents): string {
43 43
             $files = [
44 44
                 'src/functions.php',
45 45
                 'src/Configuration.php',
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 $contents
68 68
             );
69 69
         },
70
-        function (string $filePath, string $prefix, string $contents): string {
70
+        function(string $filePath, string $prefix, string $contents): string {
71 71
             if ('vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php' !== $filePath) {
72 72
                 return $contents;
73 73
             }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 $contents
82 82
             );
83 83
         },
84
-        function (string $filePath, string $prefix, string $contents) use ($classLoaderContents): string {
84
+        function(string $filePath, string $prefix, string $contents) use ($classLoaderContents): string {
85 85
             return 'vendor/composer/composer/src/Composer/Autoload/ClassLoader.php' === $filePath ? $classLoaderContents : $contents;
86 86
         },
87 87
     ],
Please login to merge, or discard this patch.