src/Pinocchio/Pinocchio.php
public function getOutputFilename($prefix = null)
    {
        $fileInfo = $this->getFileInformation();
        $filename = str_replace('/', '_', $fileInfo->getPathname());

        if (null !== $prefix) {
            $filename = substr($filename, strlen($prefix));
        }

        return strtr(ltrim($filename, '_'), array('.' . $fileInfo->getExtension() => '.html'));
    }
public function getOutputFilename($prefix = null)
    {
        $fileInfo = $this->getFileInformation();
        $filename = str_replace('/', '_', $fileInfo->getPathname());

        if (null !== $prefix) {
            $filename = substr($filename, strlen($prefix));
        }

        return strtr(ltrim($filename, '_'), array('.' . $fileInfo->getExtension() => '.html'));
    }
public function getOutputFilename ( $ prefix = null ) { $ fileInfo = $ this -> getFileInformation ( ) ; $ filename = str_replace ( '/' , '_' , $ fileInfo -> getPathname ( ) ) ; if ( null !== $ prefix ) { $ filename = substr ( $ filename , strlen ( $ prefix ) ) ; } return strtr ( ltrim ( $ filename , '_' ) , array ( '.' . $ fileInfo -> getExtension ( ) => '.html' ) ) ; }
Get the name for this Pinocchio's output file.

@param  string $prefix Prefix to remove from the filename (optional).

@return string
Get the name for this Pinocchio s output file .