From 30049637dc1455b72c08763d448869ab82edded7 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 26 Sep 2013 01:57:21 +0200 Subject: [PATCH] Set some phpdoc to isLocalUrl --- src/Composer/Repository/Vcs/VcsDriver.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Repository/Vcs/VcsDriver.php b/src/Composer/Repository/Vcs/VcsDriver.php index f6d428802..84b209bd3 100644 --- a/src/Composer/Repository/Vcs/VcsDriver.php +++ b/src/Composer/Repository/Vcs/VcsDriver.php @@ -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);