src/Eloquent/Typhoon/Configuration/ConfigurationReader.php
protected function normalizePath($workingPath, $path)
    {
        $this->typeCheck->normalizePath(func_get_args());

        if ($this->filesystemHelper->isAbsolutePath($path)) {
            $path = $this->filesystemHelper->makePathRelative(
                $path,
                $workingPath
            );
        }

        return implode(
            '/',
            array_filter(
                explode('/', str_replace('\\', '/', $path)),
                function ($atom) {
                    return '.' !== $atom;
                }
            )
        );
    }
protected function normalizePath($workingPath, $path)
    {
        $this->typeCheck->normalizePath(func_get_args());

        if ($this->filesystemHelper->isAbsolutePath($path)) {
            $path = $this->filesystemHelper->makePathRelative(
                $path,
                $workingPath
            );
        }

        return implode(
            '/',
            array_filter(
                explode('/', str_replace('\\', '/', $path)),
                function ($atom) {
                    return '.' !== $atom;
                }
            )
        );
    }
@param string $workingPath
@param string $path

@return string