summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-10-02 08:16:28 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-02 08:16:28 +0200
commita891f42a5de0b0a2a67d03525d81c028fdb3caf1 (patch)
tree2f5f9eac9c9fb56e190adb0fa20103f491f28cff /lib/public
parentdc6ff14ca0233ae876d103191c76d2f729c94834 (diff)
downloadnextcloud-server-a891f42a5de0b0a2a67d03525d81c028fdb3caf1.tar.gz
nextcloud-server-a891f42a5de0b0a2a67d03525d81c028fdb3caf1.zip
fixup! Add fix response
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/ZipResponse.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/public/AppFramework/Http/ZipResponse.php b/lib/public/AppFramework/Http/ZipResponse.php
index 27ff30d4019..c70482a0a9b 100644
--- a/lib/public/AppFramework/Http/ZipResponse.php
+++ b/lib/public/AppFramework/Http/ZipResponse.php
@@ -1,6 +1,8 @@
<?php
+declare(strict_types=1);
+
/**
- * @copyright Copyright (c) 2016, ownCloud, Inc.
+ * @copyright Copyright (c) 2018 Roeland Jago Douma <roeland@famdouma.nl>
*
* @author Jakob Sack <mail@jakobsack.de>
* @author Roeland Jago Douma <roeland@famdouma.nl>
@@ -37,7 +39,7 @@ class ZipResponse extends Response implements ICallbackResponse {
private $name;
private $request;
- public function __construct(string $name = 'output', IRequest $request) {
+ public function __construct(IRequest $request, string $name = 'output') {
$this->name = $name;
$this->request = $request;
}
@@ -60,7 +62,7 @@ class ZipResponse extends Response implements ICallbackResponse {
$files = count($this->resources);
foreach ($this->resources as $resource) {
- $size = $size + $resource['size'];
+ $size += $resource['size'];
}
$zip = new Streamer($this->request, $size, $files);