@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Exception; |
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 Tests\Innmind\Immutable\Map; |
5 | 5 | |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | $this->assertSame(1, $m2->size()); |
56 | 56 | |
57 | 57 | $m = new Primitive('int', 'int'); |
58 | - $m = $m |
|
59 | - (23, 24) |
|
58 | + $m = $m(23, 24) |
|
60 | 59 | (41, 42) |
61 | 60 | (65, 66) |
62 | 61 | (89, 90) |
@@ -431,7 +430,7 @@ discard block |
||
431 | 430 | |
432 | 431 | $v = $m->reduce( |
433 | 432 | 42, |
434 | - function (float $carry, int $key, int $value): float { |
|
433 | + function(float $carry, int $key, int $value): float { |
|
435 | 434 | return $carry / ($key * $value); |
436 | 435 | } |
437 | 436 | ); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Map; |
5 | 5 | |
@@ -48,8 +48,7 @@ discard block |
||
48 | 48 | $this->assertSame(1, $m2->size()); |
49 | 49 | |
50 | 50 | $m = new ObjectKeys('stdClass', 'int'); |
51 | - $m = $m |
|
52 | - ($a = new \stdClass, 24) |
|
51 | + $m = $m($a = new \stdClass, 24) |
|
53 | 52 | ($b = new \stdClass, 42) |
54 | 53 | ($c = new \stdClass, 66) |
55 | 54 | ($d = new \stdClass, 90) |
@@ -398,7 +397,7 @@ discard block |
||
398 | 397 | |
399 | 398 | $v = $m->reduce( |
400 | 399 | 42, |
401 | - function (float $carry, \stdClass $key, int $value): float { |
|
400 | + function(float $carry, \stdClass $key, int $value): float { |
|
402 | 401 | return $carry / $value; |
403 | 402 | } |
404 | 403 | ); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Map; |
5 | 5 | |
@@ -41,8 +41,7 @@ discard block |
||
41 | 41 | $this->assertSame(1, $m2->size()); |
42 | 42 | |
43 | 43 | $m = new DoubleIndex('int', 'int'); |
44 | - $m = $m |
|
45 | - (23, 24) |
|
44 | + $m = $m(23, 24) |
|
46 | 45 | (41, 42) |
47 | 46 | (65, 66) |
48 | 47 | (89, 90) |
@@ -417,7 +416,7 @@ discard block |
||
417 | 416 | |
418 | 417 | $v = $m->reduce( |
419 | 418 | 42, |
420 | - function (float $carry, int $key, int $value): float { |
|
419 | + function(float $carry, int $key, int $value): float { |
|
421 | 420 | return $carry / ($key * $value); |
422 | 421 | } |
423 | 422 | ); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\ValidateArgument; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Sequence; |
5 | 5 |
@@ -618,7 +618,7 @@ |
||
618 | 618 | $a = new Defer('int', (function() use (&$loaded) { |
619 | 619 | yield 1; |
620 | 620 | yield 2; |
621 | - $loaded = true; |
|
621 | + $loaded = true; |
|
622 | 622 | })()); |
623 | 623 | $b = $a->clear(); |
624 | 624 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Sequence; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Set; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Tests\Innmind\Immutable\Fixtures; |
5 | 5 |