Browse Source

Merge pull request #2292 from mmoreram/patch-1

Set some phpdoc to isLocalUrl
Jordi Boggiano 11 years ago
parent
commit
67d2a4dfe2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Composer/Repository/Vcs/VcsDriver.php

+ 5 - 0
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);