summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-04-01 18:48:40 +0200
committerRobin Appelman <robin@icewind.nl>2020-04-03 16:27:20 +0200
commite22a28ecc2d5f03c28817b7d3cd263ed2f502c96 (patch)
tree2ec79a79a1002c9fac6963d0ae5a72a6749bef67 /lib/private/Files
parent3ba46f3b50645c563c45996e5ccea884129ee187 (diff)
downloadnextcloud-server-e22a28ecc2d5f03c28817b7d3cd263ed2f502c96.tar.gz
nextcloud-server-e22a28ecc2d5f03c28817b7d3cd263ed2f502c96.zip
update autoloader
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Stream/SeekableHttpStream.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/private/Files/Stream/SeekableHttpStream.php b/lib/private/Files/Stream/SeekableHttpStream.php
index 8fe54839e25..fdcd9ea8cfb 100644
--- a/lib/private/Files/Stream/SeekableHttpStream.php
+++ b/lib/private/Files/Stream/SeekableHttpStream.php
@@ -110,14 +110,14 @@ class SeekableHttpStream implements File {
return true;
}
- function stream_open($path, $mode, $options, &$opened_path) {
+ public function stream_open($path, $mode, $options, &$opened_path) {
$options = stream_context_get_options($this->context)[self::PROTOCOL];
$this->openCallback = $options['callback'];
return $this->reconnect(0);
}
- function stream_read($count) {
+ public function stream_read($count) {
if (!$this->current) {
return false;
}
@@ -126,7 +126,7 @@ class SeekableHttpStream implements File {
return $ret;
}
- function stream_seek($offset, $whence = SEEK_SET) {
+ public function stream_seek($offset, $whence = SEEK_SET) {
switch ($whence) {
case SEEK_SET:
if ($offset === $this->offset) {
@@ -144,19 +144,19 @@ class SeekableHttpStream implements File {
return false;
}
- function stream_tell() {
+ public function stream_tell() {
return $this->offset;
}
- function stream_stat() {
+ public function stream_stat() {
return fstat($this->current);
}
- function stream_eof() {
+ public function stream_eof() {
return feof($this->current);
}
- function stream_close() {
+ public function stream_close() {
fclose($this->current);
}
@@ -179,6 +179,4 @@ class SeekableHttpStream implements File {
public function stream_flush() {
return; //noop because readonly stream
}
-
-
}