Set some phpdoc to isLocalUrl
parent
807600b255
commit
30049637dc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue