diff --git a/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php b/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php index a33447f..92e736f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php +++ b/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php @@ -33,8 +33,6 @@ static function factory($jail, $settings) { } function connect() { - $parts = explode(':', $this->hostname); - $port = (count($parts) == 2) ? $parts[1] : $this->port; $this->connection = new MockTestConnection(); $this->connection->connectionString = 'test://' . urlencode($this->username) . ':' . urlencode($this->password) . "@$this->host:$this->port/"; }