We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6e6f9c + 1173986 commit 9b89206Copy full SHA for 9b89206
src/macros.php
@@ -429,7 +429,7 @@
429
return new static();
430
}
431
432
- if(! $preserveKeys) {
+ if (! $preserveKeys) {
433
$sliced = new static([
434
new static([$this->first()]),
435
]);
@@ -447,7 +447,7 @@
447
448
$sliced = new static([$this->take(1)]);
449
450
- return $this->eachCons(2, $preserveKeys)->reduce(function($sliced, $previousAndCurrent) use ($callback) {
+ return $this->eachCons(2, $preserveKeys)->reduce(function ($sliced, $previousAndCurrent) use ($callback) {
451
$previousItem = $previousAndCurrent->take(1);
452
$item = $previousAndCurrent->take(-1);
453
0 commit comments