summaryrefslogtreecommitdiffstats
path: root/lib/private/Streamer.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:53:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:54:22 +0200
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /lib/private/Streamer.php
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
downloadnextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.tar.gz
nextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.zip
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Streamer.php')
-rw-r--r--lib/private/Streamer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Streamer.php b/lib/private/Streamer.php
index 939bb4ea5d8..47348447e6d 100644
--- a/lib/private/Streamer.php
+++ b/lib/private/Streamer.php
@@ -52,7 +52,7 @@ class Streamer {
* @param int $numberOfFiles The number of files (and directories) that will
* be included in the streamed file
*/
- public function __construct(IRequest $request, int $size, int $numberOfFiles){
+ public function __construct(IRequest $request, int $size, int $numberOfFiles) {
/**
* zip32 constraints for a basic (without compression, volumes nor
@@ -89,7 +89,7 @@ class Streamer {
* Send HTTP headers
* @param string $name
*/
- public function sendHeaders($name){
+ public function sendHeaders($name) {
$extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar';
$fullName = $name . $extension;
$this->streamerInstance->sendHeaders($fullName);
@@ -169,7 +169,7 @@ class Streamer {
* @param string $dirName Directory Path and name to be added to the archive.
* @return bool $success
*/
- public function addEmptyDir($dirName){
+ public function addEmptyDir($dirName) {
return $this->streamerInstance->addEmptyDir($dirName);
}
@@ -179,7 +179,7 @@ class Streamer {
* closing, the file is completely written to the output stream.
* @return bool $success
*/
- public function finalize(){
+ public function finalize() {
return $this->streamerInstance->finalize();
}
}