@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('update', function (int $index, $value, array $collection): array { |
|
6 | +P::macro('update', function(int $index, $value, array $collection): array { |
|
7 | 7 | |
8 | 8 | if (false === array_key_exists($index, $collection)) { |
9 | 9 | return $collection; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('lensIndex', function (int $index) { |
|
6 | +P::macro('lensIndex', function(int $index) { |
|
7 | 7 | return P::lens( |
8 | 8 | P::nth($index), |
9 | 9 | P::update($index) |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Baethon\Phln; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Baethon\Phln\Monad; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Baethon\Phln\Monad; |
5 | 5 |