protected function filterFilename($name)
    {
        // Fix illegal characters
        $filter = FileNameFilter::create();
        $parts = array_filter(preg_split("#[/\\\\]+#", $name));
        return implode('/', array_map(function ($part) use ($filter) {
            return $filter->filter($part);
        }, $parts));
    }
protected function filterFilename($name)
    {
        // Fix illegal characters
        $filter = FileNameFilter::create();
        $parts = array_filter(preg_split("#[/\\\\]+#", $name));
        return implode('/', array_map(function ($part) use ($filter) {
            return $filter->filter($part);
        }, $parts));
    }
protected function filterFilename ( $ name ) { // Fix illegal characters $ filter = FileNameFilter :: create ( ) ; $ parts = array_filter ( preg_split ( "#[/\\\\]+#" , $ name ) ) ; return implode ( '/' , array_map ( function ( $ part ) use ( $ filter ) { return $ filter -> filter ( $ part ) ; } , $ parts ) ) ; }
Pass name through standand FileNameFilter

@param string $name
@return string
Pass name through standand FileNameFilter