src/File/RenameUpload.php
protected function transliterateFilename($finalTarget)
    {
        $targetFile = basename($finalTarget);
        if ($this->isTransliterateFilename()) {
            $filename    = pathinfo($targetFile)['filename'];
            $finalTarget = str_replace(
                $filename, StringUtils::slug($filename), $finalTarget
            );
        }

        return $finalTarget;
    }
protected function transliterateFilename($finalTarget)
    {
        $targetFile = basename($finalTarget);
        if ($this->isTransliterateFilename()) {
            $filename    = pathinfo($targetFile)['filename'];
            $finalTarget = str_replace(
                $filename, StringUtils::slug($filename), $finalTarget
            );
        }

        return $finalTarget;
    }
protected function transliterateFilename ( $ finalTarget ) { $ targetFile = basename ( $ finalTarget ) ; if ( $ this -> isTransliterateFilename ( ) ) { $ filename = pathinfo ( $ targetFile ) [ 'filename' ] ; $ finalTarget = str_replace ( $ filename , StringUtils :: slug ( $ filename ) , $ finalTarget ) ; } return $ finalTarget ; }
Transliterate filename.

@param string $finalTarget

@return string
Transliterate filename .