@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | if (array_key_exists($format, $clone->formats)) { |
| 19 | 19 | # remove format from buckets array |
| 20 | - array_walk($clone->buckets, static function (array &$formats) use ($format) { |
|
| 20 | + array_walk($clone->buckets, static function(array &$formats) use ($format) { |
|
| 21 | 21 | $formats = array_diff($formats, [$format]); |
| 22 | 22 | }); |
| 23 | 23 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | } |
| 72 | 72 | private function getBucketClassFormat(DataBucket $bucket): ?array |
| 73 | 73 | { |
| 74 | - $className = static function (DataBucket $bucket): Generator { |
|
| 74 | + $className = static function(DataBucket $bucket): Generator { |
|
| 75 | 75 | yield get_class($bucket); |
| 76 | 76 | yield from class_parents($bucket); |
| 77 | 77 | }; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $this->converterMatcher = $converterMatcher; |
| 26 | 26 | |
| 27 | 27 | $this->addStreamFactory(static fn($data) => $data instanceof \Generator ? new GeneratorStream($data) : null); |
| 28 | - $this->addStreamFactory(function ($data) use ($defaultFactory) { |
|
| 28 | + $this->addStreamFactory(function($data) use ($defaultFactory) { |
|
| 29 | 29 | switch (true) { |
| 30 | 30 | case is_string($data): |
| 31 | 31 | return $defaultFactory->createStream($data); |