Skip to content

Commit 99b7e58

Browse files
committed
some cleanup
1 parent 4927735 commit 99b7e58

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

src/ZipStreamServiceProvider.php

+2-29
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,8 @@ public function configurePackage(Package $package): void
2828
});
2929
}
3030

31-
/**
32-
* @return array
33-
*/
34-
public function provides()
31+
public function provides(): array
3532
{
36-
return [FileOptions::class, ArchiveOptions::class, 'zipstream', 'zipstream.s3client'];
37-
}
38-
39-
/**
40-
* @return ArchiveOptions
41-
*/
42-
protected function buildArchiveOptions(array $config)
43-
{
44-
return tap(new ArchiveOptions(), function(ArchiveOptions $options) use($config) {
45-
$options->setZeroHeader(true);
46-
});
47-
}
48-
49-
/**
50-
* @return FileOptions
51-
*/
52-
protected function buildFileOptions(array $config)
53-
{
54-
return tap(new FileOptions(), function(FileOptions $options) use($config) {
55-
$options->setMethod(Method::{strtoupper($config['method'])}());
56-
57-
if($config['deflate']) {
58-
$options->setDeflateLevel($config['deflate']);
59-
}
60-
});
33+
return ['zipstream.builder', 'zipstream.s3client'];
6134
}
6235
}

0 commit comments

Comments
 (0)