ApiGen\Utils\FileSystem::normalizePath PHP Method

normalizePath() public method

public normalizePath ( string $path ) : string
$path string
return string
    public function normalizePath($path)
    {
        return str_replace('\\', '/', $path);
    }

Usage Example

 /**
  * @param string $fileName
  * @param string $directory
  * @return string
  */
 private function getFileNameWithoutSourcePath($fileName, $directory)
 {
     $directory = rtrim($directory, '/');
     $fileName = substr($fileName, strlen($directory) + 1);
     return $this->fileSystem->normalizePath($fileName);
 }