@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @return string |
33 | 33 | */ |
34 | 34 | function join() { |
35 | - return apply(curry(function($glue, $pieces){ |
|
35 | + return apply(curry(function($glue, $pieces) { |
|
36 | 36 | return implode($glue, $pieces); |
37 | 37 | }), func_get_args()); |
38 | 38 | } |
@@ -306,8 +306,7 @@ discard block |
||
306 | 306 | $updateCountAt = curry(function($item, $counts, $index) use($openings, $closings) { |
307 | 307 | $count = occurences(__(), $item); |
308 | 308 | return ($openings[$index] == $closings[$index]) ? |
309 | - ($counts[$index] + $count($openings[$index])) % 2 : |
|
310 | - $counts[$index] + $count($openings[$index]) - $count($closings[$index]); |
|
309 | + ($counts[$index] + $count($openings[$index])) % 2 : $counts[$index] + $count($openings[$index]) - $count($closings[$index]); |
|
311 | 310 | }); |
312 | 311 | // Updates counts for all surrenders |
313 | 312 | $updateCounts = curry(function($item, $counts) use($indexes, $updateCountAt) { |