From 03c360c98e3442099558312507343e3636c7fea2 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 21 May 2016 22:31:09 +0200 Subject: [PATCH] Add @method tags for File and GZipFile class --- wcfsetup/install/files/lib/system/io/File.class.php | 10 ++++++++++ .../install/files/lib/system/io/GZipFile.class.php | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/io/File.class.php b/wcfsetup/install/files/lib/system/io/File.class.php index 9baacf14e0..9dce79165e 100644 --- a/wcfsetup/install/files/lib/system/io/File.class.php +++ b/wcfsetup/install/files/lib/system/io/File.class.php @@ -22,6 +22,16 @@ use wcf\system\exception\SystemException; * @package com.woltlab.wcf * @subpackage system.io * @category Community Framework + * + * @method boolean close($handle) + * @method boolean eof($handle) + * @method string gets($handle, $length = null) + * @method resource open($filename, $mode, $use_include_path = false, $context = null) + * @method integer seek($handle, $offset, $whence = SEEK_SET) + * @method string read($zp, $length) + * @method integer tell($handle) + * @method boolean touch($filename, $time = 0, $atime = 0) note: default value of `$time` actually is `time()` + * @method integer write($handle, $string, $length = null) */ class File { /** diff --git a/wcfsetup/install/files/lib/system/io/GZipFile.class.php b/wcfsetup/install/files/lib/system/io/GZipFile.class.php index 226cf2e162..b4ae3162b3 100644 --- a/wcfsetup/install/files/lib/system/io/GZipFile.class.php +++ b/wcfsetup/install/files/lib/system/io/GZipFile.class.php @@ -11,6 +11,9 @@ use wcf\system\exception\SystemException; * @package com.woltlab.wcf * @subpackage system.io * @category Community Framework + * + * @method resource open($filename, $mode, $use_include_path = 0) + * @method boolean rewind($zp) */ class GZipFile extends File { /** @@ -89,7 +92,7 @@ class GZipFile extends File { } if ($this->seek($eof) == -1) $eof--; - + $this->rewind(); return $eof - $correction; } -- 2.20.1