original_string: public static function getDestinationFolder($path){
  		$path = (string) $path;
  		if( preg_match('/\.(jpe?g|gif|png|svg)$/i', $path) ) {
  			return 'Image';
  		}elseif( preg_match('/\.(otf|woff|ttf)$/i', $path) ) {
  			return 'Font';
  		}elseif( preg_match('/\.(css)$/i', $path) ) {
  			return 'CSS';
  		}elseif( preg_match('/\.(mp4|mp3)$/i', $path) ){
  			return 'Media';
  		}elseif( preg_match('/\.(smil|pls)$/i', $path) ){
  			return 'Speech';
  		}elseif( preg_match('/\.(js|json)$/i', $path) ){
  			return 'JS';
  		}elseif( preg_match('/\.x?html$/i', $path) ){
  			return 'Text';
  		}else{
  			return 'Misc';
  		}
  	}
code: public static function getDestinationFolder($path){
  		$path = (string) $path;
  		if( preg_match('/\.(jpe?g|gif|png|svg)$/i', $path) ) {
  			return 'Image';
  		}elseif( preg_match('/\.(otf|woff|ttf)$/i', $path) ) {
  			return 'Font';
  		}elseif( preg_match('/\.(css)$/i', $path) ) {
  			return 'CSS';
  		}elseif( preg_match('/\.(mp4|mp3)$/i', $path) ){
  			return 'Media';
  		}elseif( preg_match('/\.(smil|pls)$/i', $path) ){
  			return 'Speech';
  		}elseif( preg_match('/\.(js|json)$/i', $path) ){
  			return 'JS';
  		}elseif( preg_match('/\.x?html$/i', $path) ){
  			return 'Text';
  		}else{
  			return 'Misc';
  		}
  	}
code_tokens: public static function getDestinationFolder ( $ path ) { $ path = ( string ) $ path ; if ( preg_match ( '/\.(jpe?g|gif|png|svg)$/i' , $ path ) ) { return 'Image' ; } elseif ( preg_match ( '/\.(otf|woff|ttf)$/i' , $ path ) ) { return 'Font' ; } elseif ( preg_match ( '/\.(css)$/i' , $ path ) ) { return 'CSS' ; } elseif ( preg_match ( '/\.(mp4|mp3)$/i' , $ path ) ) { return 'Media' ; } elseif ( preg_match ( '/\.(smil|pls)$/i' , $ path ) ) { return 'Speech' ; } elseif ( preg_match ( '/\.(js|json)$/i' , $ path ) ) { return 'JS' ; } elseif ( preg_match ( '/\.x?html$/i' , $ path ) ) { return 'Text' ; } else { return 'Misc' ; } }
docstring: Return folder name
  
  @param string $path
  
  @return string
docstring_tokens: Return folder name