Browse Source

remove isset()

till 13 years ago
parent
commit
9ecbc5176e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Composer/Repository/Vcs/SvnDriver.php

+ 2 - 2
src/Composer/Repository/Vcs/SvnDriver.php

@@ -273,13 +273,13 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
     protected function detectSvnAuth()
     protected function detectSvnAuth()
     {
     {
         $uri = parse_url($this->baseUrl);
         $uri = parse_url($this->baseUrl);
-        if (!isset($uri['user']) || empty($uri['user'])) {
+        if (empty($uri['user'])) {
             return;
             return;
         }
         }
 
 
         $this->svnUsername = $uri['user'];
         $this->svnUsername = $uri['user'];
 
 
-        if (isset($uri['pass']) && !empty($uri['pass'])) {
+        if (!empty($uri['pass'])) {
             $this->svnPassword = $uri['pass'];
             $this->svnPassword = $uri['pass'];
         }
         }