Changeset View
Changeset View
Standalone View
Standalone View
src/repository/remote/ArcanistRepositoryURINormalizer.php
Context not available. | |||||
// example. | // example. | ||||
$matches = null; | $matches = null; | ||||
if (preg_match('@^(diffusion/(?:[A-Z]+|\d+))@', $path, $matches)) { | if (@preg_match('@^(diffusion/(?:[A-Z]+|\d+))@', $path, $matches)) { | ||||
$path = $matches[1]; | $path = $matches[1]; | ||||
} | } | ||||
Context not available. | |||||
$uri = new PhutilURI($this->uri); | $uri = new PhutilURI($this->uri); | ||||
$domain = $uri->getDomain(); | $domain = $uri->getDomain(); | ||||
if (!strlen($domain)) { | if (!@strlen($domain)) { | ||||
return '<void>'; | return '<void>'; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0