@@ -3,6 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('unapply', function (callable $fn, ...$args) { |
|
6 | +P::macro('unapply', function(callable $fn, ...$args) { |
|
7 | 7 | return $fn($args); |
8 | 8 | }); |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('swap', function (callable $f): \Closure { |
|
7 | - return function ($second, $first, ...$tail) use ($f) { |
|
6 | +P::macro('swap', function(callable $f): \Closure { |
|
7 | + return function($second, $first, ...$tail) use ($f) { |
|
8 | 8 | $arguments = array_merge([$first, $second], $tail); |
9 | 9 | return $f(...$arguments); |
10 | 10 | }; |
@@ -3,6 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('of', function ($value): array { |
|
6 | +P::macro('of', function($value): array { |
|
7 | 7 | return [$value]; |
8 | 8 | }); |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('negate', function (callable $predicate): \Closure { |
|
7 | - return function (...$args) use ($predicate) { |
|
6 | +P::macro('negate', function(callable $predicate): \Closure { |
|
7 | + return function(...$args) use ($predicate) { |
|
8 | 8 | return !$predicate(...$args); |
9 | 9 | }; |
10 | 10 | }); |
@@ -3,8 +3,8 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('always', function ($value): \Closure { |
|
7 | - return function () use ($value) { |
|
6 | +P::macro('always', function($value): \Closure { |
|
7 | + return function() use ($value) { |
|
8 | 8 | return $value; |
9 | 9 | }; |
10 | 10 | }); |
@@ -3,6 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | |
6 | -P::macro('identity', function ($value) { |
|
6 | +P::macro('identity', function($value) { |
|
7 | 7 | return $value; |
8 | 8 | }); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | use function Baethon\Phln\assert_object; |
6 | 6 | |
7 | -P::macro('whereEq', function (array $predicates, $object): bool { |
|
7 | +P::macro('whereEq', function(array $predicates, $object): bool { |
|
8 | 8 | assert_object($object); |
9 | 9 | |
10 | 10 | return P::where( |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | use function Baethon\Phln\assert_object; |
6 | 6 | |
7 | -P::macro('merge', function ($left, $right): array { |
|
7 | +P::macro('merge', function($left, $right): array { |
|
8 | 8 | assert_object($left); |
9 | 9 | assert_object($right); |
10 | 10 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use Baethon\Phln\Phln as P; |
5 | 5 | use function Baethon\Phln\assert_object; |
6 | 6 | |
7 | -P::macro('toPairs', function ($object): array { |
|
7 | +P::macro('toPairs', function($object): array { |
|
8 | 8 | assert_object($object); |
9 | 9 | |
10 | 10 | $pairs = []; |