Skip to content

Commit d386251

Browse files
committed
wip
1 parent 5501934 commit d386251

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Coder/Xz.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace PetrKnap\Binary\Coder;
66

77
use PetrKnap\Shorts\HasRequirements;
8-
use PetrKnap\XzUtils\Xz as XzUtil;
8+
use PetrKnap\XzUtils\Xz as Inner;
99

1010
final class Xz extends Coder
1111
{
@@ -17,7 +17,7 @@ public function __construct()
1717
{
1818
self::checkRequirements(
1919
classes: [
20-
XzUtil::class,
20+
Inner::class,
2121
],
2222
);
2323
}
@@ -30,15 +30,15 @@ public function encode(string $decoded, int|null $compressionPreset = null): str
3030

3131
protected function doEncode(string $decoded): string
3232
{
33-
return (new XzUtil())->compress(
33+
return (new Inner())->compress(
3434
data: $decoded,
3535
compressionPreset: $this->compressionPreset,
3636
);
3737
}
3838

3939
protected function doDecode(string $encoded): string
4040
{
41-
return (new XzUtil())->decompress(
41+
return (new Inner())->decompress(
4242
data: $encoded,
4343
);
4444
}

src/Encoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ public function hex(): static
2929
));
3030
}
3131

32-
public function xz(int|null $level = null): static
32+
public function xz(int|null $compressionPreset = null): static
3333
{
3434
return $this->withData((new Coder\Xz())->encode(
3535
$this->data,
36-
level: $level,
36+
compressionPreset: $compressionPreset,
3737
));
3838
}
3939

0 commit comments

Comments
 (0)