diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-08-29 15:19:39 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2019-08-30 09:42:15 +0000 |
commit | fb3428eb8f16235269fb34a98fab664c3732cba2 (patch) | |
tree | 37d80539426fa13bac273bda0c46ff3665bde858 /includes/libs/mime | |
parent | 7f7efbe026b01be36019c26571224a6e8a178677 (diff) | |
download | mediawikicore-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.php | 11 |
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 ) { |