src/WPametu/File/Mime.php
public function get_mime($file){
        $type = $this->get_content_type($file);
        if( $type ){
            $type = array_map('trim', explode(';', $type));
            return $type[0];
        }else{
            return '';
        }
    }
public function get_mime($file){
        $type = $this->get_content_type($file);
        if( $type ){
            $type = array_map('trim', explode(';', $type));
            return $type[0];
        }else{
            return '';
        }
    }
public function get_mime ( $ file ) { $ type = $ this -> get_content_type ( $ file ) ; if ( $ type ) { $ type = array_map ( 'trim' , explode ( ';' , $ type ) ) ; return $ type [ 0 ] ; } else { return '' ; } }
Return mime type

@param string $file
@return string
Return mime type