Skip to content

Commit

Permalink
Autofix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 11, 2022
1 parent eff8102 commit 25b2a69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/code/operations/inits.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
Collection::fromIterable($input)
->inits()
->map(static fn (array $data): array => array_column($data, 1));
// [[], ['a'], ['a', 'b'], ['a', 'b', 'c']]
// [[], ['a'], ['a', 'b'], ['a', 'b', 'c']]

// Using the `pluck` operation
$var = Collection::fromIterable($input)
->inits()
->pluck('*.1');
// [[], ['a'], ['a', 'b'], ['a', 'b', 'c']]
// [[], ['a'], ['a', 'b'], ['a', 'b', 'c']]
1 change: 1 addition & 0 deletions docs/pages/code/operations/unfold.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace App;

use loophp\collection\Collection;

use const INF;

include __DIR__ . '/../../../../vendor/autoload.php';
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/CollectionSpecificOperationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
use PHPUnit\Framework\TestCase;
use stdClass;
use tests\loophp\collection\Traits\GenericCollectionProviders;

use function gettype;

use const PHP_VERSION_ID;

/**
Expand Down

0 comments on commit 25b2a69

Please sign in to comment.