@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | private static function dumpCheckScript(string ...$files): array |
112 | 112 | { |
113 | 113 | $autoloads = array_map( |
114 | - function (string $file): string { |
|
114 | + function(string $file): string { |
|
115 | 115 | return sprintf( |
116 | 116 | 'require_once __DIR__."/%s";', |
117 | 117 | $file |
@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -32,12 +32,12 @@ discard block |
||
32 | 32 | |
33 | 33 | return [ |
34 | 34 | 'patchers' => [ |
35 | - function (string $filePath, string $prefix, string $contents): string { |
|
35 | + function(string $filePath, string $prefix, string $contents): string { |
|
36 | 36 | $finderClass = sprintf('\%s\%s', $prefix, Finder::class); |
37 | 37 | |
38 | 38 | return str_replace($finderClass, '\\'.Finder::class, $contents); |
39 | 39 | }, |
40 | - function (string $filePath, string $prefix, string $contents): string { |
|
40 | + function(string $filePath, string $prefix, string $contents): string { |
|
41 | 41 | $file = 'vendor/beberlei/assert/lib/Assert/Assertion.php'; |
42 | 42 | |
43 | 43 | if ($filePath !== $file) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $contents |
54 | 54 | ); |
55 | 55 | }, |
56 | - function (string $filePath, string $prefix, string $contents): string { |
|
56 | + function(string $filePath, string $prefix, string $contents): string { |
|
57 | 57 | $files = [ |
58 | 58 | 'src/functions.php', |
59 | 59 | 'src/Configuration.php', |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $contents |
82 | 82 | ); |
83 | 83 | }, |
84 | - function (string $filePath, string $prefix, string $contents): string { |
|
84 | + function(string $filePath, string $prefix, string $contents): string { |
|
85 | 85 | if ('vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php' !== $filePath) { |
86 | 86 | return $contents; |
87 | 87 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $contents |
96 | 96 | ); |
97 | 97 | }, |
98 | - function (string $filePath, string $prefix, string $contents) use ($whitelistedFiles): string { |
|
98 | + function(string $filePath, string $prefix, string $contents) use ($whitelistedFiles): string { |
|
99 | 99 | return array_key_exists($filePath, $whitelistedFiles) ? $whitelistedFiles[$filePath] : $contents; |
100 | 100 | }, |
101 | 101 | ], |
@@ -146,7 +146,7 @@ |
||
146 | 146 | * |
147 | 147 | * @return bool |
148 | 148 | */ |
149 | - function ($checkPassed, Requirement $requirement) { |
|
149 | + function($checkPassed, Requirement $requirement) { |
|
150 | 150 | return $checkPassed && $requirement->isFulfilled(); |
151 | 151 | }, |
152 | 152 | true |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $this->fulfilled = eval($this->checkIsFulfilled); |
47 | 47 | } |
48 | 48 | |
49 | - return (bool) $this->fulfilled; // Cast to boolean, `(bool)` and `boolval()` are not available in PHP 5.3 |
|
49 | + return (bool) $this->fulfilled; // Cast to boolean, `(bool)` and `boolval()` are not available in PHP 5.3 |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ); |
99 | 99 | |
100 | 100 | $this->assertFalse($requirement->isFulfilled()); |
101 | - $this->assertFalse($requirement->isFulfilled()); // Would have gave `true` if it was evaluated a second time |
|
101 | + $this->assertFalse($requirement->isFulfilled()); // Would have gave `true` if it was evaluated a second time |
|
102 | 102 | |
103 | 103 | unset($GLOBALS['x']); |
104 | 104 | } |
@@ -1,6 +1,6 @@ discard block |
||
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. |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $phpVersion = PHP_VERSION; |
65 | 65 | |
66 | - yield (function () use ($phpVersion) { |
|
66 | + yield (function() use ($phpVersion) { |
|
67 | 67 | return [ |
68 | 68 | new RequirementCollection(), |
69 | 69 | IO::VERBOSITY_DEBUG, |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ]; |
89 | 89 | })(); |
90 | 90 | |
91 | - yield (function () use ($phpVersion) { |
|
91 | + yield (function() use ($phpVersion) { |
|
92 | 92 | return [ |
93 | 93 | new RequirementCollection(), |
94 | 94 | IO::VERBOSITY_VERY_VERBOSE, |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | })(); |
115 | 115 | |
116 | 116 | foreach ([IO::VERBOSITY_VERBOSE, IO::VERBOSITY_NORMAL, IO::VERBOSITY_QUIET] as $verbosity) { |
117 | - yield (function () use ($verbosity) { |
|
117 | + yield (function() use ($verbosity) { |
|
118 | 118 | return [ |
119 | 119 | new RequirementCollection(), |
120 | 120 | $verbosity, |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | })(); |
125 | 125 | } |
126 | 126 | |
127 | - yield (function () use ($phpVersion) { |
|
127 | + yield (function() use ($phpVersion) { |
|
128 | 128 | $requirements = new RequirementCollection(); |
129 | 129 | |
130 | 130 | $requirements->addRequirement( |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | ]; |
165 | 165 | })(); |
166 | 166 | |
167 | - yield (function () use ($phpVersion) { |
|
167 | + yield (function() use ($phpVersion) { |
|
168 | 168 | $requirements = new RequirementCollection(); |
169 | 169 | |
170 | 170 | $requirements->addRequirement( |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | })(); |
205 | 205 | |
206 | 206 | foreach ([IO::VERBOSITY_VERBOSE, IO::VERBOSITY_NORMAL, IO::VERBOSITY_QUIET] as $verbosity) { |
207 | - yield (function () use ($verbosity) { |
|
207 | + yield (function() use ($verbosity) { |
|
208 | 208 | $requirements = new RequirementCollection(); |
209 | 209 | |
210 | 210 | $requirements->addRequirement( |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | })(); |
228 | 228 | } |
229 | 229 | |
230 | - yield (function () use ($phpVersion) { |
|
230 | + yield (function() use ($phpVersion) { |
|
231 | 231 | $requirements = new RequirementCollection(); |
232 | 232 | |
233 | 233 | $requirements->addRequirement( |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | })(); |
276 | 276 | |
277 | 277 | foreach ([IO::VERBOSITY_VERY_VERBOSE, IO::VERBOSITY_VERBOSE, IO::VERBOSITY_NORMAL] as $verbosity) { |
278 | - yield (function () use ($verbosity, $phpVersion) { |
|
278 | + yield (function() use ($verbosity, $phpVersion) { |
|
279 | 279 | $requirements = new RequirementCollection(); |
280 | 280 | |
281 | 281 | $requirements->addRequirement( |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | })(); |
322 | 322 | } |
323 | 323 | |
324 | - yield (function () use ($phpVersion) { |
|
324 | + yield (function() use ($phpVersion) { |
|
325 | 325 | $requirements = new RequirementCollection(); |
326 | 326 | |
327 | 327 | $requirements->addRequirement( |