Completed
Push — master ( 2e5c62...f0f58a )
by Sérgio
06:30
created
src/hold.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
  */
14 14
 function hold(callable $fn /* ...$args */)
15 15
 {
16
-    $placeholder = pipe(filter(function ($x) {
16
+    $placeholder = pipe(filter(function($x) {
17 17
         return _ === $x;
18 18
     }))->pipe('array_keys');
19 19
 
20 20
     $args = array_slice(func_get_args(), 1);
21 21
     $ks = $placeholder($args);
22 22
 
23
-    return function ($x) use ($fn, $args, $ks) {
23
+    return function($x) use ($fn, $args, $ks) {
24 24
         if ([] === $ks) {
25 25
             return call_user_func_array($fn, array_merge($args, [$x]));
26 26
         }
Please login to merge, or discard this patch.
examples/pipe_native_funcs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 
7 7
 $join = F\pipe(F\flatten, F\partial('implode', ', '));
8 8
 
9
-$mapCountry = F\map(function ($x) {
9
+$mapCountry = F\map(function($x) {
10 10
     return $x['country'];
11 11
 });
12 12
 $countries = F\pipe($mapCountry, $join)->strtoupper(); // or `->pipe('strtoupper')`
13 13
 
14
-$mapCity = F\map(function ($x) {
14
+$mapCity = F\map(function($x) {
15 15
     return $x['cities'];
16 16
 });
17 17
 $cities = F\pipe($mapCity)->pipe($join);
Please login to merge, or discard this patch.