dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Cleaned up JobQueueRedis exceptions"
[lhc/web/wiklou.git]
/
includes
/
utils
/
ZipDirectoryReader.php
diff --git
a/includes/utils/ZipDirectoryReader.php
b/includes/utils/ZipDirectoryReader.php
index
0f56e33
..
86960aa
100644
(file)
--- a/
includes/utils/ZipDirectoryReader.php
+++ b/
includes/utils/ZipDirectoryReader.php
@@
-129,6
+129,9
@@
class ZipDirectoryReader {
/**
* Private constructor
/**
* Private constructor
+ * @param string $fileName
+ * @param callable $callback
+ * @param array $options
*/
protected function __construct( $fileName, $callback, $options ) {
$this->fileName = $fileName;
*/
protected function __construct( $fileName, $callback, $options ) {
$this->fileName = $fileName;
@@
-183,6
+186,7
@@
class ZipDirectoryReader {
* Throw an error, and log a debug message
* @param mixed $code
* @param string $debugMessage
* Throw an error, and log a debug message
* @param mixed $code
* @param string $debugMessage
+ * @throws ZipDirectoryReaderError
*/
function error( $code, $debugMessage ) {
wfDebug( __CLASS__ . ": Fatal error: $debugMessage\n" );
*/
function error( $code, $debugMessage ) {
wfDebug( __CLASS__ . ": Fatal error: $debugMessage\n" );
@@
-359,6
+363,8
@@
class ZipDirectoryReader {
/**
* Read the central directory at the given location
/**
* Read the central directory at the given location
+ * @param int $offset
+ * @param int $size
*/
function readCentralDirectory( $offset, $size ) {
$block = $this->getBlock( $offset, $size );
*/
function readCentralDirectory( $offset, $size ) {
$block = $this->getBlock( $offset, $size );
@@
-450,6
+456,7
@@
class ZipDirectoryReader {
/**
* Interpret ZIP64 "extra field" data and return an associative array.
/**
* Interpret ZIP64 "extra field" data and return an associative array.
+ * @param string $extraField
* @return array|bool
*/
function unpackZip64Extra( $extraField ) {
* @return array|bool
*/
function unpackZip64Extra( $extraField ) {
@@
-575,6
+582,7
@@
class ZipDirectoryReader {
/**
* Get the size of a structure in bytes. See unpack() for the format of $struct.
/**
* Get the size of a structure in bytes. See unpack() for the format of $struct.
+ * @param array $struct
* @return int
*/
function getStructSize( $struct ) {
* @return int
*/
function getStructSize( $struct ) {