@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 | |
@@ -248,17 +248,17 @@ discard block |
||
248 | 248 | ]; |
249 | 249 | |
250 | 250 | $data = array_merge( |
251 | - array_map(function (array $set) { |
|
251 | + array_map(function(array $set) { |
|
252 | 252 | array_unshift($set, $required = true); |
253 | 253 | return $set; |
254 | 254 | }, $required), |
255 | - array_map(function (array $set) { |
|
255 | + array_map(function(array $set) { |
|
256 | 256 | array_unshift($set, $required = false); |
257 | 257 | return $set; |
258 | 258 | }, $optional) |
259 | 259 | ); |
260 | 260 | |
261 | - return array_reduce($data, function (array $data, array $set) { |
|
261 | + return array_reduce($data, function(array $data, array $set) { |
|
262 | 262 | $key = preg_replace('/^an? +/', '', $set[1]); |
263 | 263 | $data[$key] = $set; |
264 | 264 | |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | |
336 | 336 | $object = $this->strategy->get($mock); |
337 | 337 | foreach ($fqcns as $fqcn) { |
338 | - if (!is_a($object, $fqcn)) { |
|
338 | + if ( ! is_a($object, $fqcn)) { |
|
339 | 339 | $this->markFeatureUnsupported( |
340 | 340 | sprintf( |
341 | 341 | 'getting a valid mock from %s', |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | public function getCallable(): callable |
34 | 34 | { |
35 | - return function () { |
|
35 | + return function() { |
|
36 | 36 | }; |
37 | 37 | } |
38 | 38 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Tests; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Traits; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Moka\Generator\Template; |
5 | 5 | |
@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | protected static function getVisibility(\Reflector $reflector): string |
19 | 19 | { |
20 | 20 | if ( |
21 | - !$reflector instanceof \ReflectionMethod && |
|
22 | - !$reflector instanceof \ReflectionProperty |
|
21 | + ! $reflector instanceof \ReflectionMethod && |
|
22 | + ! $reflector instanceof \ReflectionProperty |
|
23 | 23 | ) { |
24 | 24 | throw new InvalidArgumentException( |
25 | 25 | sprintf( |