Passed
Pull Request — master (#39)
by Radosław
02:41
created
src/macros/fn/F.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 load_macro('fn', 'always');
8 8
 
9
-P::macro('F', function (): callable {
9
+P::macro('F', function(): callable {
10 10
     return P::always(false);
11 11
 });
Please login to merge, or discard this patch.
src/macros/fn/T.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 load_macro('fn', 'always');
8 8
 
9
-P::macro('T', function (): callable {
9
+P::macro('T', function(): callable {
10 10
     return P::always(true);
11 11
 });
12 12
 
Please login to merge, or discard this patch.
src/macros/fn/compose.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 load_macro('fn', 'pipe');
8 8
 
9
-P::macro('compose', function (array $fns): \Closure {
9
+P::macro('compose', function(array $fns): \Closure {
10 10
     if (0 === count($fns)) {
11 11
         throw new \UnderflowException('compose requires at least one argument');
12 12
     }
Please login to merge, or discard this patch.
src/macros/fn/nAry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 use Baethon\Phln\Phln as P;
5 5
 use Baethon\Phln\FixedArityFn;
6 6
 
7
-P::macro('nAry', function (int $n, callable $fn): callable {
7
+P::macro('nAry', function(int $n, callable $fn): callable {
8 8
     return FixedArityFn::of($n, $fn);
9 9
 });
Please login to merge, or discard this patch.
src/Phln.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
     public static function __callStatic($method, $parameters)
68 68
     {
69
-        if (! static::hasMacro($method)) {
69
+        if (!static::hasMacro($method)) {
70 70
             throw new \BadMethodCallException("Method {$method} does not exist.");
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/macros/string/split.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 use Baethon\Phln\Phln as P;
5 5
 use Baethon\Phln\RegExp;
6 6
 
7
-P::macro('split', function ($delimiter, string $text): array {
7
+P::macro('split', function($delimiter, string $text): array {
8 8
     $result = preg_split((string) RegExp::of($delimiter), $text);
9 9
     $error = preg_last_error();
10 10
 
Please login to merge, or discard this patch.
src/macros/fn/partial.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 
4 4
 use Baethon\Phln\Phln as P;
5 5
 
6
-P::macro('partial', call_user_func(function () {
7
-    $mergeArguments = function (array $args, array $innerArgs) {
6
+P::macro('partial', call_user_func(function() {
7
+    $mergeArguments = function(array $args, array $innerArgs) {
8 8
         $mapped = [];
9 9
 
10 10
         foreach ($args as $value) {
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
         return array_merge($mapped, $innerArgs);
19 19
     };
20 20
 
21
-    return function (callable $fn, array $args) use ($mergeArguments): callable {
22
-        return function (...$innerArgs) use ($fn, $args, $mergeArguments) {
21
+    return function(callable $fn, array $args) use ($mergeArguments): callable {
22
+        return function(...$innerArgs) use ($fn, $args, $mergeArguments) {
23 23
             return $fn(...$mergeArguments($args, $innerArgs));
24 24
         };
25 25
     };
Please login to merge, or discard this patch.
src/macros/fn/once.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 
4 4
 use Baethon\Phln\Phln as P;
5 5
 
6
-P::macro('once', function (callable $fn): \Closure {
7
-    return function (... $args) use ($fn) {
6
+P::macro('once', function(callable $fn): \Closure {
7
+    return function(... $args) use ($fn) {
8 8
         static $result = ['cached' => false, 'value' => null];
9 9
 
10 10
         if (false === $result['cached']) {
Please login to merge, or discard this patch.
src/macros/type/typeCond.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 
7 7
 load_macro('type', 'is');
8 8
 
9
-P::macro('typeCond', call_user_func(function () {
9
+P::macro('typeCond', call_user_func(function() {
10 10
     $typeToPredicate = P::ifElse('\\is_callable', P::identity(), P::is());
11
-    $mapRow = function ($row) use ($typeToPredicate) {
11
+    $mapRow = function($row) use ($typeToPredicate) {
12 12
         $p = $typeToPredicate($row[0]);
13 13
         return [$p, $row[1]];
14 14
     };
Please login to merge, or discard this patch.