aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/mime
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2019-08-29 15:19:39 +0200
committerDaimona Eaytoy <daimona.wiki@gmail.com>2019-08-30 09:42:15 +0000
commitfb3428eb8f16235269fb34a98fab664c3732cba2 (patch)
tree37d80539426fa13bac273bda0c46ff3665bde858 /includes/libs/mime
parent7f7efbe026b01be36019c26571224a6e8a178677 (diff)
downloadmediawikicore-fb3428eb8f16235269fb34a98fab664c3732cba2.tar.gz
mediawikicore-fb3428eb8f16235269fb34a98fab664c3732cba2.zip
Unsuppress other phan issues with low count
And also update approximated counts, which for the most part are lower than reported (hooray!) Bug: T231636 Depends-On: Ica50297ec7c71a81ba2204f9763499da925067bd Change-Id: I78354bf5f0c831108c8f606e50c87cf6bc00d8bd
Diffstat (limited to 'includes/libs/mime')
-rw-r--r--includes/libs/mime/MSCompoundFileReader.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/libs/mime/MSCompoundFileReader.php b/includes/libs/mime/MSCompoundFileReader.php
index 26e96851669f..34d612abbd9a 100644
--- a/includes/libs/mime/MSCompoundFileReader.php
+++ b/includes/libs/mime/MSCompoundFileReader.php
@@ -178,11 +178,22 @@ class MSCompoundFileReader {
);
}
+ /**
+ * @param int $offset
+ * @param int[] $struct
+ * @return array
+ */
private function unpackOffset( $offset, $struct ) {
$block = $this->readOffset( $offset, array_sum( $struct ) );
return $this->unpack( $block, 0, $struct );
}
+ /**
+ * @param string $block
+ * @param int $offset
+ * @param int[] $struct
+ * @return array
+ */
private function unpack( $block, $offset, $struct ) {
$data = [];
foreach ( $struct as $key => $length ) {