PhpSpec\CodeGenerator\TemplateRenderer::normalizeLocation PHP Метод

normalizeLocation() приватный Метод

private normalizeLocation ( string $location, boolean $trimLeft = false ) : string
$location string
$trimLeft boolean
Результат string
    private function normalizeLocation($location, $trimLeft = false)
    {
        $location = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $location);
        $location = rtrim($location, DIRECTORY_SEPARATOR);
        if ($trimLeft) {
            $location = ltrim($location, DIRECTORY_SEPARATOR);
        }
        return $location;
    }