Jelajahi Sumber

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

Hugo Hamon 13 tahun lalu
induk
melakukan
7842149a51
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);
     }
 }