Explorar o código

[Repository] removed unused local $match variable from GitBitbucketDriver::supports() method.

Hugo Hamon %!s(int64=13) %!d(string=hai) anos
pai
achega
7842149a51
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Repository/Vcs/GitBitbucketDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/GitBitbucketDriver.php

@@ -158,6 +158,6 @@ class GitBitbucketDriver implements VcsDriverInterface
      */
     public static function supports($url, $deep = false)
     {
-        return preg_match('#^https://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url, $match);
+        return preg_match('#^https://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url);
     }
 }