X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fmime%2FIEContentAnalyzer.php;h=e9fb11f7a8fcb130c18220681092a80bf129ea9e;hp=badcb2bced7749fa01d22124e4dd93de956756cd;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=e1090009434d4908a37c8bc481fe07e96c5f647f diff --git a/includes/libs/mime/IEContentAnalyzer.php b/includes/libs/mime/IEContentAnalyzer.php index badcb2bced..e9fb11f7a8 100644 --- a/includes/libs/mime/IEContentAnalyzer.php +++ b/includes/libs/mime/IEContentAnalyzer.php @@ -333,7 +333,7 @@ class IEContentAnalyzer { * @param string $chunk the first 256 bytes of the file * @param string $proposed the MIME type proposed by the server * - * @return Array: map of IE version to detected MIME type + * @return array map of IE version to detected MIME type */ public function getRealMimesFromData( $fileName, $chunk, $proposed ) { $types = $this->getMimesFromData( $fileName, $chunk, $proposed ); @@ -344,7 +344,7 @@ class IEContentAnalyzer { /** * Translate a MIME type from IE's idiosyncratic private types into * more commonly understood type strings - * @param $type + * @param string $type * @return string */ public function translateMimeType( $type ) { @@ -371,7 +371,7 @@ class IEContentAnalyzer { * @param string $chunk the first 256 bytes of the file * @param string $proposed the MIME type proposed by the server * - * @return Array: map of IE version to detected MIME type + * @return array map of IE version to detected MIME type */ public function getMimesFromData( $fileName, $chunk, $proposed ) { $types = []; @@ -383,10 +383,10 @@ class IEContentAnalyzer { /** * Get the MIME type for a given named version - * @param $version - * @param $fileName - * @param $chunk - * @param $proposed + * @param string $version + * @param string $fileName + * @param string $chunk + * @param string $proposed * @return bool|string */ protected function getMimeTypeForVersion( $version, $fileName, $chunk, $proposed ) { @@ -553,8 +553,8 @@ class IEContentAnalyzer { /** * Check for text headers at the start of the chunk * Confirmed same in 5 and 7. - * @param $version - * @param $chunk + * @param string $version + * @param string $chunk * @return bool|string */ private function checkTextHeaders( $version, $chunk ) { @@ -579,8 +579,8 @@ class IEContentAnalyzer { /** * Check for binary headers at the start of the chunk * Confirmed same in 5 and 7. - * @param $version - * @param $chunk + * @param string $version + * @param string $chunk * @return bool|string */ private function checkBinaryHeaders( $version, $chunk ) { @@ -680,8 +680,8 @@ class IEContentAnalyzer { /** * Do heuristic checks on the bulk of the data sample. * Search for HTML tags. - * @param $version - * @param $chunk + * @param string $version + * @param string $chunk * @return array */ protected function sampleData( $version, $chunk ) { @@ -832,8 +832,8 @@ class IEContentAnalyzer { } /** - * @param $version - * @param $type + * @param string $version + * @param string|null $type * @return int|string */ protected function getDataFormat( $version, $type ) {