1
0
Fork 0

Set some phpdoc to isLocalUrl

pull/2292/head
Marc 2013-09-26 01:57:21 +02:00
parent 807600b255
commit 30049637dc
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,11 @@ abstract class VcsDriver implements VcsDriverInterface
return $this->remoteFilesystem->getContents($this->originUrl, $url, false);
}
/**
* Return if current repository url is local
*
* @return boolean Repository url is local
*/
protected static function isLocalUrl($url)
{
return (bool) preg_match('{^(file://|/|[a-z]:[\\\\/])}i', $url);