*/
protected $typeTable = [];
- /** constructor */
function __construct() {
// Construct versioned type arrays from the base type array plus additions
$types = $this->baseTypeTable;
< ( $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';
}