src/Filter/CssDependencyTrait.php
protected function _prependPrefixToFilename($name)
    {
        $ds = DIRECTORY_SEPARATOR;
        $parts = explode($ds, $name);
        $filename = end($parts);

        if ($name === $filename
            || $filename[0] === $this->optionalDependencyPrefix) {
            return $this->optionalDependencyPrefix . $name;
        }

        return str_replace(
            $ds . $filename,
            $ds . $this->optionalDependencyPrefix . $filename,
            $name
        );
    }
protected function _prependPrefixToFilename($name)
    {
        $ds = DIRECTORY_SEPARATOR;
        $parts = explode($ds, $name);
        $filename = end($parts);

        if ($name === $filename
            || $filename[0] === $this->optionalDependencyPrefix) {
            return $this->optionalDependencyPrefix . $name;
        }

        return str_replace(
            $ds . $filename,
            $ds . $this->optionalDependencyPrefix . $filename,
            $name
        );
    }
protected function _prependPrefixToFilename ( $ name ) { $ ds = DIRECTORY_SEPARATOR ; $ parts = explode ( $ ds , $ name ) ; $ filename = end ( $ parts ) ; if ( $ name === $ filename || $ filename [ 0 ] === $ this -> optionalDependencyPrefix ) { return $ this -> optionalDependencyPrefix . $ name ; } return str_replace ( $ ds . $ filename , $ ds . $ this -> optionalDependencyPrefix . $ filename , $ name ) ; }
Prepends filenames with defined prefix if not already defined.

@param string $name The file name.
@param string The prefixed filename.
Prepends filenames with defined prefix if not already defined .