Stop calling FileRepo->streamFile()
[lhc/web/wiklou.git] / includes / libs / mime / IEContentAnalyzer.php
index e9fb11f..4ae3cf9 100644 (file)
@@ -311,7 +311,6 @@ class IEContentAnalyzer {
         */
        protected $typeTable = [];
 
-       /** constructor */
        function __construct() {
                // Construct versioned type arrays from the base type array plus additions
                $types = $this->baseTypeTable;
@@ -500,13 +499,13 @@ class IEContentAnalyzer {
                        < ( $counters['ctrl'] + $counters['high'] ) * 16
                ) {
                        $kindOfBinary = true;
-                       $type = $binaryType ? $binaryType : $textType;
+                       $type = $binaryType ?: $textType;
                        if ( $type === false ) {
                                $type = 'application/octet-stream';
                        }
                } else {
                        $kindOfBinary = false;
-                       $type = $textType ? $textType : $binaryType;
+                       $type = $textType ?: $binaryType;
                        if ( $type === false ) {
                                $type = 'text/plain';
                        }