From: Matthias Schmidt Date: Sat, 21 May 2016 20:31:09 +0000 (+0200) Subject: Add @method tags for File and GZipFile class X-Git-Tag: 3.0.0_Beta_1~1681^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03c360c98e3442099558312507343e3636c7fea2;p=GitHub%2FWoltLab%2FWCF.git Add @method tags for File and GZipFile class --- 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; }