Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Nov 29, 2023
1 parent 166e0b2 commit 82a2b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LazyJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class LazyJson implements IteratorAggregate
*/
public static function from(mixed $source, string|array $dot = '*'): LazyCollection
{
return new LazyCollection(fn () => yield from new self($source, (array) $dot));
return new LazyCollection(fn() => yield from new self($source, (array) $dot));
}

/**
Expand All @@ -36,7 +36,7 @@ private function __construct(mixed $source, array $dots)
{
$this->parser = JsonParser::parse($source)
->lazyPointers(DotsConverter::toPointers($dots))
->wrap(fn (Parser $parser) => new LazyCollection(fn () => yield from $parser));
->wrap(fn(Parser $parser) => new LazyCollection(fn() => yield from $parser));
}

/**
Expand Down

0 comments on commit 82a2b4f

Please sign in to comment.