@@ -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( |