private function isValidScheme(string $scheme): bool
    {
        $validSchemes = ['file', 'git+http', 'git+https'];
        return \in_array(\strtolower($scheme), $validSchemes, true);
    }
private function isValidScheme(string $scheme): bool
    {
        $validSchemes = ['file', 'git+http', 'git+https'];
        return \in_array(\strtolower($scheme), $validSchemes, true);
    }
private function isValidScheme ( string $ scheme ) : bool { $ validSchemes = [ 'file' , 'git+http' , 'git+https' ] ; return \ in_array ( \ strtolower ( $ scheme ) , $ validSchemes , true ) ; }
Validated provided scheme.
Validated provided scheme .