original_string: public function get_content_type($path){
          if( file_exists($path) ){
              $info = finfo_open(FILEINFO_MIME);
              $type = finfo_file($info, $path) ;
              finfo_close($info);
              return $type ?: '' ;
          }else{
              return '';
          }
      }
code: public function get_content_type($path){
          if( file_exists($path) ){
              $info = finfo_open(FILEINFO_MIME);
              $type = finfo_file($info, $path) ;
              finfo_close($info);
              return $type ?: '' ;
          }else{
              return '';
          }
      }
code_tokens: public function get_content_type ( $ path ) { if ( file_exists ( $ path ) ) { $ info = finfo_open ( FILEINFO_MIME ) ; $ type = finfo_file ( $ info , $ path ) ; finfo_close ( $ info ) ; return $ type ? : '' ; } else { return '' ; } }
docstring: Get content type
  
  @param string $path
  @return string
docstring_tokens: Get content type