src/package/Data/Repositories/Support/Helpers.php
public function normalizePath($path)
    {
        $path = trim($path);

        $path = str_replace(DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, $path);

        if (ends_with($path, DIRECTORY_SEPARATOR)) {
            $path = substr($path, 0, -1);
        }

        return $path;
    }
public function normalizePath($path)
    {
        $path = trim($path);

        $path = str_replace(DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, $path);

        if (ends_with($path, DIRECTORY_SEPARATOR)) {
            $path = substr($path, 0, -1);
        }

        return $path;
    }
public function normalizePath ( $ path ) { $ path = trim ( $ path ) ; $ path = str_replace ( DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR , DIRECTORY_SEPARATOR , $ path ) ; if ( ends_with ( $ path , DIRECTORY_SEPARATOR ) ) { $ path = substr ( $ path , 0 , - 1 ) ; } return $ path ; }
Normalize a path removing inconsistences.

@param $path

@return bool|mixed|string
Normalize a path removing inconsistences .