Skip to content

Commit 89064cc

Browse files
committed
Fix CS
1 parent d9f6d58 commit 89064cc

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

src/Function/flip.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
namespace _;
1313

14+
use function _\internal\baseRest;
15+
use function _\internal\castSlice;
16+
1417
/**
1518
* Creates a function that invokes `func` with arguments reversed.
1619
*
@@ -32,7 +35,7 @@
3235
*/
3336
function flip(callable $func): callable
3437
{
35-
return function (...$values) use($func) {
38+
return function (...$values) use ($func) {
3639
return \array_reverse($func(...$values), false);
3740
};
38-
}
41+
}

src/Function/spread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ function spread(callable $func, ?int $start = null)
5555

5656
return $func(...$otherArgs);
5757
});
58-
}
58+
}

tests/Function/FlipTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public function testFlip()
2222

2323
$this->assertSame(['d', 'c', 'b', 'a'], $flipped('a', 'b', 'c', 'd'));
2424
}
25-
}
25+
}

tests/Function/SpreadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ public function testSpread()
2222

2323
$this->assertSame('fred says hello', $say(['fred', 'hello']));
2424
}
25-
}
25+
}

0 commit comments

Comments
 (0)