Ver código fonte

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

Hugo Hamon 13 anos atrás
pai
commit
7842149a51
1 arquivos alterados com 1 adições e 1 exclusões
  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);
     }
 }